diff options
author | 2012-01-27 12:44:29 -0200 | |
---|---|---|
committer | 2012-01-31 22:42:15 +0800 | |
commit | 444a7c3bb897ec6a64b83d277102440c1dcc22a1 (patch) | |
tree | f6168d81c13b5e7641ca815bd5703fdee3adc5f5 /lib/dma-debug.c | |
parent | ARM: mx28: check for gated clocks when setting saif divider (diff) | |
download | linux-rng-444a7c3bb897ec6a64b83d277102440c1dcc22a1.tar.xz linux-rng-444a7c3bb897ec6a64b83d277102440c1dcc22a1.zip |
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>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions