diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-08-01 14:32:23 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-08-01 14:56:49 +0300 |
commit | 9ede365aa6f74428a1f69c21ca1cf21213167576 (patch) | |
tree | 654883a8cfe8c4f978b4476149a6a5d36892bc63 /drivers/video/omap2/dss/dsi.c | |
parent | 69f06054aad122b314cd64fdafdf14fc3b8e5b7c (diff) | |
download | op-kernel-dev-9ede365aa6f74428a1f69c21ca1cf21213167576.zip op-kernel-dev-9ede365aa6f74428a1f69c21ca1cf21213167576.tar.gz |
HACK: OMAP: DSS2: clk hack for OMAP2/3
The HWMOD data for OMAP2 and 3 are currently not up to date regarding
DSS (OMAP4 HWMOD data is fine). This patch makes the DSS driver to get
the opt clocks needed for OMAP2/3 with the old clock names, thus
allowing DSS driver to use runtime PM.
The HWMOD databases should be fixes ASAP, and this patch can be reverted
after that.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dsi.c')
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index 48b0cdf..7adbbeb 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c @@ -4435,7 +4435,10 @@ static int dsi_get_clocks(struct platform_device *dsidev) dsi->dss_clk = clk; - clk = clk_get(&dsidev->dev, "sys_clk"); + if (cpu_is_omap34xx() || cpu_is_omap3630()) + clk = clk_get(&dsidev->dev, "dss2_alwon_fck"); + else + clk = clk_get(&dsidev->dev, "sys_clk"); if (IS_ERR(clk)) { DSSERR("can't get sys_clk\n"); clk_put(dsi->dss_clk); |