summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2013-06-07 15:45:06 -0700
committerRiham Haidar <rhaidar@nvidia.com>2013-06-11 11:22:29 -0700
commit23dbcb693db545f6bd91585c45c493d45a6d798f (patch)
tree018714c91110136633b6cde529162ae848c4a3d6 /drivers
parentc55d560dbd212cb7c799e132d55482d9dd918d08 (diff)
video: tegra: dc: use DISB power domain for HDMI
Always use DISB for HDMI. Bug 236314 Change-Id: I65e7a6344b62998363e26510dcab17b006bb9d18 Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/236928 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Michael I Gold <gold@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra/dc/dc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 17263a35ad31..4234c197a9cd 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -2315,7 +2315,12 @@ static int tegra_dc_probe(struct platform_device *ndev)
dc->win_syncpt[0] = NVSYNCPT_DISP0_A;
dc->win_syncpt[1] = NVSYNCPT_DISP0_B;
dc->win_syncpt[2] = NVSYNCPT_DISP0_C;
- dc->powergate_id = TEGRA_POWERGATE_DISA;
+ /* This code assumes DISB depends on DISA. DC's powergate
+ * code will have to change if dependency is removed */
+ if (dc->out && dc->out->type == TEGRA_DC_OUT_HDMI)
+ dc->powergate_id = TEGRA_POWERGATE_DISB;
+ else
+ dc->powergate_id = TEGRA_POWERGATE_DISA;
} else if (TEGRA_DISPLAY2_BASE == res->start) {
dc->vblank_syncpt = NVSYNCPT_VBLANK1;
dc->win_syncpt[0] = NVSYNCPT_DISP1_A;