summaryrefslogtreecommitdiff
path: root/arch/microblaze/lib/board.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-10-12 20:48:01 +0200
committerWolfgang Denk <wd@denx.de>2010-10-12 20:48:01 +0200
commit655c54975296002587c705e05c23754edb121c2c (patch)
treeff970d8d467a7fddb8fa6217e1533a028cb4c036 /arch/microblaze/lib/board.c
parent0ee8746a93e29a3d884f19598409a3bea8ff51ab (diff)
parentb98cba0911c7d0c0486d600c2aa646395adf32f4 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-microblaze
Diffstat (limited to 'arch/microblaze/lib/board.c')
-rw-r--r--arch/microblaze/lib/board.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
index 3ff5c17d24..0ce040e9ef 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 */