summaryrefslogtreecommitdiff
path: root/board/pn62/pn62.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-12-31 09:32:47 +0000
committerwdenk <wdenk>2004-12-31 09:32:47 +0000
commite2ffd59b4d93c9149de1caaa087371b0cfc512c9 (patch)
tree86cfb6e30bec1686253b0542d76f57c5d62d183a /board/pn62/pn62.c
parent400ab719c6025c176c50bcdff342384222d7424b (diff)
downloadu-boot-imx-e2ffd59b4d93c9149de1caaa087371b0cfc512c9.zip
u-boot-imx-e2ffd59b4d93c9149de1caaa087371b0cfc512c9.tar.gz
u-boot-imx-e2ffd59b4d93c9149de1caaa087371b0cfc512c9.tar.bz2
* Code cleanup, mostly for GCC-3.3.x
* Cleanup confusing use of CONFIG_ETH*ADDR - ust his only to pre-define a MAC address; use CONFIG_HAS_ETH* to enable support for additional ethernet addresses. * Cleanup drivers/i82365.c - avoid duplication of code * Fix bogus "cannot span across banks" flash error message * Add support for CompactFlash for the CPC45 Board.
Diffstat (limited to 'board/pn62/pn62.c')
-rw-r--r--board/pn62/pn62.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/pn62/pn62.c b/board/pn62/pn62.c
index c0111dc..0252240 100644
--- a/board/pn62/pn62.c
+++ b/board/pn62/pn62.c
@@ -145,11 +145,13 @@ int misc_init_r (void)
}
show_startup_phase (10);
+#ifdef CONFIG_HAS_ETH1
if (getenv ("eth1addr") == NULL &&
get_mac_address (1, mac, str, sizeof (str)) > 0) {
setenv ("eth1addr", str);
memcpy (gd->bd->bi_enet1addr, mac, 6);
}
+#endif /* CONFIG_HAS_ETH1 */
show_startup_phase (11);
/* Tell everybody that U-Boot is up and runnig */