]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Wait for OMAP3430 clocks to enable before returning from clk_enable()
authorPaul Walmsley <paul@pwsan.com>
Fri, 25 Jan 2008 18:45:29 +0000 (11:45 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 25 Jan 2008 22:55:32 +0000 (14:55 -0800)
commitaa3c182a1dcc069e0bcc65407e569bde43b98c78
tree5b1862911549723dace00d9402436fb93574612f
parentbb4e91722e29efe31587d2cc664b6def645aecd9
Wait for OMAP3430 clocks to enable before returning from clk_enable()

This patch fixes some boot-time instability problems with OMAP3430. The
GPTIMER modules can take 200 to 300 microseconds to become available after
their clocks are enabled, and without this patch, the clock framework
won't wait for them before returning from clk_enable().  If the system
attempts to access a GPTIMER register too quickly after the clk_enable(),
the system will halt with something similar to the following in the
dmtimer code:

Unhandled fault: external abort on non-linefetch (0x1028) at 0xd9032010

This is perhaps not the ideal way to solve this problem, but then again,
omap2_clk_wait_ready() is perhaps not the ideal way to wait for module
readiness.  This function is due to be replaced, but in the interim, this
patch fixes the issue.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c