summaryrefslogtreecommitdiffstats
path: root/arch/ppc/mach-mpc85xx/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/mach-mpc85xx/cpu.c')
-rw-r--r--arch/ppc/mach-mpc85xx/cpu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/ppc/mach-mpc85xx/cpu.c b/arch/ppc/mach-mpc85xx/cpu.c
index 39343ff494..17a1c4cb37 100644
--- a/arch/ppc/mach-mpc85xx/cpu.c
+++ b/arch/ppc/mach-mpc85xx/cpu.c
@@ -44,8 +44,10 @@ long int initdram(int board_type)
{
phys_size_t dram_size = 0;
- dram_size = fixed_sdram();
-
+ if (IS_ENABLED(CONFIG_DDR_SPD))
+ dram_size = fsl_ddr_sdram();
+ else
+ dram_size = fixed_sdram();
dram_size = e500_setup_ddr_tlbs(dram_size / 0x100000);
dram_size *= 0x100000;