]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_arm/board.c
Patch by Mathijs Haarman, 08 May 2003:
[karo-tx-uboot.git] / lib_arm / board.c
index a725c2425e581c70c44dfd880244f16f386d845d..54f554b6d4dc567bad9035cee06d2ea19ea77747 100644 (file)
@@ -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);