Commit fc3973a1 authored by Woojung Huh's avatar Woojung Huh Committed by David S. Miller

phy: micrel: add Microchip KSZ 9477 Switch PHY support

Adding Microchip 9477 Phy included in KSZ9477 Switch.
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarWoojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b8010fb
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
* ksz8081, ksz8091, * ksz8081, ksz8091,
* ksz8061, * ksz8061,
* Switch : ksz8873, ksz886x * Switch : ksz8873, ksz886x
* ksz9477
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -996,6 +997,16 @@ static struct phy_driver ksphy_driver[] = { ...@@ -996,6 +997,16 @@ static struct phy_driver ksphy_driver[] = {
.read_status = ksz8873mll_read_status, .read_status = ksz8873mll_read_status,
.suspend = genphy_suspend, .suspend = genphy_suspend,
.resume = genphy_resume, .resume = genphy_resume,
}, {
.phy_id = PHY_ID_KSZ9477,
.phy_id_mask = MICREL_PHY_ID_MASK,
.name = "Microchip KSZ9477",
.features = PHY_GBIT_FEATURES,
.config_init = kszphy_config_init,
.config_aneg = genphy_config_aneg,
.read_status = genphy_read_status,
.suspend = genphy_suspend,
.resume = genphy_resume,
} }; } };
module_phy_driver(ksphy_driver); module_phy_driver(ksphy_driver);
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
#define PHY_ID_KSZ8795 0x00221550 #define PHY_ID_KSZ8795 0x00221550
#define PHY_ID_KSZ9477 0x00221631
/* struct phy_device dev_flags definitions */ /* struct phy_device dev_flags definitions */
#define MICREL_PHY_50MHZ_CLK 0x00000001 #define MICREL_PHY_50MHZ_CLK 0x00000001
#define MICREL_PHY_FXEN 0x00000002 #define MICREL_PHY_FXEN 0x00000002
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment