summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel A Fernandes <joelagnel@ti.com>2013-05-07 05:52:55 +0000
committerTom Rini <trini@ti.com>2013-06-10 08:43:08 -0400
commita662e0c345b4cd9f4c2d51796154ad4a345a72a5 (patch)
treeef82440c8c2d9d24104bdbf531167b8b8afe050d
parent10e167329b029890a4c704f094822da5f259b886 (diff)
am33xx: Board: Make CPSW section of ethernet initialization depend on CPSW driver
Not doing so breaks cases where CPSW is not required such as for USB RNDIS network boot. Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
-rw-r--r--board/ti/am335x/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index ebddf0c7ca..06e8f07c4e 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -505,6 +505,7 @@ int board_eth_init(bd_t *bis)
eth_setenv_enetaddr("ethaddr", mac_addr);
}
+#ifdef CONFIG_DRIVER_TI_CPSW
if (board_is_bone() || board_is_bone_lt() || board_is_idk()) {
writel(MII_MODE_ENABLE, &cdev->miisel);
cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =
@@ -520,6 +521,7 @@ int board_eth_init(bd_t *bis)
printf("Error %d registering CPSW switch\n", rv);
else
n += rv;
+#endif
/*
*