summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish Kumar <Ashish.Kumar@nxp.com>2017-10-27 11:41:56 (GMT)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>2017-10-30 03:12:22 (GMT)
commit64169db8168acf7e08efd2669bbd926194765f62 (patch)
treeacf1fb1bd682c72afb69214b8b3db40948f24afb
parent002dc70bc5c7fc5a38940abfd83415a9d2900de4 (diff)
downloadu-boot-64169db8168acf7e08efd2669bbd926194765f62.tar.xz
armv8: ls1088: introduce CONFIG_SGMII_PHYLIB
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
-rw-r--r--board/freescale/ls1088a/eth_ls1088aqds.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/ls1088a/eth_ls1088aqds.c b/board/freescale/ls1088a/eth_ls1088aqds.c
index 17bfc30..0dbc553 100644
--- a/board/freescale/ls1088a/eth_ls1088aqds.c
+++ b/board/freescale/ls1088a/eth_ls1088aqds.c
@@ -462,7 +462,10 @@ static void initialize_dpmac_to_slot(void)
void ls1088a_handle_phy_interface_sgmii(int dpmac_id)
{
+#ifdef CONFIG_SGMII_PHYLIB
struct mii_dev *bus;
+#endif
+
struct ccsr_gur __iomem *gur = (void *)CONFIG_SYS_FSL_GUTS_ADDR;
u32 serdes1_prtcl, cfg;
@@ -508,8 +511,12 @@ void ls1088a_handle_phy_interface_sgmii(int dpmac_id)
return;
}
dpmac_info[dpmac_id].board_mux = EMI1_SLOT1;
+
+#ifdef CONFIG_SGMII_PHYLIB
bus = mii_dev_for_muxval(EMI1_SLOT1);
wriop_set_mdio(dpmac_id, bus);
+#endif
+
}
void ls1088a_handle_phy_interface_qsgmii(int dpmac_id)