]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/ms7722se/ms7722se.c
sh: add common dram_init() function for all boards
[people/ms/u-boot.git] / board / ms7722se / ms7722se.c
index ee1e99c1172688cacef807360e5a8c8e5e0629ab..869b415ba981520a9d04b5c69d50e0b452af844a 100644 (file)
@@ -15,8 +15,6 @@
 #include <asm/io.h>
 #include <asm/processor.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 #define LED_BASE       0xB0800000
 
 int checkboard(void)
@@ -33,14 +31,6 @@ int board_init(void)
        return 0;
 }
 
-int dram_init(void)
-{
-       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
-       return 0;
-}
-
 void led_set_state(unsigned short value)
 {
        writew(value & 0xFF, LED_BASE);