ar71xx: enable access to the WAN port PHY on a few devices, adds WAN link detection
authorFelix Fietkau <nbd@openwrt.org>
Sat, 2 Apr 2011 00:47:33 +0000 (00:47 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 2 Apr 2011 00:47:33 +0000 (00:47 +0000)
SVN-Revision: 26394

target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3x20.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c

index bb59dfb7a7d130ff3d2caf2d8d163417d16d82f9..c076489bfb3f3f4435c1d579dd3be0f1f4809b4d 100644 (file)
@@ -140,6 +140,7 @@ static void __init dir_600_a1_setup(void)
        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
        ar71xx_eth0_data.speed = SPEED_100;
        ar71xx_eth0_data.duplex = DUPLEX_FULL;
+       ar71xx_eth0_data.phy_mask = BIT(4);
 
        /* LAN ports */
        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
index 5ed383f9429e59c1fcbf938a3f1caaf558bcd129..547ad12d3f1d007500d7ee094a4e566ac5909991 100644 (file)
@@ -124,6 +124,7 @@ static void __init rb750_setup(void)
        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
        ar71xx_eth0_data.speed = SPEED_100;
        ar71xx_eth0_data.duplex = DUPLEX_FULL;
+       ar71xx_eth0_data.phy_mask = BIT(4);
 
        /* LAN ports */
        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
index 7e8ab4c21f011a93f53d067473826cd46a3a7e82..8bf853b83cf086aec4eee6903f636c7e7685abf1 100644 (file)
@@ -130,6 +130,7 @@ static void __init tl_mr3x20_setup(void)
        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
        ar71xx_eth0_data.speed = SPEED_100;
        ar71xx_eth0_data.duplex = DUPLEX_FULL;
+       ar71xx_eth0_data.phy_mask = BIT(4);
 
        /* LAN ports */
        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
index 24f72728859303921bcb2fc576fe71c32eda2781..909327ac7501ccd9481556926734e36e7bf565a9 100644 (file)
@@ -115,6 +115,7 @@ static void __init tl_wr741nd_setup(void)
        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
        ar71xx_eth0_data.speed = SPEED_100;
        ar71xx_eth0_data.duplex = DUPLEX_FULL;
+       ar71xx_eth0_data.phy_mask = BIT(4);
 
        /* LAN ports */
        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;