aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/pxa168_eth.h
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-10-22 20:26:45 +0200
committerDavid S. Miller <davem@davemloft.net>2014-10-24 15:49:20 -0400
commite7de17abeda24d8acc316b2e07bd969d03099eea (patch)
tree956a8d0c5b75de42998b4c589d5421cf229c469a /include/linux/pxa168_eth.h
parentphy: marvell: Add support for 88E3016 FastEthernet PHY (diff)
downloadwireguard-linux-e7de17abeda24d8acc316b2e07bd969d03099eea.tar.xz
wireguard-linux-e7de17abeda24d8acc316b2e07bd969d03099eea.zip
net: pxa168_eth: Provide phy_interface mode on platform_data
The PXA168 Ethernet IP support MII and RMII connection to its PHY. Currently, pxa168 platform_data does not provide a way to pass that and there is one user of pxa168 platform_data (mach-mmp/gplug). Given the pinctrl settings of gplug it uses RMII, so add and pass a corresponding phy_interface_t. Tested-by: Antoine Ténart <antoine.tenart@free-electrons.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/pxa168_eth.h')
-rw-r--r--include/linux/pxa168_eth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pxa168_eth.h b/include/linux/pxa168_eth.h
index 18d75e795606..37c381120bc8 100644
--- a/include/linux/pxa168_eth.h
+++ b/include/linux/pxa168_eth.h
@@ -13,6 +13,7 @@ struct pxa168_eth_platform_data {
*/
int speed; /* 0, SPEED_10, SPEED_100 */
int duplex; /* DUPLEX_HALF or DUPLEX_FULL */
+ phy_interface_t intf;
/*
* Override default RX/TX queue sizes if nonzero.