drm/tegra: Count number of display controllers at runtime
authorThierry Reding <treding@nvidia.com>
Fri, 26 Mar 2021 14:51:38 +0000 (15:51 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 31 Mar 2021 15:42:14 +0000 (17:42 +0200)
commit05d1adfe2a8b5c6a794a9927d1991a00c5d68f1d
treeaea04b7caa98ee97111708a97211b277d0033177
parent476e93205ff61a6507bcba28f4f01269b65ebb38
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>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/hub.c