diff options
author | Michal Simek <monstr@monstr.eu> | 2010-08-02 14:42:09 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-10-12 16:51:34 +1000 |
commit | d69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d (patch) | |
tree | 33d7b483e0d01dc2a596d6191c598ff861ff0f6d /arch/microblaze | |
parent | 4aecfb1602729b40bf7b49866e9614e6b4f70c2d (diff) | |
download | u-boot-imx-d69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d.zip u-boot-imx-d69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d.tar.gz u-boot-imx-d69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d.tar.bz2 |
microblaze: Add support for NET_MULTI api
Microblaze hasn't supported NET_MULTI support.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/lib/board.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c index 3ff5c17..0ce040e 100644 --- a/arch/microblaze/lib/board.c +++ b/arch/microblaze/lib/board.c @@ -31,6 +31,7 @@ #include <version.h> #include <watchdog.h> #include <stdio_dev.h> +#include <net.h> DECLARE_GLOBAL_DATA_PTR; @@ -42,6 +43,7 @@ extern int gpio_init (void); #ifdef CONFIG_SYS_INTC_0 extern int interrupts_init (void); #endif + #if defined(CONFIG_CMD_NET) extern int eth_init (bd_t * bis); #endif @@ -165,8 +167,14 @@ void board_init (void) #if defined(CONFIG_CMD_NET) /* IP Address */ - bd->bi_ip_addr = getenv_IPaddr ("ipaddr"); - eth_init (bd); + bd->bi_ip_addr = getenv_IPaddr("ipaddr"); + + printf("Net: "); + eth_initialize(gd->bd); + + uchar enetaddr[6]; + eth_getenv_enetaddr("ethaddr", enetaddr); + printf("MAC: %pM\n", enetaddr); #endif /* main_loop */ |