ar71xx: make the rtl8306 switch attach to eth0 instead of eth1 on the wrt160nl, fixes wan port detection (#6309)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18699 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
5232331c98
commit
fec8e48603
|
@ -15,7 +15,7 @@ config interface wan
|
||||||
option ifname eth1
|
option ifname eth1
|
||||||
option proto dhcp
|
option proto dhcp
|
||||||
|
|
||||||
config switch eth1
|
config switch eth0
|
||||||
option reset 1
|
option reset 1
|
||||||
option enable_vlan 1
|
option enable_vlan 1
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@ static void __init wrt160nl_setup(void)
|
||||||
ar71xx_add_device_mdio(0x0);
|
ar71xx_add_device_mdio(0x0);
|
||||||
|
|
||||||
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||||
ar71xx_eth0_data.phy_mask = 0xf;
|
ar71xx_eth0_data.phy_mask = 0x01;
|
||||||
ar71xx_eth0_data.speed = SPEED_100;
|
ar71xx_eth0_data.speed = SPEED_100;
|
||||||
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
ar71xx_eth0_data.duplex = DUPLEX_FULL;
|
||||||
|
|
||||||
|
|
|
@ -913,6 +913,9 @@ rtl8306_fixup(struct phy_device *pdev)
|
||||||
struct rtl_priv priv;
|
struct rtl_priv priv;
|
||||||
u16 chipid;
|
u16 chipid;
|
||||||
|
|
||||||
|
if (pdev->addr != 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
priv.page = -1;
|
priv.page = -1;
|
||||||
priv.bus = pdev->bus;
|
priv.bus = pdev->bus;
|
||||||
chipid = rtl_get(&priv.dev, RTL_REG_CHIPID);
|
chipid = rtl_get(&priv.dev, RTL_REG_CHIPID);
|
||||||
|
|
Loading…
Reference in New Issue