mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
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>
This commit is contained in:
parent
3ad8a0517b
commit
c21f62d848
@ -149,8 +149,8 @@ int get_clocks (void)
|
|||||||
|
|
||||||
case CPU_750GX:
|
case CPU_750GX:
|
||||||
case CPU_750FX:
|
case CPU_750FX:
|
||||||
clock = gd->bus_clk *
|
clock = (gd->bus_clk / 10) *
|
||||||
hid1_fx_multipliers_x_10[get_hid1 () >> 27] / 10;
|
hid1_fx_multipliers_x_10[get_hid1 () >> 27];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CPU_7450:
|
case CPU_7450:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user