mirror of https://github.com/hak5/openwrt.git
ar71xx: enable access to the WAN port PHY on a few devices, adds WAN link detection
SVN-Revision: 26394lede-17.01
parent
41ee4a283c
commit
98c78c13db
|
@ -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.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||||
ar71xx_eth0_data.speed = SPEED_100;
|
ar71xx_eth0_data.speed = SPEED_100;
|
||||||
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
||||||
|
ar71xx_eth0_data.phy_mask = BIT(4);
|
||||||
|
|
||||||
/* LAN ports */
|
/* LAN ports */
|
||||||
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||||
|
|
|
@ -124,6 +124,7 @@ static void __init rb750_setup(void)
|
||||||
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||||
ar71xx_eth0_data.speed = SPEED_100;
|
ar71xx_eth0_data.speed = SPEED_100;
|
||||||
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
||||||
|
ar71xx_eth0_data.phy_mask = BIT(4);
|
||||||
|
|
||||||
/* LAN ports */
|
/* LAN ports */
|
||||||
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||||
|
|
|
@ -130,6 +130,7 @@ static void __init tl_mr3x20_setup(void)
|
||||||
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||||
ar71xx_eth0_data.speed = SPEED_100;
|
ar71xx_eth0_data.speed = SPEED_100;
|
||||||
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
||||||
|
ar71xx_eth0_data.phy_mask = BIT(4);
|
||||||
|
|
||||||
/* LAN ports */
|
/* LAN ports */
|
||||||
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||||
|
|
|
@ -115,6 +115,7 @@ static void __init tl_wr741nd_setup(void)
|
||||||
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||||
ar71xx_eth0_data.speed = SPEED_100;
|
ar71xx_eth0_data.speed = SPEED_100;
|
||||||
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
||||||
|
ar71xx_eth0_data.phy_mask = BIT(4);
|
||||||
|
|
||||||
/* LAN ports */
|
/* LAN ports */
|
||||||
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||||
|
|
Loading…
Reference in New Issue