diff options
author | Thierry Reding <treding@nvidia.com> | 2021-03-26 15:51:38 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-03-31 17:42:14 +0200 |
commit | 05d1adfe2a8b5c6a794a9927d1991a00c5d68f1d (patch) | |
tree | aea04b7caa98ee97111708a97211b277d0033177 /drivers/gpu/drm/tegra/drm.h | |
parent | 476e93205ff61a6507bcba28f4f01269b65ebb38 (diff) | |
download | linux-stable-05d1adfe2a8b5c6a794a9927d1991a00c5d68f1d.tar.gz linux-stable-05d1adfe2a8b5c6a794a9927d1991a00c5d68f1d.tar.bz2 linux-stable-05d1adfe2a8b5c6a794a9927d1991a00c5d68f1d.zip |
drm/tegra: Count number of display controllers at runtime
In order to be able to attach planes to all possible display controllers
the exact number of CRTCs must be known. Keep track of the number of the
display controllers that register during initialization.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.h')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index 1b23bb0e29e3..eef933303a3c 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -56,6 +56,7 @@ struct tegra_drm { unsigned int hmask, vmask; unsigned int pitch_align; + unsigned int num_crtcs; struct tegra_display_hub *hub; }; |