summaryrefslogtreecommitdiff
path: root/cpu/mpc512x/speed.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-08-02 21:27:46 +0200
committerWolfgang Denk <wd@denx.de>2007-08-02 21:27:46 +0200
commitb1b54e352028ed370c3aa95d6fdeb9d64c5d2f86 (patch)
tree9cebaabeb5eb120db8bbcfc424767f1d3eb7d8d9 /cpu/mpc512x/speed.c
parent8993e54b6f397973794f3d6f47d3b3c0c98dd4f6 (diff)
downloadu-boot-imx-b1b54e352028ed370c3aa95d6fdeb9d64c5d2f86.zip
u-boot-imx-b1b54e352028ed370c3aa95d6fdeb9d64c5d2f86.tar.gz
u-boot-imx-b1b54e352028ed370c3aa95d6fdeb9d64c5d2f86.tar.bz2
Coding style cleanup, update CHANGELOG
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/mpc512x/speed.c')
-rw-r--r--cpu/mpc512x/speed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu/mpc512x/speed.c b/cpu/mpc512x/speed.c
index 9a31155..a609827 100644
--- a/cpu/mpc512x/speed.c
+++ b/cpu/mpc512x/speed.c
@@ -79,14 +79,14 @@ int get_clocks (void)
spmf = (im->clk.spmr & SPMR_SPMF) >> SPMR_SPMF_SHIFT;
spll = ref_clk * spmf_mult[spmf];
-
+
sys_div = (im->clk.scfr[1] & SCFR2_SYS_DIV) >> SCFR2_SYS_DIV_SHIFT;
sys_clk = (spll * sys_dividors[sys_div][1]) / sys_dividors[sys_div][0];
csb_clk = sys_clk / 2;
- cpmf = (im->clk.spmr & SPMR_CPMF) >> SPMR_CPMF_SHIFT;
- core_clk = (csb_clk * cpmf_mult[cpmf][0]) / cpmf_mult[cpmf][1];
+ cpmf = (im->clk.spmr & SPMR_CPMF) >> SPMR_CPMF_SHIFT;
+ core_clk = (csb_clk * cpmf_mult[cpmf][0]) / cpmf_mult[cpmf][1];
ips_div = (im->clk.scfr[0] & SCFR1_IPS_DIV_MASK) >> SCFR1_IPS_DIV_SHIFT;
if (ips_div != 0) {