summaryrefslogtreecommitdiff
path: root/board/atmel/at91sam9261ek/at91sam9261ek.c
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2009-05-02 21:49:18 +0200
committerBen Warren <biggerbadderben@gmail.com>2009-06-15 00:13:55 -0700
commit60f61e6d7655400bb785a2ef637581679941f6d1 (patch)
tree9ef42885ec5b620b6f2cde24a0f561856e6bf67e /board/atmel/at91sam9261ek/at91sam9261ek.c
parent9131589ada4dda0718604d0a425ca46e52775f6e (diff)
downloadu-boot-imx-60f61e6d7655400bb785a2ef637581679941f6d1.zip
u-boot-imx-60f61e6d7655400bb785a2ef637581679941f6d1.tar.gz
u-boot-imx-60f61e6d7655400bb785a2ef637581679941f6d1.tar.bz2
Convert DM9000 driver for CONFIG_NET_MULTI
All drivers need to be converted to CONFIG_NET_MULTI. This patch converts the dm9000 driver. Signed-off-by: Thomas Smits <ts.smits@gmail.com> Signed-off-by: Remy Bohmer <linux@bohmer.net> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'board/atmel/at91sam9261ek/at91sam9261ek.c')
-rw-r--r--board/atmel/at91sam9261ek/at91sam9261ek.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/atmel/at91sam9261ek/at91sam9261ek.c b/board/atmel/at91sam9261ek/at91sam9261ek.c
index a89cb8b..0817e60 100644
--- a/board/atmel/at91sam9261ek/at91sam9261ek.c
+++ b/board/atmel/at91sam9261ek/at91sam9261ek.c
@@ -36,6 +36,7 @@
#include <atmel_lcdc.h>
#if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_DRIVER_DM9000)
#include <net.h>
+#include <netdev.h>
#endif
DECLARE_GLOBAL_DATA_PTR;
@@ -227,6 +228,12 @@ int board_init(void)
return 0;
}
+#ifdef CONFIG_DRIVER_DM9000
+ int board_eth_init(bd_t *bis)
+ {
+ return dm9000_initialize(bis);
+ }
+ #endif
int dram_init(void)
{
gd->bd->bi_dram[0].start = PHYS_SDRAM;