]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: hub: Enable all required clocks
authorThierry Reding <treding@nvidia.com>
Thu, 29 Nov 2018 16:24:34 +0000 (17:24 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 29 Nov 2018 16:25:21 +0000 (17:25 +0100)
commited831921e816a050d741e00710f13395d7f0ec83
tree2ad8dab4cc1f4a2849c5da84a56e8f256debb862
parent4ba8e5bc785e11fa53c04f901d208a4ac7c31f05
drm/tegra: hub: Enable all required clocks

The display architecture on Tegra186 and Tegra194 requires that there be
some valid clock on all domains before accessing any display register. A
further requirement is that in addition to the host1x, hub, disp and dsc
clocks, all the head clocks (pclk0-2 on Tegra186 or pclk0-3 on Tegra194)
must also be enabled.

Implement this logic within the display hub driver to ensure the clocks
are always enabled at the right time.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hub.c
drivers/gpu/drm/tegra/hub.h