ARM: mxs: Use a proper timeout mechanism
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 27 Jan 2012 14:44:29 +0000 (12:44 -0200)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 31 Jan 2012 14:42:15 +0000 (22:42 +0800)
Introduce a function for checking the busy bits of CLKCTRL register that
uses a proper timeout mechanism.

Remove parts of code that use busy loops and replace them with the
mxs_clkctrl_timeout() function.

Tested on a mx28evk by performing audio playback.

Suggested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>

No differences found