ARM: mxs: Use a proper timeout mechanism
commit444a7c3bb897ec6a64b83d277102440c1dcc22a1
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 27 Jan 2012 14:44:29 +0000 (27 12:44 -0200)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 31 Jan 2012 14:42:15 +0000 (31 22:42 +0800)
treef6168d81c13b5e7641ca815bd5703fdee3adc5f5
parenta62407256bbcba8e3f62695a87534050ceec0e6f
ARM: mxs: Use a proper timeout mechanism

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>
arch/arm/mach-mxs/clock-mx23.c
arch/arm/mach-mxs/clock-mx28.c
arch/arm/mach-mxs/include/mach/common.h
arch/arm/mach-mxs/system.c