summaryrefslogtreecommitdiff
path: root/board/spear/spear300
diff options
context:
space:
mode:
Diffstat (limited to 'board/spear/spear300')
-rw-r--r--board/spear/spear300/spear300.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/spear/spear300/spear300.c b/board/spear/spear300/spear300.c
index 72a3631..2283ad5 100644
--- a/board/spear/spear300/spear300.c
+++ b/board/spear/spear300/spear300.c
@@ -22,6 +22,7 @@
*/
#include <common.h>
+#include <netdev.h>
#include <nand.h>
#include <asm/io.h>
#include <linux/mtd/fsmc_nand.h>
@@ -60,3 +61,12 @@ void board_nand_init()
#endif
return;
}
+
+int board_eth_init(bd_t *bis)
+{
+#if defined(CONFIG_DESIGNWARE_ETH)
+ return designware_initialize(0, CONFIG_SPEAR_ETHBASE, CONFIG_DW0_PHY);
+#else
+ return -1;
+#endif
+}