aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@nokia.com>2009-08-20 09:18:09 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-08-20 15:10:25 -0400
commit44a6311c0a83f682bcf18fae389a1b270df29314 (patch)
tree870d1eec47f03360c66be122c0d292aa1cbee6b8 /arch
parent946a49a95dabc9dd10344ae9ab4db9f14c5ad502 (diff)
OMAP: McBSP: Use appropriate value for startup delay
Increasing startup delay value as worst case: CLKSRG*2 = 8000khz: (1/8000) * 2 * 2 usec Although, 100us may give enough time for two CLKSRG, due to some unknown PM related, clock gating etc. reason, this patch increases it to 500us. Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-omap/mcbsp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c
index 0aa2524186f..e9dd70320f7 100644
--- a/arch/arm/plat-omap/mcbsp.c
+++ b/arch/arm/plat-omap/mcbsp.c
@@ -365,7 +365,13 @@ void omap_mcbsp_start(unsigned int id, int tx, int rx)
365 w = OMAP_MCBSP_READ(io_base, SPCR1); 365 w = OMAP_MCBSP_READ(io_base, SPCR1);
366 OMAP_MCBSP_WRITE(io_base, SPCR1, w | (rx & 1)); 366 OMAP_MCBSP_WRITE(io_base, SPCR1, w | (rx & 1));
367 367
368 udelay(100); 368 /*
369 * Worst case: CLKSRG*2 = 8000khz: (1/8000) * 2 * 2 usec
370 * REVISIT: 100us may give enough time for two CLKSRG, however
371 * due to some unknown PM related, clock gating etc. reason it
372 * is now at 500us.
373 */
374 udelay(500);
369 375
370 if (idle) { 376 if (idle) {
371 /* Start frame sync */ 377 /* Start frame sync */