Skip to content
Snippets Groups Projects
Commit 8a83c65f authored by Stefan Roese's avatar Stefan Roese Committed by Luka Perkov
Browse files

arm: mvebu: Display ECC enabled / disabled upon bootup


This patch adds "(ECC enabled)" or "(ECC disabled)" to the DRAM
bootup text. Making it easier for board with SPD DIMM's to see,
if ECC is enabled or not.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
parent 8a333716
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,13 @@ ...@@ -12,6 +12,13 @@
#include <asm/arch/cpu.h> #include <asm/arch/cpu.h>
#include <asm/arch/soc.h> #include <asm/arch/soc.h>
#ifdef CONFIG_SYS_MVEBU_DDR_A38X
#include "../../../drivers/ddr/marvell/a38x/ddr3_init.h"
#endif
#ifdef CONFIG_SYS_MVEBU_DDR_AXP
#include "../../../drivers/ddr/marvell/axp/ddr3_init.h"
#endif
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
struct sdram_bank { struct sdram_bank {
...@@ -140,3 +147,15 @@ void dram_init_banksize(void) ...@@ -140,3 +147,15 @@ void dram_init_banksize(void)
{ {
dram_init(); dram_init();
} }
void board_add_ram_info(int use_default)
{
u32 reg;
reg = reg_read(REG_SDRAM_CONFIG_ADDR);
if (reg & (1 << REG_SDRAM_CONFIG_ECC_OFFS))
printf(" (ECC");
else
printf(" (ECC not");
printf(" enabled)");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment