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)
commit0cffbde2e318cc1214486a84be0f31045b1fa493
tree2ad8dab4cc1f4a2849c5da84a56e8f256debb862
parentd6b9bc025859521dae719d8fb8278b0c39b34861
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