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

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: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 29b65f5f
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
/* Interface Mode definitions */ /* Interface Mode definitions */
typedef enum { typedef enum {
PHY_INTERFACE_MODE_NA, PHY_INTERFACE_MODE_NA,
PHY_INTERFACE_MODE_INTERNAL,
PHY_INTERFACE_MODE_MII, PHY_INTERFACE_MODE_MII,
PHY_INTERFACE_MODE_GMII, PHY_INTERFACE_MODE_GMII,
PHY_INTERFACE_MODE_SGMII, PHY_INTERFACE_MODE_SGMII,
...@@ -114,6 +115,8 @@ static inline const char *phy_modes(phy_interface_t interface) ...@@ -114,6 +115,8 @@ static inline const char *phy_modes(phy_interface_t interface)
switch (interface) { switch (interface) {
case PHY_INTERFACE_MODE_NA: case PHY_INTERFACE_MODE_NA:
return ""; return "";
case PHY_INTERFACE_MODE_INTERNAL:
return "internal";
case PHY_INTERFACE_MODE_MII: case PHY_INTERFACE_MODE_MII:
return "mii"; return "mii";
case PHY_INTERFACE_MODE_GMII: case PHY_INTERFACE_MODE_GMII:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册