summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-02-13 16:08:42 -0800
committerDavid S. Miller <davem@davemloft.net>2014-02-14 00:27:57 -0500
commitfd70f72c66eeada848abaed9eb6bbdbaf57764e9 (patch)
treea1b6e177b2a3ba11938bc3f9c062b7c51b3a91af
parentc045a734da4cb6d4665962f252de3d8871136ae9 (diff)
downloadop-kernel-dev-fd70f72c66eeada848abaed9eb6bbdbaf57764e9.zip
op-kernel-dev-fd70f72c66eeada848abaed9eb6bbdbaf57764e9.tar.gz
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>
-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 42f1bc7..f7fe546 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";
}
OpenPOWER on IntegriCloud