diff options
author | wdenk <wdenk> | 2003-05-12 21:50:16 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-05-12 21:50:16 +0000 |
commit | 45219c46605f9b933ab454738ee4ce543d5b70d6 (patch) | |
tree | dae6530a55b6b7b5a6974a5c557637419256a2ec /lib_arm | |
parent | f7de16ae259fd01afe1d342dd0247dc9d3911edd (diff) | |
download | u-boot-imx-45219c46605f9b933ab454738ee4ce543d5b70d6.zip u-boot-imx-45219c46605f9b933ab454738ee4ce543d5b70d6.tar.gz u-boot-imx-45219c46605f9b933ab454738ee4ce543d5b70d6.tar.bz2 |
Patch by Mathijs Haarman, 08 May 2003:
Add lan91c96 driver (tested on Lubbock and custom PXA250 board only)
Diffstat (limited to 'lib_arm')
-rw-r--r-- | lib_arm/board.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c index a725c24..54f554b 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -42,6 +42,9 @@ const char version_string[] = extern void cs8900_get_enetaddr (uchar * addr); #endif +#ifdef CONFIG_DRIVER_LAN91C96 +#include "../drivers/lan91c96.h" +#endif /* * Begin and End of memory area for malloc(), and current "brk" */ @@ -275,6 +278,13 @@ void start_armboot (void) cs8900_get_enetaddr (gd->bd->bi_enetaddr); #endif +#ifdef CONFIG_DRIVER_LAN91C96 + if (getenv ("ethaddr")) { + smc_set_mac_addr(gd->bd->bi_enetaddr); + } + /* eth_hw_init(); */ +#endif /* CONFIG_DRIVER_LAN91C96 */ + /* Initialize from environment */ if ((s = getenv ("loadaddr")) != NULL) { load_addr = simple_strtoul (s, NULL, 16); |