Skip to content
Snippets Groups Projects
Commit c21f62d8 authored by Stefan Roese's avatar Stefan Roese Committed by Wolfgang Denk
Browse files

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: default avatarStefan Roese <sr@denx.de>
parent 3ad8a051
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment