diff options
author | wdenk <wdenk> | 2004-12-31 09:32:47 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-12-31 09:32:47 +0000 |
commit | e2ffd59b4d93c9149de1caaa087371b0cfc512c9 (patch) | |
tree | 86cfb6e30bec1686253b0542d76f57c5d62d183a /lib_ppc/board.c | |
parent | 400ab719c6025c176c50bcdff342384222d7424b (diff) | |
download | u-boot-e2ffd59b4d93c9149de1caaa087371b0cfc512c9.tar.gz u-boot-e2ffd59b4d93c9149de1caaa087371b0cfc512c9.tar.xz u-boot-e2ffd59b4d93c9149de1caaa087371b0cfc512c9.zip |
* 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 'lib_ppc/board.c')
-rw-r--r-- | lib_ppc/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c index cc9b479780..c6f5b18139 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -805,7 +805,7 @@ void board_init_r (gd_t *id, ulong dest_addr) load_sernum_ethaddr (); #endif -#if defined(CONFIG_ETH1ADDR) +#ifdef CONFIG_HAS_ETH1 /* handle the 2nd ethernet address */ s = getenv ("eth1addr"); @@ -816,7 +816,7 @@ void board_init_r (gd_t *id, ulong dest_addr) s = (*e) ? e + 1 : e; } #endif -#if defined(CONFIG_ETH2ADDR) +#ifdef CONFIG_HAS_ETH2 /* handle the 3rd ethernet address */ s = getenv ("eth2addr"); @@ -832,7 +832,7 @@ void board_init_r (gd_t *id, ulong dest_addr) } #endif -#if defined(CONFIG_ETH3ADDR) +#ifdef CONFIG_HAS_ETH3 /* handle 4th ethernet address */ s = getenv("eth3addr"); #if defined(CONFIG_XPEDITE1K) |