Skip to content

Commit fc3973a

Browse files
WoojungHuhdavem330
authored andcommitted
phy: micrel: add Microchip KSZ 9477 Switch PHY support
Adding Microchip 9477 Phy included in KSZ9477 Switch. Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Woojung Huh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8b8010f commit fc3973a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

drivers/net/phy/micrel.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* ksz8081, ksz8091,
2121
* ksz8061,
2222
* Switch : ksz8873, ksz886x
23+
* ksz9477
2324
*/
2425

2526
#include <linux/kernel.h>
@@ -996,6 +997,16 @@ static struct phy_driver ksphy_driver[] = {
996997
.read_status = ksz8873mll_read_status,
997998
.suspend = genphy_suspend,
998999
.resume = genphy_resume,
1000+
}, {
1001+
.phy_id = PHY_ID_KSZ9477,
1002+
.phy_id_mask = MICREL_PHY_ID_MASK,
1003+
.name = "Microchip KSZ9477",
1004+
.features = PHY_GBIT_FEATURES,
1005+
.config_init = kszphy_config_init,
1006+
.config_aneg = genphy_config_aneg,
1007+
.read_status = genphy_read_status,
1008+
.suspend = genphy_suspend,
1009+
.resume = genphy_resume,
9991010
} };
10001011

10011012
module_phy_driver(ksphy_driver);

include/linux/micrel_phy.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737

3838
#define PHY_ID_KSZ8795 0x00221550
3939

40+
#define PHY_ID_KSZ9477 0x00221631
41+
4042
/* struct phy_device dev_flags definitions */
4143
#define MICREL_PHY_50MHZ_CLK 0x00000001
4244
#define MICREL_PHY_FXEN 0x00000002

0 commit comments

Comments
 (0)