Commit 81fd52c6 authored by Kim Phillips's avatar Kim Phillips
Browse files

mpc83xx: display ddr frequency in board_add_ram_info banner



Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
parent 35cf155c
...@@ -34,10 +34,13 @@ ...@@ -34,10 +34,13 @@
#include <asm/mmu.h> #include <asm/mmu.h>
#include <spd_sdram.h> #include <spd_sdram.h>
DECLARE_GLOBAL_DATA_PTR;
void board_add_ram_info(int use_default) void board_add_ram_info(int use_default)
{ {
volatile immap_t *immap = (immap_t *) CFG_IMMR; volatile immap_t *immap = (immap_t *) CFG_IMMR;
volatile ddr83xx_t *ddr = &immap->ddr; volatile ddr83xx_t *ddr = &immap->ddr;
char buf[32];
printf(" (DDR%d", ((ddr->sdram_cfg & SDRAM_CFG_SDRAM_TYPE_MASK) printf(" (DDR%d", ((ddr->sdram_cfg & SDRAM_CFG_SDRAM_TYPE_MASK)
>> SDRAM_CFG_SDRAM_TYPE_SHIFT) - 1); >> SDRAM_CFG_SDRAM_TYPE_SHIFT) - 1);
...@@ -48,9 +51,11 @@ void board_add_ram_info(int use_default) ...@@ -48,9 +51,11 @@ void board_add_ram_info(int use_default)
puts(", 64-bit"); puts(", 64-bit");
if (ddr->sdram_cfg & SDRAM_CFG_ECC_EN) if (ddr->sdram_cfg & SDRAM_CFG_ECC_EN)
puts(", ECC on)"); puts(", ECC on");
else else
puts(", ECC off)"); puts(", ECC off");
printf(", %s MHz)", strmhz(buf, gd->mem_clk));
#if defined(CFG_LB_SDRAM) && defined(CFG_LBC_SDRAM_SIZE) #if defined(CFG_LB_SDRAM) && defined(CFG_LBC_SDRAM_SIZE)
puts("\nSDRAM: "); puts("\nSDRAM: ");
...@@ -60,8 +65,6 @@ void board_add_ram_info(int use_default) ...@@ -60,8 +65,6 @@ void board_add_ram_info(int use_default)
#ifdef CONFIG_SPD_EEPROM #ifdef CONFIG_SPD_EEPROM
DECLARE_GLOBAL_DATA_PTR;
#if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRC) #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRC)
extern void dma_init(void); extern void dma_init(void);
extern uint dma_check(void); extern uint dma_check(void);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment