summaryrefslogtreecommitdiff
path: root/lib_arm
diff options
context:
space:
mode:
authorLionel Xu <r63889@freescale.com>2009-07-31 15:14:01 +0800
committerJustin Waters <justin.waters@timesys.com>2012-09-05 14:56:59 -0400
commit8b45e7a5a55f3fd8c16c05b85670475cd393bebc (patch)
tree54f512a978e58291934ccbeb2530f7d3657d819c /lib_arm
parentbe8a0e984d468a6186e32d4e89329d22b227a8b5 (diff)
ENGR00113941 MX233: Make UBOOT v2009.01 work on EVK board
Porting MX233 UBOOT from 1.3.3 to V2009.01. Clear old cfg macro, such as CFG_HZ. Change MAC address getting source from initial configuration to On-Chip OTP. Signed-off-by: Lionel Xu <r63889@freescale.com>
Diffstat (limited to 'lib_arm')
-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 a44d308f672..552ea5f09ab 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);