diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-02-13 16:08:42 -0800 |
---|---|---|
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) | |
download | linux-stable-fd70f72c66eeada848abaed9eb6bbdbaf57764e9.tar.gz linux-stable-fd70f72c66eeada848abaed9eb6bbdbaf57764e9.tar.bz2 linux-stable-fd70f72c66eeada848abaed9eb6bbdbaf57764e9.zip |
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 { PHY_INTERFACE_MODE_RTBI, PHY_INTERFACE_MODE_SMII, PHY_INTERFACE_MODE_XGMII, + PHY_INTERFACE_MODE_MOCA, PHY_INTERFACE_MODE_MAX, } phy_interface_t; @@ -113,6 +114,8 @@ static inline const char *phy_modes(phy_interface_t interface) return "smii"; case PHY_INTERFACE_MODE_XGMII: return "xgmii"; + case PHY_INTERFACE_MODE_MOCA: + return "moca"; default: return "unknown"; } |