aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-03-03 06:16:23 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-03-11 08:46:29 -0500
commit85604b0a247615157cedfec46b9cbfde2884f80f (patch)
treeec88ac187104b424ccc00cec4a2846573b25cbeb
parentf2988ab9f4a2bf5e24f37d20eab1aad6862953d3 (diff)
HACK: OMAP: DSS2: add delay after enabling clocks
On omap4 the registers may not be accessible right after enabling the clocks. At some point this will be handled by pm_runtime, but, for the time begin, adding a small delay after clk_enable() should make things work. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/omap2/dss/dss.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c
index e5da050bcf85..2be4d03ece43 100644
--- a/drivers/video/omap2/dss/dss.c
+++ b/drivers/video/omap2/dss/dss.c
@@ -850,6 +850,14 @@ void dss_clk_enable(enum dss_clock clks)
850 850
851 dss_clk_enable_no_ctx(clks); 851 dss_clk_enable_no_ctx(clks);
852 852
853 /*
854 * HACK: On omap4 the registers may not be accessible right after
855 * enabling the clocks. At some point this will be handled by
856 * pm_runtime, but for the time begin this should make things work.
857 */
858 if (cpu_is_omap44xx() && check_ctx)
859 udelay(10);
860
853 if (check_ctx && cpu_is_omap34xx() && dss_need_ctx_restore()) 861 if (check_ctx && cpu_is_omap34xx() && dss_need_ctx_restore())
854 restore_all_ctx(); 862 restore_all_ctx();
855} 863}