X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Ftoradex%2Fcommon%2Ftdx-common.c;h=fde230c955a4cd960e2119f57d46dd11f42a0f3e;hb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;hp=77ebb8831753a6ba26d68e13fadeb91f1888f2ae;hpb=382bee57f19b4454e2015bc19a010bc2d0ab9337;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/toradex/common/tdx-common.c b/board/toradex/common/tdx-common.c index 77ebb88..fde230c 100644 --- a/board/toradex/common/tdx-common.c +++ b/board/toradex/common/tdx-common.c @@ -1,12 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2016 Toradex, Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include +#include #include -#include +#include #include "tdx-cfg-block.h" #include @@ -86,18 +86,18 @@ int show_board_info(void) * Check if environment contains a valid MAC address, * set the one from config block if not */ - if (!eth_getenv_enetaddr("ethaddr", ethaddr)) - eth_setenv_enetaddr("ethaddr", (u8 *)&tdx_eth_addr); + if (!eth_env_get_enetaddr("ethaddr", ethaddr)) + eth_env_set_enetaddr("ethaddr", (u8 *)&tdx_eth_addr); #ifdef CONFIG_TDX_CFG_BLOCK_2ND_ETHADDR - if (!eth_getenv_enetaddr("eth1addr", ethaddr)) { + if (!eth_env_get_enetaddr("eth1addr", ethaddr)) { /* * Secondary MAC address is allocated from block * 0x100000 higher then the first MAC address */ memcpy(ethaddr, &tdx_eth_addr, 6); ethaddr[3] += 0x10; - eth_setenv_enetaddr("eth1addr", ethaddr); + eth_env_set_enetaddr("eth1addr", ethaddr); } #endif