]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/renesas/r0p7734/r0p7734.c
sh: add common dram_init() function for all boards
[people/ms/u-boot.git] / board / renesas / r0p7734 / r0p7734.c
index 5687ad476625a22d7086a210aaff23e8c8503e5d..360e0a1a6fd051443a47e66667ad30b564d24699 100644 (file)
@@ -11,8 +11,6 @@
 #include <netdev.h>
 #include <i2c.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 #define MODEMR                 (0xFFCC0020)
 #define MODEMR_MASK            (0x6)
 #define MODEMR_533MHZ  (0x2)
@@ -55,21 +53,12 @@ int board_late_init(void)
        /* Read MAC address */
        i2c_read(0x50, 0x10, 0, mac, 6);
 
-       if (is_valid_ether_addr(mac))
+       if (is_valid_ethaddr(mac))
                eth_setenv_enetaddr("ethaddr", mac);
 
        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;
-}
-
 #ifdef CONFIG_SMC911X
 int board_eth_init(bd_t *bis)
 {