]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/renesas/r7780mp/r7780mp.c
sh: add common dram_init() function for all boards
[people/ms/u-boot.git] / board / renesas / r7780mp / r7780mp.c
index 783352d476348ae00245a1f50d88b95fd05b71fc..de259f502b4c174401f5414af1b88d1e47aa38ab 100644 (file)
@@ -13,8 +13,6 @@
 #include <netdev.h>
 #include "r7780mp.h"
 
-DECLARE_GLOBAL_DATA_PTR;
-
 int checkboard(void)
 {
 #if defined(CONFIG_R7780MP)
@@ -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)
 {