Commit afe5df20 authored by Richard Purdie's avatar Richard Purdie Committed by Russell King

[ARM] 3291/1: PXA27x: Correct get_clk_frequency_khz turbo flag handling

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: default avatarRichard Purdie <rpurdie@rpsys.net>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent f27f218c
...@@ -44,7 +44,7 @@ unsigned int get_clk_frequency_khz( int info) ...@@ -44,7 +44,7 @@ unsigned int get_clk_frequency_khz( int info)
/* Read clkcfg register: it has turbo, b, half-turbo (and f) */ /* Read clkcfg register: it has turbo, b, half-turbo (and f) */
asm( "mrc\tp14, 0, %0, c6, c0, 0" : "=r" (clkcfg) ); asm( "mrc\tp14, 0, %0, c6, c0, 0" : "=r" (clkcfg) );
t = clkcfg & (1 << 1); t = clkcfg & (1 << 0);
ht = clkcfg & (1 << 2); ht = clkcfg & (1 << 2);
b = clkcfg & (1 << 3); b = clkcfg & (1 << 3);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment