mpc8xxx: fix DDR init value to use CONFIG_MEM_INIT_VALUE
authorAnatolij Gustschin <agust@denx.de>
Mon, 21 Jan 2013 23:50:27 +0000 (23:50 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 30 Jan 2013 17:25:15 +0000 (11:25 -0600)
commit5b93394318c04791c9b4edda7ff4af140427ed8a
tree24c97310e943e3fb7222ca94efba0537f0a6d174
parent31d084ddda7739762dd476b4fbb8a2d4b4ca1b25
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: Anatolij Gustschin <agust@denx.de>
Cc: Andy Fleming <afleming@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c