diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2015-09-19 16:26:48 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-22 14:22:22 -0400 |
commit | bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb (patch) | |
tree | 4f790c40770383a7ff622e6127e0b7e5c6f7dedf /board/ti/ks2_evm/board_k2l.c | |
parent | cddb330035a7418c20b64fb8817715a2b7b7859a (diff) | |
download | u-boot-imx-bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb.zip u-boot-imx-bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb.tar.gz u-boot-imx-bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb.tar.bz2 |
driver: net: keystone_net: fix phy mode configuration
Phy mode is a board property and it can be different between
multiple board and ports, so it should not be hardcoded in
driver to one specific mode. So adding a field in eth_priv_t
structure to pass phy mode to driver.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti/ks2_evm/board_k2l.c')
-rw-r--r-- | board/ti/ks2_evm/board_k2l.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/ti/ks2_evm/board_k2l.c b/board/ti/ks2_evm/board_k2l.c index f35a64f..d750ad3 100644 --- a/board/ti/ks2_evm/board_k2l.c +++ b/board/ti/ks2_evm/board_k2l.c @@ -75,6 +75,7 @@ struct eth_priv_t eth_priv_cfg[] = { .phy_addr = 0, .slave_port = 1, .sgmii_link_type = SGMII_LINK_MAC_PHY, + .phy_if = PHY_INTERFACE_MODE_SGMII, }, { .int_name = "K2L_EMAC1", @@ -82,6 +83,7 @@ struct eth_priv_t eth_priv_cfg[] = { .phy_addr = 1, .slave_port = 2, .sgmii_link_type = SGMII_LINK_MAC_PHY, + .phy_if = PHY_INTERFACE_MODE_SGMII, }, { .int_name = "K2L_EMAC2", @@ -89,6 +91,7 @@ struct eth_priv_t eth_priv_cfg[] = { .phy_addr = 2, .slave_port = 3, .sgmii_link_type = SGMII_LINK_MAC_MAC_FORCED, + .phy_if = PHY_INTERFACE_MODE_SGMII, }, { .int_name = "K2L_EMAC3", @@ -96,6 +99,7 @@ struct eth_priv_t eth_priv_cfg[] = { .phy_addr = 3, .slave_port = 4, .sgmii_link_type = SGMII_LINK_MAC_MAC_FORCED, + .phy_if = PHY_INTERFACE_MODE_SGMII, }, }; |