projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f27f218
)
[ARM] 3291/1: PXA27x: Correct get_clk_frequency_khz turbo flag handling
author
Richard Purdie
<rpurdie@rpsys.net>
Wed, 1 Feb 2006 19:25:59 +0000
(19:25 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
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 <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/pxa27x.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-pxa/pxa27x.c
b/arch/arm/mach-pxa/pxa27x.c
index b41b1efaa2cf9088e30fe8fe9ee1d4dda6fd46c7..3baa70819f24fb20d6a0024e035946c5e8c49534 100644
(file)
--- a/
arch/arm/mach-pxa/pxa27x.c
+++ b/
arch/arm/mach-pxa/pxa27x.c
@@
-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);