[ARM] 3291/1: PXA27x: Correct get_clk_frequency_khz turbo flag handling
authorRichard Purdie <[email protected]>
Wed, 1 Feb 2006 19:25:59 +0000 (19:25 +0000)
committerRussell King <[email protected]>
Wed, 1 Feb 2006 19:25:59 +0000 (19:25 +0000)
Patch from Richard Purdie

The turbo flag is in bit 0 of the CLKCFG register, not bit 1.
This patch corrects this so get_clk_frequency_khz returns a correct
value.

Signed-off-by: Richard Purdie <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/mach-pxa/pxa27x.c

index b41b1efaa2cf9088e30fe8fe9ee1d4dda6fd46c7..3baa70819f24fb20d6a0024e035946c5e8c49534 100644 (file)
@@ -44,7 +44,7 @@ unsigned int get_clk_frequency_khz( int info)
 
        /* Read clkcfg register: it has turbo, b, half-turbo (and f) */
        asm( "mrc\tp14, 0, %0, c6, c0, 0" : "=r" (clkcfg) );
-       t  = clkcfg & (1 << 1);
+       t  = clkcfg & (1 << 0);
        ht = clkcfg & (1 << 2);
        b  = clkcfg & (1 << 3);