summaryrefslogtreecommitdiff
path: root/drivers/video/tegra
diff options
context:
space:
mode:
authorKevin Huang <kevinh@nvidia.com>2011-11-16 15:49:37 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-15 11:53:05 +0530
commit277054af7c8a00fb7dc383cf669b96b37ad07cc4 (patch)
tree53f352c3725fd4d70bcceba981429deec539b709 /drivers/video/tegra
parent8427c1565f3f2243b51f568d947f5d8aa2e3e56d (diff)
video: tegra: dc: Move DSI clock configuration to DC.
We'd better place clock set-up in dc as HDMI. It makes code cleaner. Also eliminate a false warning. Bug 902786 Bug 850852 Signed-off-by: Kevin Huang <kevinh@nvidia.com> Reviewed-on: http://git-master/r/65024 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> (cherry picked from commit e570e8dd45a66f11f0fc432f5919c5a036e34ba0) Change-Id: I90d73602048e2b3c706550128ba04665c307da22 Reviewed-on: http://git-master/r/68863 Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'drivers/video/tegra')
-rw-r--r--drivers/video/tegra/dc/dc.c2
-rw-r--r--drivers/video/tegra/dc/dsi.c5
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index fbdf82d..81e88bd 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -1413,7 +1413,7 @@ void tegra_dc_setup_clk(struct tegra_dc *dc, struct clk *clk)
}
}
- rate = dc->mode.pclk;
+ rate = dc->mode.pclk * 2;
if (rate != clk_get_rate(base_clk))
clk_set_rate(base_clk, rate);
diff --git a/drivers/video/tegra/dc/dsi.c b/drivers/video/tegra/dc/dsi.c
index 213564b..85a03f5 100644
--- a/drivers/video/tegra/dc/dsi.c
+++ b/drivers/video/tegra/dc/dsi.c
@@ -947,11 +947,6 @@ static void tegra_dsi_set_dsi_clk(struct tegra_dc *dc,
if (rm != 0)
clk -= rm;
- clk *= 2; /*
- * Value for PLLD routine is required to be twice as
- * the desired clock rate
- */
-
dc->mode.pclk = clk*1000;
tegra_dc_setup_clk(dc, dsi->dsi_clk);
if (dsi->clk_ref == true)