85xx: the DDR tlb is missed for the !CONFIG_SPD_EEPROM case
authorDave Liu <daveliu@freescale.com>
Tue, 28 Oct 2008 09:53:45 +0000 (17:53 +0800)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Thu, 4 Dec 2008 04:46:05 +0000 (22:46 -0600)
we need TLB entry for DDR at !SPD case.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Acked-by: Andy Fleming <afleming@freescale.com>
board/freescale/mpc8536ds/mpc8536ds.c
board/freescale/mpc8572ds/mpc8572ds.c

index 2538483378d376cadb0139b935c5ef43ca2a7d2e..2b17612b336906cd519a97e7bcba2c2f58e63ec2 100644 (file)
@@ -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;
index 242af863bd8c684a919ff7f7d26a729ce70db2fe..a14db5ad2c4f8bfcf0517fd3f67d63830e86fca0 100644 (file)
@@ -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;