Skip to content
Snippets Groups Projects
Commit e57f0fa1 authored by Dave Liu's avatar Dave Liu Committed by Andrew Fleming-AFLEMING
Browse files

85xx: the DDR tlb is missed for the !CONFIG_SPD_EEPROM case


we need TLB entry for DDR at !SPD case.

Signed-off-by: default avatarDave Liu <daveliu@freescale.com>
Acked-by: default avatarAndy Fleming <afleming@freescale.com>
parent 9b0ad1b1
No related branches found
No related tags found
No related merge requests found
......@@ -61,13 +61,11 @@ initdram(int board_type)
#ifdef CONFIG_SPD_EEPROM
dram_size = fsl_ddr_sdram();
dram_size = setup_ddr_tlbs(dram_size / 0x100000);
dram_size *= 0x100000;
#else
dram_size = fixed_sdram();
#endif
dram_size = setup_ddr_tlbs(dram_size / 0x100000);
dram_size *= 0x100000;
puts(" DDR: ");
return dram_size;
......
......@@ -57,13 +57,11 @@ phys_size_t initdram(int board_type)
#ifdef CONFIG_SPD_EEPROM
dram_size = fsl_ddr_sdram();
dram_size = setup_ddr_tlbs(dram_size / 0x100000);
dram_size *= 0x100000;
#else
dram_size = fixed_sdram();
#endif
dram_size = setup_ddr_tlbs(dram_size / 0x100000);
dram_size *= 0x100000;
puts(" DDR: ");
return dram_size;
......
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