diff options
author | Khoronzhuk, Ivan <ivan.khoronzhuk@ti.com> | 2014-10-17 17:44:35 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-10-23 15:27:28 (GMT) |
commit | 3fe93623cc5f5c5373fe0c0b7fe331f8800f4350 (patch) | |
tree | 7670e08320618f724c65cc61f59e63af085ec5e7 /arch/arm/include/asm/ti-common | |
parent | 550c5ce6f5b16e67f9af4c170efb91f1e342bafa (diff) | |
download | u-boot-3fe93623cc5f5c5373fe0c0b7fe331f8800f4350.tar.xz |
net: keystone_net: register eth PHYs on MDIO bus
As MDIO bus has been added we can register PHYs with it.
After registration, the PHY driver will be probed according to the
hardware on board.
Startup PHY at the ethernet open.
Use phy_startup() instead of keystone_get_link_status() when eth open,
as it verifies PHY link inside and SGMII link is checked before.
For K2HK evm PHY configuration at init was absent, so don't enable
phy config at init for k2hk evm.
Acked-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Diffstat (limited to 'arch/arm/include/asm/ti-common')
-rw-r--r-- | arch/arm/include/asm/ti-common/keystone_net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/ti-common/keystone_net.h b/arch/arm/include/asm/ti-common/keystone_net.h index e56759d..011c03c 100644 --- a/arch/arm/include/asm/ti-common/keystone_net.h +++ b/arch/arm/include/asm/ti-common/keystone_net.h @@ -239,6 +239,7 @@ struct eth_priv_t { int phy_addr; int slave_port; int sgmii_link_type; + struct phy_device *phy_dev; }; int keystone2_emac_initialize(struct eth_priv_t *eth_priv); |