summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2015-09-19 16:26:48 +0530
committerTom Rini <trini@konsulko.com>2015-10-22 14:22:22 -0400
commitbf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb (patch)
tree4f790c40770383a7ff622e6127e0b7e5c6f7dedf /arch
parentcddb330035a7418c20b64fb8817715a2b7b7859a (diff)
downloadtalos-obmc-uboot-bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb.tar.gz
talos-obmc-uboot-bf7bd4e725105fc0f6f43df6d01d85c6df3ce4eb.zip
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')
-rw-r--r--arch/arm/include/asm/ti-common/keystone_net.h2
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 4b5ea055be..43a6568ed4 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;
};
OpenPOWER on IntegriCloud