提交 fd70f72c 编写于 作者: F Florian Fainelli 提交者: David S. Miller

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: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c045a734
...@@ -74,6 +74,7 @@ typedef enum { ...@@ -74,6 +74,7 @@ typedef enum {
PHY_INTERFACE_MODE_RTBI, PHY_INTERFACE_MODE_RTBI,
PHY_INTERFACE_MODE_SMII, PHY_INTERFACE_MODE_SMII,
PHY_INTERFACE_MODE_XGMII, PHY_INTERFACE_MODE_XGMII,
PHY_INTERFACE_MODE_MOCA,
PHY_INTERFACE_MODE_MAX, PHY_INTERFACE_MODE_MAX,
} phy_interface_t; } phy_interface_t;
...@@ -113,6 +114,8 @@ static inline const char *phy_modes(phy_interface_t interface) ...@@ -113,6 +114,8 @@ static inline const char *phy_modes(phy_interface_t interface)
return "smii"; return "smii";
case PHY_INTERFACE_MODE_XGMII: case PHY_INTERFACE_MODE_XGMII:
return "xgmii"; return "xgmii";
case PHY_INTERFACE_MODE_MOCA:
return "moca";
default: default:
return "unknown"; return "unknown";
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册