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 /arch/arm/include | |
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 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/ti-common/keystone_net.h | 2 |
1 files changed, 2 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 4b5ea05..43a6568 100644 --- a/arch/arm/include/asm/ti-common/keystone_net.h +++ b/arch/arm/include/asm/ti-common/keystone_net.h @@ -11,6 +11,7 @@ #define _KEYSTONE_NET_H_ #include <asm/io.h> +#include <phy.h> /* EMAC */ #ifdef CONFIG_KSNET_NETCP_V1_0 @@ -243,6 +244,7 @@ struct eth_priv_t { int phy_addr; int slave_port; int sgmii_link_type; + phy_interface_t phy_if; struct phy_device *phy_dev; }; |