]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/amcc/acadia/memory.c
drivers, block: remove sil680 driver
[people/ms/u-boot.git] / board / amcc / acadia / memory.c
index 9673118857b7d06f4ad1b7faee09bafa81c84217..36500da6f4f7ed1c814c13ee4335c3234dac2829 100644 (file)
@@ -15,6 +15,8 @@
 #include <asm/io.h>
 #include <asm/ppc4xx-gpio.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 extern void board_pll_init_f(void);
 
 static void cram_bcr_write(u32 wr_val)
@@ -41,7 +43,7 @@ static void cram_bcr_write(u32 wr_val)
        return;
 }
 
-phys_size_t initdram(int board_type)
+int dram_init(void)
 {
        int i;
        u32 val;
@@ -77,5 +79,7 @@ phys_size_t initdram(int board_type)
        for (i=0; i<200000; i++)
                ;
 
-       return (CONFIG_SYS_MBYTES_RAM << 20);
+       gd->ram_size = CONFIG_SYS_MBYTES_RAM << 20;
+
+       return 0;
 }