]> git.sur5r.net Git - u-boot/blobdiff - board/renesas/sh7752evb/sh7752evb.c
env: Rename setenv() to env_set()
[u-boot] / board / renesas / sh7752evb / sh7752evb.c
index 3aad532367b361cfe0c5bba0ed72f2f0e5c69c90..4a76fb73ee963bb9d8b8d0742a7d0f8fe4b6cb75 100644 (file)
@@ -159,17 +159,6 @@ int board_init(void)
        return 0;
 }
 
-int dram_init(void)
-{
-       DECLARE_GLOBAL_DATA_PTR;
-
-       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;
-}
-
 int board_mmc_init(bd_t *bis)
 {
        struct gpio_regs *gpio = GPIO_BASE;
@@ -232,10 +221,10 @@ static void init_ethernet_mac(void)
        for (i = 0; i < SH7752EVB_ETHERNET_NUM_CH; i++) {
                get_sh_eth_mac(i, mac_string, buf);
                if (i == 0)
-                       setenv("ethaddr", mac_string);
+                       env_set("ethaddr", mac_string);
                else {
                        sprintf(env_string, "eth%daddr", i);
-                       setenv(env_string, mac_string);
+                       env_set(env_string, mac_string);
                }
                set_mac_to_sh_giga_eth_register(i, mac_string);
        }