diff options
Diffstat (limited to 'board/phytec')
-rw-r--r-- | board/phytec/pcm051/board.c | 4 | ||||
-rw-r--r-- | board/phytec/pfla02/pfla02.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/board/phytec/pcm051/board.c b/board/phytec/pcm051/board.c index 4f3853ac42..52ad5b64de 100644 --- a/board/phytec/pcm051/board.c +++ b/board/phytec/pcm051/board.c @@ -216,7 +216,7 @@ int board_eth_init(bd_t *bis) uint8_t mac_addr[6]; uint32_t mac_hi, mac_lo; - 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); @@ -229,7 +229,7 @@ int board_eth_init(bd_t *bis) mac_addr[5] = (mac_lo & 0xFF00) >> 8; if (is_valid_ethaddr(mac_addr)) - eth_setenv_enetaddr("ethaddr", mac_addr); + eth_env_set_enetaddr("ethaddr", mac_addr); else goto try_usbether; } diff --git a/board/phytec/pfla02/pfla02.c b/board/phytec/pfla02/pfla02.c index 54e88c6a76..8d2ce63e06 100644 --- a/board/phytec/pfla02/pfla02.c +++ b/board/phytec/pfla02/pfla02.c @@ -392,7 +392,7 @@ int board_late_init(void) #endif snprintf(buf, sizeof(buf), "%d", get_board_rev()); - setenv("board_rev", buf); + env_set("board_rev", buf); return 0; } |