[U-Boot-Users] [PATCH] 85xx: Show DDR memory data rate in addition to the memory clock frequency.

From: James Yang
Show the DDR memory data rate in addition to the memory clock frequency. For DDR/DDR2 memories the memory data rate is 2x the memory clock.
Signed-off-by: James Yang Signed-off-by: Kumar Gala galak@kernel.crashing.org --- In my git tree as well.
cpu/mpc85xx/cpu.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c index 558ab0c..31ccf06 100644 --- a/cpu/mpc85xx/cpu.c +++ b/cpu/mpc85xx/cpu.c @@ -110,13 +110,16 @@ int checkcpu (void) ddr_ratio = ((gur->porpllsr) & 0x00003e00) >> 9; switch (ddr_ratio) { case 0x0: - printf(" DDR:%4lu MHz, ", sysinfo.freqDDRBus / 2000000); + printf(" DDR:%4lu MHz (%lu MT/s data rate), ", + sysinfo.freqDDRBus / 2000000, sysinfo.freqDDRBus / 1000000); break; case 0x7: - printf(" DDR:%4lu MHz (Synchronous), ", sysinfo.freqDDRBus / 2000000); + printf(" DDR:%4lu MHz (%lu MT/s data rate) (Synchronous), ", + sysinfo.freqDDRBus / 2000000, sysinfo.freqDDRBus / 1000000); break; default: - printf(" DDR:%4lu MHz (Asynchronous), ", sysinfo.freqDDRBus / 2000000); + printf(" DDR:%4lu MHz (%lu MT/s data rate) (Asynchronous), ", + sysinfo.freqDDRBus / 2000000, sysinfo.freqDDRBus / 1000000); break; }

On Tue, Feb 12, 2008 at 9:33 AM, Kumar Gala galak@kernel.crashing.org wrote:
From: James Yang
Show the DDR memory data rate in addition to the memory clock frequency. For DDR/DDR2 memories the memory data rate is 2x the memory clock.
Signed-off-by: James Yang Signed-off-by: Kumar Gala galak@kernel.crashing.org
Applied to for-1.3.3, thanks
participants (2)
-
Andy Fleming
-
Kumar Gala