]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9137e9a3f3b4d1094a1944a8996d3f2455d0281e
treeaea04b7caa98ee97111708a97211b277d0033177
parent18f3c0a7d086e10c6563c2fcb5aa37298b8fe3cd
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