summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx/speed.c
diff options
context:
space:
mode:
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>2008-04-18 17:24:32 +0200
committerStefan Roese <sr@denx.de>2008-04-21 06:54:08 +0200
commite1d09680f64b452adde89ed9fe28a77c56bedc9a (patch)
treea4e3132bf70bc4004b5d41e5b20ed770c8e8e304 /cpu/ppc4xx/speed.c
parent499e7831e1baaac6bfb959213f1950c216fbc5ba (diff)
downloadu-boot-imx-e1d09680f64b452adde89ed9fe28a77c56bedc9a.zip
u-boot-imx-e1d09680f64b452adde89ed9fe28a77c56bedc9a.tar.gz
u-boot-imx-e1d09680f64b452adde89ed9fe28a77c56bedc9a.tar.bz2
ppc4xx: Fix sys_get_info() for 405GP(r)
This patch assigns the correct EBC clock for 405GP(r) CPUs to PPC4xx_SYS_INFO structure. Without this patch U-Boot uses an uninitialized EBC clock in its startup message. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'cpu/ppc4xx/speed.c')
-rw-r--r--cpu/ppc4xx/speed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu/ppc4xx/speed.c b/cpu/ppc4xx/speed.c
index fa79952..05b42fe 100644
--- a/cpu/ppc4xx/speed.c
+++ b/cpu/ppc4xx/speed.c
@@ -165,6 +165,8 @@ void get_sys_info (PPC4xx_SYS_INFO * sysInfo)
}
}
+ sysInfo->freqEBC = sysInfo->freqPLB / sysInfo->pllExtBusDiv;
+
sysInfo->freqUART = sysInfo->freqProcessor;
}