diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-06-23 13:33:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-23 15:06:43 -0400 |
commit | 735d8a18433e8d953e4e2b92883bfcc566e382c2 (patch) | |
tree | 7a412d9bb14d0eddf3318b2f6d7fbd33549b3b17 /include/linux/phy.h | |
parent | 29b65f5f97632722bb80969377e5b0e2401fb392 (diff) |
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.h | 3 |
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 @@ | |||
64 | /* Interface Mode definitions */ | 64 | /* Interface Mode definitions */ |
65 | typedef enum { | 65 | typedef enum { |
66 | PHY_INTERFACE_MODE_NA, | 66 | PHY_INTERFACE_MODE_NA, |
67 | PHY_INTERFACE_MODE_INTERNAL, | ||
67 | PHY_INTERFACE_MODE_MII, | 68 | PHY_INTERFACE_MODE_MII, |
68 | PHY_INTERFACE_MODE_GMII, | 69 | PHY_INTERFACE_MODE_GMII, |
69 | PHY_INTERFACE_MODE_SGMII, | 70 | PHY_INTERFACE_MODE_SGMII, |
@@ -114,6 +115,8 @@ static inline const char *phy_modes(phy_interface_t interface) | |||
114 | switch (interface) { | 115 | switch (interface) { |
115 | case PHY_INTERFACE_MODE_NA: | 116 | case PHY_INTERFACE_MODE_NA: |
116 | return ""; | 117 | return ""; |
118 | case PHY_INTERFACE_MODE_INTERNAL: | ||
119 | return "internal"; | ||
117 | case PHY_INTERFACE_MODE_MII: | 120 | case PHY_INTERFACE_MODE_MII: |
118 | return "mii"; | 121 | return "mii"; |
119 | case PHY_INTERFACE_MODE_GMII: | 122 | case PHY_INTERFACE_MODE_GMII: |