]> git.sur5r.net Git - u-boot/blobdiff - board/ti/am57xx/board.c
env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr()
[u-boot] / board / ti / am57xx / board.c
index 00a31a97fd6dce4ae98d704638c7f4df271b2ef4..aaa14642736f2a3ce5da36c0cf3c0138372a4806 100644 (file)
@@ -592,7 +592,7 @@ void am57x_idk_lcd_detect(void)
                /* we will let default be "no lcd" */
        }
 out:
-       setenv("idk_lcd", idk_lcd);
+       env_set("idk_lcd", idk_lcd);
        return;
 }
 
@@ -612,7 +612,7 @@ int board_late_init(void)
         * on HS devices.
         */
        if (get_device_type() == HS_DEVICE)
-               setenv("boot_fit", "1");
+               env_set("boot_fit", "1");
 
        /*
         * Set the GPIO7 Pad to POWERHOLD. This has higher priority
@@ -742,7 +742,7 @@ int spl_start_uboot(void)
 
 #ifdef CONFIG_SPL_ENV_SUPPORT
        env_init();
-       env_relocate_spec();
+       env_load();
        if (getenv_yesno("boot_os") != 1)
                return 1;
 #endif
@@ -937,7 +937,7 @@ int board_eth_init(bd_t *bis)
                printf("<ethaddr> not set. Validating first E-fuse MAC\n");
 
                if (is_valid_ethaddr(mac_addr))
-                       eth_setenv_enetaddr("ethaddr", mac_addr);
+                       eth_env_set_enetaddr("ethaddr", mac_addr);
        }
 
        mac_lo = readl((*ctrl)->control_core_mac_id_1_lo);
@@ -951,7 +951,7 @@ int board_eth_init(bd_t *bis)
 
        if (!getenv("eth1addr")) {
                if (is_valid_ethaddr(mac_addr))
-                       eth_setenv_enetaddr("eth1addr", mac_addr);
+                       eth_env_set_enetaddr("eth1addr", mac_addr);
        }
 
        ctrl_val = readl((*ctrl)->control_core_control_io1) & (~0x33);
@@ -986,9 +986,9 @@ int board_eth_init(bd_t *bis)
                        for (i = 0; i < num_macs; i++) {
                                u64_to_mac(mac1 + i, mac_addr);
                                if (is_valid_ethaddr(mac_addr)) {
-                                       eth_setenv_enetaddr_by_index("eth",
-                                                                    i + 2,
-                                                                    mac_addr);
+                                       eth_env_set_enetaddr_by_index("eth",
+                                                                     i + 2,
+                                                                     mac_addr);
                                }
                        }
                }