summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra/hub.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-11-29 17:24:34 +0100
committerThierry Reding <treding@nvidia.com>2018-11-29 17:25:21 +0100
commit0cffbde2e318cc1214486a84be0f31045b1fa493 (patch)
tree2ad8dab4cc1f4a2849c5da84a56e8f256debb862 /drivers/gpu/drm/tegra/hub.h
parentd6b9bc025859521dae719d8fb8278b0c39b34861 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/tegra/hub.h')
-rw-r--r--drivers/gpu/drm/tegra/hub.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/hub.h b/drivers/gpu/drm/tegra/hub.h
index 6696a85fc1f2..479087c0705a 100644
--- a/drivers/gpu/drm/tegra/hub.h
+++ b/drivers/gpu/drm/tegra/hub.h
@@ -49,6 +49,9 @@ struct tegra_display_hub {
struct clk *clk_hub;
struct reset_control *rst;
+ unsigned int num_heads;
+ struct clk **clk_heads;
+
const struct tegra_display_hub_soc *soc;
struct tegra_windowgroup *wgrps;
};