]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/mpr2/mpr2.c
sh: add common dram_init() function for all boards
[people/ms/u-boot.git] / board / mpr2 / mpr2.c
index 7449e036e42dbbc3aaf2ce7c032f3ffecf8f237f..3788a390b88cc16f64f688897adbaa75b1844cb1 100644 (file)
@@ -11,8 +11,6 @@
 #include <asm/io.h>
 #include <asm/processor.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 int checkboard(void)
 {
        puts("BOARD: MPR2\n");
@@ -138,11 +136,3 @@ 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("SDRAM: %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
-       return 0;
-}