net: phy: add MoCA PHY type
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 14 Feb 2014 00:08:42 +0000 (16:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Feb 2014 05:27:57 +0000 (00:27 -0500)
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>
include/linux/phy.h

index 42f1bc7eaeb00ab046853e0df2cb7d343086810e..f7fe54628424c151ae79f86d0d296557830bbe35 100644 (file)
@@ -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";
        }