net: phy: add RealTek RTL8211DN phy id
authorShaohui Xie <Shaohui.Xie@freescale.com>
Thu, 6 Aug 2015 11:03:35 +0000 (19:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2015 05:52:15 +0000 (22:52 -0700)
RTL8211DN is compatible with RTL8211E.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c

index 45353613b2ed1450f35e41fc13343b5bb6c3f413..43ab691362d48a982a571288f81269473429edae 100644 (file)
@@ -136,6 +136,19 @@ static struct phy_driver realtek_drvs[] = {
                .ack_interrupt  = &rtl821x_ack_interrupt,
                .config_intr    = &rtl8211b_config_intr,
                .driver         = { .owner = THIS_MODULE,},
+       }, {
+               .phy_id         = 0x001cc914,
+               .name           = "RTL8211DN Gigabit Ethernet",
+               .phy_id_mask    = 0x001fffff,
+               .features       = PHY_GBIT_FEATURES,
+               .flags          = PHY_HAS_INTERRUPT,
+               .config_aneg    = genphy_config_aneg,
+               .read_status    = genphy_read_status,
+               .ack_interrupt  = rtl821x_ack_interrupt,
+               .config_intr    = rtl8211e_config_intr,
+               .suspend        = genphy_suspend,
+               .resume         = genphy_resume,
+               .driver         = { .owner = THIS_MODULE,},
        }, {
                .phy_id         = 0x001cc915,
                .name           = "RTL8211E Gigabit Ethernet",
@@ -170,6 +183,7 @@ module_phy_driver(realtek_drvs);
 
 static struct mdio_device_id __maybe_unused realtek_tbl[] = {
        { 0x001cc912, 0x001fffff },
+       { 0x001cc914, 0x001fffff },
        { 0x001cc915, 0x001fffff },
        { 0x001cc916, 0x001fffff },
        { }