ppc4xx: Fix sys_get_info() for 405GP(r)
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>
Fri, 18 Apr 2008 15:24:32 +0000 (17:24 +0200)
committerStefan Roese <sr@denx.de>
Mon, 21 Apr 2008 04:54:08 +0000 (06:54 +0200)
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>
cpu/ppc4xx/speed.c

index fa799529d375f17598db1a2e1fc5b10cac921ce2..05b42fec97702e82ede6ec363d526c923e0d41df 100644 (file)
@@ -165,6 +165,8 @@ void get_sys_info (PPC4xx_SYS_INFO * sysInfo)
                }
        }
 
+       sysInfo->freqEBC = sysInfo->freqPLB / sysInfo->pllExtBusDiv;
+
        sysInfo->freqUART = sysInfo->freqProcessor;
 }