[U-Boot-Users] [PATCH] 85xx: Only use PORPLLSR[DDR_Ratio] on platforms that define it
Kumar Gala
galak at kernel.crashing.org
Thu May 29 07:38:40 CEST 2008
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
---
cpu/mpc85xx/cpu.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c
index 9873383..4c7a1c2 100644
--- a/cpu/mpc85xx/cpu.c
+++ b/cpu/mpc85xx/cpu.c
@@ -75,7 +75,7 @@ int checkcpu (void)
uint ver;
uint major, minor;
int i;
- u32 ddr_ratio;
+ u32 ddr_ratio = 0;
volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
svr = get_svr();
@@ -118,7 +118,9 @@ int checkcpu (void)
puts("Clock Configuration:\n");
printf(" CPU:%4lu MHz, ", DIV_ROUND_UP(sysinfo.freqProcessor,1000000));
printf("CCB:%4lu MHz,\n", DIV_ROUND_UP(sysinfo.freqSystemBus,1000000));
+#ifdef CONFIG_DDR_CLK_FREQ
ddr_ratio = ((gur->porpllsr) & 0x00003e00) >> 9;
+#endif
switch (ddr_ratio) {
case 0x0:
printf(" DDR:%4lu MHz (%lu MT/s data rate), ",
--
1.5.4.5
More information about the U-Boot
mailing list