]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
tsec: add AR8021 PHY support
authorLi Yang <leoli@freescale.com>
Thu, 27 Jan 2011 11:02:50 +0000 (19:02 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 4 Apr 2011 14:24:43 +0000 (09:24 -0500)
Signed-off-by: Li Yang <leoli@freescale.com>
drivers/net/tsec.c

index 9c8fe6244191db15ccb282a110e09450237b4c98..9a91b9e0b85130deb0d608f05841eac08929debd 100644 (file)
@@ -1810,6 +1810,28 @@ static struct phy_info phy_info_rtl8211b = {
        },
 };
 
+struct phy_info phy_info_AR8021 =  {
+        0x4dd04,
+        "AR8021",
+        4,
+        (struct phy_cmd[]) { /* config */
+                {MII_BMCR, BMCR_RESET, NULL},
+                {MII_BMCR, BMCR_ANENABLE|BMCR_ANRESTART, NULL},
+                {0x1d, 0x05, NULL},
+                {0x1e, 0x3D47, NULL},
+                {miim_end,}
+        },
+        (struct phy_cmd[]) { /* startup */
+                {MII_BMSR, miim_read, NULL},
+                {MII_BMSR, miim_read, &mii_parse_sr},
+                {MII_BMSR, miim_read, &mii_parse_link},
+                {miim_end,}
+        },
+        (struct phy_cmd[]) { /* shutdown */
+                {miim_end,}
+        }
+};
+
 static struct phy_info *phy_info[] = {
        &phy_info_cis8204,
        &phy_info_cis8201,
@@ -1832,6 +1854,7 @@ static struct phy_info *phy_info[] = {
        &phy_info_VSC8221,
        &phy_info_dp83865,
        &phy_info_rtl8211b,
+       &phy_info_AR8021,
        &phy_info_generic,      /* must be last; has ID 0 and 32 bit mask */
        NULL
 };