Skip to content
Snippets Groups Projects
Commit 5b933943 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Andy Fleming
Browse files

mpc8xxx: fix DDR init value to use CONFIG_MEM_INIT_VALUE


Configuring custom memory init value using CONFIG_MEM_INIT_VALUE in
the board config file doesn't work and memory is always initialized
to the value 0xdeadbeef. Only use this default value if a board doesn't
define CONFIG_MEM_INIT_VALUE.

Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Cc: Andy Fleming <afleming@freescale.com>
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent 31d084dd
No related branches found
No related tags found
No related merge requests found
......@@ -1190,7 +1190,11 @@ static void set_ddr_data_init(fsl_ddr_cfg_regs_t *ddr)
{
unsigned int init_value; /* Initialization value */
#ifdef CONFIG_MEM_INIT_VALUE
init_value = CONFIG_MEM_INIT_VALUE;
#else
init_value = 0xDEADBEEF;
#endif
ddr->ddr_data_init = init_value;
}
......
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