]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/logicpd/imx27lite/imx27lite.c
Remove volatile qualifier in get_ram_size() calls
[karo-tx-uboot.git] / board / logicpd / imx27lite / imx27lite.c
index 442741547bcce3c5e8a787ce4e02d647dfa213dc..2b273acea585770d68fb537c5422e415e63c1300 100644 (file)
@@ -38,7 +38,7 @@ int board_init (void)
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
 #ifdef CONFIG_MXC_UART
-       mx27_uart_init_pins();
+       mx27_uart1_init_pins();
 #endif
 #ifdef CONFIG_FEC_MXC
        mx27_fec_init_pins();
@@ -66,19 +66,22 @@ int board_init (void)
 
 int dram_init (void)
 {
+       /* dram_init must store complete ramsize in gd->ram_size */
+       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+                               PHYS_SDRAM_1_SIZE);
+       return 0;
+}
 
-#if CONFIG_NR_DRAM_BANKS > 0
-       gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-       gd->bd->bi_dram[0].size = get_ram_size((volatile void *)PHYS_SDRAM_1,
+void dram_init_banksize(void)
+{
+       gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_dram[0].size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
                        PHYS_SDRAM_1_SIZE);
-#endif
 #if CONFIG_NR_DRAM_BANKS > 1
        gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
-       gd->bd->bi_dram[1].size = get_ram_size((volatile void *)PHYS_SDRAM_2,
+       gd->bd->bi_dram[1].size = get_ram_size((void *)PHYS_SDRAM_2,
                        PHYS_SDRAM_2_SIZE);
 #endif
-
-       return 0;
 }
 
 int checkboard(void)