]> git.sur5r.net Git - u-boot/blobdiff - board/ti/ti816x/evm.c
net: Move enetaddr env access code to env config instead of net config
[u-boot] / board / ti / ti816x / evm.c
index 1a8fe27c9f69c7e423508b8be8da143a46f8d20c..abc961a86e06c5f7183e4c74ade85a145f5a8aee 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <spl.h>
 #include <netdev.h>
 #include <asm/cache.h>
@@ -38,7 +39,7 @@ int board_eth_init(bd_t *bis)
        uint32_t mac_hi, mac_lo;
        struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
 
-       if (!eth_getenv_enetaddr("ethaddr", mac_addr)) {
+       if (!eth_env_get_enetaddr("ethaddr", mac_addr)) {
                printf("<ethaddr> not set. Reading from E-fuse\n");
                /* try reading mac address from efuse */
                mac_lo = readl(&cdev->macid0l);