diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-02-13 19:08:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-14 00:27:57 -0500 |
commit | fd70f72c66eeada848abaed9eb6bbdbaf57764e9 (patch) | |
tree | a1b6e177b2a3ba11938bc3f9c062b7c51b3a91af /include/linux/phy.h | |
parent | c045a734da4cb6d4665962f252de3d8871136ae9 (diff) |
net: phy: add MoCA PHY type
Some Ethernet MACs are connected to a MoCA PHY which will handle the
low-level job of sending Ethernet frames on the coaxial cable, these
Ethernet MACs need to know about it to be properly configured.
Add a new PHY mode "moca" and update the Device Tree parsing logic to
look for it.
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 42f1bc7eaeb0..f7fe54628424 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
@@ -74,6 +74,7 @@ typedef enum { | |||
74 | PHY_INTERFACE_MODE_RTBI, | 74 | PHY_INTERFACE_MODE_RTBI, |
75 | PHY_INTERFACE_MODE_SMII, | 75 | PHY_INTERFACE_MODE_SMII, |
76 | PHY_INTERFACE_MODE_XGMII, | 76 | PHY_INTERFACE_MODE_XGMII, |
77 | PHY_INTERFACE_MODE_MOCA, | ||
77 | PHY_INTERFACE_MODE_MAX, | 78 | PHY_INTERFACE_MODE_MAX, |
78 | } phy_interface_t; | 79 | } phy_interface_t; |
79 | 80 | ||
@@ -113,6 +114,8 @@ static inline const char *phy_modes(phy_interface_t interface) | |||
113 | return "smii"; | 114 | return "smii"; |
114 | case PHY_INTERFACE_MODE_XGMII: | 115 | case PHY_INTERFACE_MODE_XGMII: |
115 | return "xgmii"; | 116 | return "xgmii"; |
117 | case PHY_INTERFACE_MODE_MOCA: | ||
118 | return "moca"; | ||
116 | default: | 119 | default: |
117 | return "unknown"; | 120 | return "unknown"; |
118 | } | 121 | } |