summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-05-14 07:25:13 +0200
committerWolfgang Denk <wd@denx.de>2009-05-15 22:22:01 +0200
commitc21f62d8483fbab44cd98d93ff2e9355a330d225 (patch)
treef593651f955ade5d57f217f5ef4ea8c6187a0d70
parent3ad8a0517b724782ab36f2b554a94de4c00c1adb (diff)
downloadu-boot-imx-c21f62d8483fbab44cd98d93ff2e9355a330d225.zip
u-boot-imx-c21f62d8483fbab44cd98d93ff2e9355a330d225.tar.gz
u-boot-imx-c21f62d8483fbab44cd98d93ff2e9355a330d225.tar.bz2
74xx_7xx: Fix rounding problem in CPU frequency calculation
This patch fixes a problem in the CPU frequency calculation. Without it a 798MHz CPU is displayed as 368.503 MHz. And with it it's 798 MHz. Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r--cpu/74xx_7xx/speed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/74xx_7xx/speed.c b/cpu/74xx_7xx/speed.c
index bc33a67..f2fdcd5 100644
--- a/cpu/74xx_7xx/speed.c
+++ b/cpu/74xx_7xx/speed.c
@@ -149,8 +149,8 @@ int get_clocks (void)
case CPU_750GX:
case CPU_750FX:
- clock = gd->bus_clk *
- hid1_fx_multipliers_x_10[get_hid1 () >> 27] / 10;
+ clock = (gd->bus_clk / 10) *
+ hid1_fx_multipliers_x_10[get_hid1 () >> 27];
break;
case CPU_7450: