]> git.sur5r.net Git - u-boot/commitdiff
phylib: add atheros ar803x phy
authorHeiko Schocher <hs@denx.de>
Tue, 4 Jun 2013 08:58:00 +0000 (10:58 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 25 Jun 2013 00:11:17 +0000 (19:11 -0500)
add atheros ar803x phy, used on the upcoming siemens boards.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Andy Fleming <afleming@freescale.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
drivers/net/phy/atheros.c

index 4691f8570fa8265ab1298b348e7d4bdb16b8a08c..09d487971f6c9dbb02cdd5d7ddf89a1811ac5d60 100644 (file)
@@ -61,7 +61,17 @@ static struct phy_driver AR8021_driver =  {
        .shutdown = genphy_shutdown,
 };
 
-struct phy_driver AR8035_driver =  {
+static struct phy_driver AR8031_driver =  {
+       .name = "AR8031",
+       .uid = 0x4dd074,
+       .mask = 0xfffff0,
+       .features = PHY_GBIT_FEATURES,
+       .config = genphy_config,
+       .startup = genphy_startup,
+       .shutdown = genphy_shutdown,
+};
+
+static struct phy_driver AR8035_driver =  {
        .name = "AR8035",
        .uid = 0x4dd072,
        .mask = 0x4fffff,
@@ -74,6 +84,7 @@ struct phy_driver AR8035_driver =  {
 int phy_atheros_init(void)
 {
        phy_register(&AR8021_driver);
+       phy_register(&AR8031_driver);
        phy_register(&AR8035_driver);
 
        return 0;