summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx/speed.c
diff options
context:
space:
mode:
authorMatthias Fuchs <matthias.fuchs@esd.eu>2009-07-22 17:27:56 +0200
committerStefan Roese <sr@denx.de>2009-07-24 06:47:17 +0200
commit58ea142fb2e969f32306c8da1dabfaebd6fa141a (patch)
tree6f6054a161a5c439b29e85f874531093390623bc /cpu/ppc4xx/speed.c
parent87c0b72908e05662b8b415e26e1042f4779629da (diff)
downloadu-boot-imx-58ea142fb2e969f32306c8da1dabfaebd6fa141a.zip
u-boot-imx-58ea142fb2e969f32306c8da1dabfaebd6fa141a.tar.gz
u-boot-imx-58ea142fb2e969f32306c8da1dabfaebd6fa141a.tar.bz2
ppc4xx: Replace 4xx lowercase SPR references
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cpu/ppc4xx/speed.c')
-rw-r--r--cpu/ppc4xx/speed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/ppc4xx/speed.c b/cpu/ppc4xx/speed.c
index 6cb93f3..c0a5824 100644
--- a/cpu/ppc4xx/speed.c
+++ b/cpu/ppc4xx/speed.c
@@ -394,7 +394,8 @@ void get_sys_info (sys_info_t *sysInfo)
sysInfo->freqUART = sysInfo->freqPLB;
/* Figure which timer source to use */
- if (mfspr(ccr1) & 0x0080) { /* External Clock, assume same as SYS_CLK */
+ if (mfspr(SPRN_CCR1) & 0x0080) {
+ /* External Clock, assume same as SYS_CLK */
temp = sysInfo->freqProcessor / 2; /* Max extern clock speed */
if (CONFIG_SYS_CLK_FREQ > temp)
sysInfo->freqTmrClk = temp;