summaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorFlorian Fainelli2017-06-23 19:33:14 +0200
committerDavid S. Miller2017-06-23 21:06:43 +0200
commit735d8a18433e8d953e4e2b92883bfcc566e382c2 (patch)
tree7a412d9bb14d0eddf3318b2f6d7fbd33549b3b17 /include/linux/phy.h
parentdt-bindings: Add "internal" as a valid 'phy-mode' property (diff)
downloadkernel-qcow2-linux-735d8a18433e8d953e4e2b92883bfcc566e382c2.tar.gz
kernel-qcow2-linux-735d8a18433e8d953e4e2b92883bfcc566e382c2.tar.xz
kernel-qcow2-linux-735d8a18433e8d953e4e2b92883bfcc566e382c2.zip
net: phy: Support "internal" PHY interface
Now that the Device Tree binding has been updated, update the PHY library phy_interface_t and phy_modes to support the "internal" PHY interface type. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 23d2e46dd322..1d8d70193782 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -64,6 +64,7 @@
/* Interface Mode definitions */
typedef enum {
PHY_INTERFACE_MODE_NA,
+ PHY_INTERFACE_MODE_INTERNAL,
PHY_INTERFACE_MODE_MII,
PHY_INTERFACE_MODE_GMII,
PHY_INTERFACE_MODE_SGMII,
@@ -114,6 +115,8 @@ static inline const char *phy_modes(phy_interface_t interface)
switch (interface) {
case PHY_INTERFACE_MODE_NA:
return "";
+ case PHY_INTERFACE_MODE_INTERNAL:
+ return "internal";
case PHY_INTERFACE_MODE_MII:
return "mii";
case PHY_INTERFACE_MODE_GMII: