Skip to contentSkip to conversation

86xx: Fix broken variable reference when #def DEBUGing.

PATCH New Jon Loeliger 1 participant 1 message Nov 1, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 86xx: Fix broken variable reference when #def DEBUGing.

From: Jon Loeliger <[email protected]>

Sometimes you can't reference the DDR2 controller variables.

---

Gah.

 cpu/mpc86xx/spd_sdram.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
cpu/mpc86xx/spd_sdram.c +4 -2
index 059097f..d57bcdf 100644
@@ -1270,10 +1270,12 @@ spd_sdram(void)
 		debug("\nDDR: LAWBAR8=0x%08x\n", mcm->lawbar8);
 		debug("DDR: LAWAR8=0x%08x\n", mcm->lawar8);
 	}
+
+	debug("\nMemory size of DDR2 = 0x%08lx\n", memsize_ddr2);
+
 #endif /* CONFIG_NUM_DDR_CONTROLLERS > 1 */
 
-	debug("\nMemory sizes are DDR1 = 0x%08lx, DDR2 = 0x%08lx\n",
-	      memsize_ddr1, memsize_ddr2);
+	debug("\nMemory size of DDR1 = 0x%08lx\n", memsize_ddr1);
 
 	/*
 	 * If neither DDR controller is enabled return 0.
Signature · 1 line
1.5.3