summaryrefslogtreecommitdiff
path: root/board/spear/spear320/spear320.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/spear/spear320/spear320.c')
-rw-r--r--board/spear/spear320/spear320.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/board/spear/spear320/spear320.c b/board/spear/spear320/spear320.c
index 1b6f362b5d..e101888e04 100644
--- a/board/spear/spear320/spear320.c
+++ b/board/spear/spear320/spear320.c
@@ -66,9 +66,15 @@ void board_nand_init()
int board_eth_init(bd_t *bis)
{
+ int ret = 0;
#if defined(CONFIG_DESIGNWARE_ETH)
- return designware_initialize(0, CONFIG_SPEAR_ETHBASE, CONFIG_DW0_PHY);
-#else
- return -1;
+ if (designware_initialize(0, CONFIG_SPEAR_ETHBASE, CONFIG_DW0_PHY) < 0)
+ ret += -1;
#endif
+#if defined(CONFIG_MACB)
+ if (macb_eth_initialize(0, (void *)CONFIG_SYS_MACB0_BASE,
+ CONFIG_MACB0_PHY) < 0)
+ ret += -1;
+#endif
+ return ret;
}