summaryrefslogtreecommitdiff
path: root/lib_arm/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_arm/board.c')
-rw-r--r--lib_arm/board.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c
index a44d308..552ea5f 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -437,6 +437,11 @@ extern void davinci_eth_set_mac_addr (const u_int8_t *addr);
}
#endif /* CONFIG_DRIVER_SMC91111 || CONFIG_DRIVER_LAN91C96 */
+#if defined(CONFIG_ENC28J60_ETH) && !defined(CONFIG_ETHADDR)
+ extern void enc_set_mac_addr (uchar *addr);
+ enc_set_mac_addr (gd->bd->bi_enetaddr);
+#endif /* CONFIG_ENC28J60_ETH && !CONFIG_ETHADDR*/
+
/* Initialize from environment */
if ((s = getenv ("loadaddr")) != NULL) {
load_addr = simple_strtoul (s, NULL, 16);