summaryrefslogtreecommitdiff
path: root/board/cm-bf537e
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-05-04 14:55:15 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2015-05-20 11:07:27 -0500
commit76ec988b062ed880ab23d0e0d4e9e6c137b55cc3 (patch)
tree9f97bb7d62c2c8114f688c512e6169f105db1fba /board/cm-bf537e
parent92ac520821405e196c920d60921bdfa5ab6b878c (diff)
downloadu-boot-imx-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.zip
u-boot-imx-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.tar.gz
u-boot-imx-76ec988b062ed880ab23d0e0d4e9e6c137b55cc3.tar.bz2
net: Remove all calls to net_random_ethaddr()
Remove the calls to net_random_ethaddr() that some boards and some drivers are calling. This is now implemented inside of net/eth.c Enable the feature for all boards that previously enabled it. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-By: Michael Walle <michael@walle.cc> (for the lsxl board part) Series-changes: 2 -Fixed bfin build errors
Diffstat (limited to 'board/cm-bf537e')
-rw-r--r--board/cm-bf537e/cm-bf537e.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/board/cm-bf537e/cm-bf537e.c b/board/cm-bf537e/cm-bf537e.c
index 902611e..57c72a2 100644
--- a/board/cm-bf537e/cm-bf537e.c
+++ b/board/cm-bf537e/cm-bf537e.c
@@ -23,18 +23,6 @@ int checkboard(void)
return 0;
}
-static void board_init_enetaddr(char *var)
-{
- uchar enetaddr[6];
-
- if (eth_getenv_enetaddr(var, enetaddr))
- return;
-
- printf("Warning: %s: generating 'random' MAC address\n", var);
- net_random_ethaddr(enetaddr);
- eth_setenv_enetaddr(var, enetaddr);
-}
-
#ifndef CONFIG_BFIN_MAC
# define bfin_EMAC_initialize(x) 1
#endif
@@ -50,9 +38,6 @@ int board_eth_init(bd_t *bis)
int misc_init_r(void)
{
- board_init_enetaddr("ethaddr");
- board_init_enetaddr("eth1addr");
-
gpio_cfi_flash_init();
return 0;