aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-06-08 20:19:18 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-06-08 20:19:18 +0000
commitd55ebf3a8a0241ae7fe2354dbfd7103f9fbfb243 (patch)
tree7da1180274395d6d36795917b289cf43dc1f80c9 /target/linux/ar71xx
parent464d38476292a38c4328c4acc520bb07c9a277ce (diff)
downloadupstream-d55ebf3a8a0241ae7fe2354dbfd7103f9fbfb243.tar.gz
upstream-d55ebf3a8a0241ae7fe2354dbfd7103f9fbfb243.tar.bz2
upstream-d55ebf3a8a0241ae7fe2354dbfd7103f9fbfb243.zip
ar71xx: fix phy_mask on the RB433 for the IP17xx driver
SVN-Revision: 21728
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c
index 49089f59b2..00c99cea0e 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c
@@ -199,19 +199,22 @@ static void __init rb411u_setup(void)
MIPS_MACHINE(AR71XX_MACH_RB_411U, "411U", "MikroTik RouterBOARD 411U",
rb411u_setup);
+#define RB433_LAN_PHYMASK BIT(0)
+#define RB433_WAN_PHYMASK BIT(4)
+#define RB433_MDIO_PHYMASK (RB433_LAN_PHYMASK | RB433_WAN_PHYMASK)
+
static void __init rb433_setup(void)
{
rb4xx_generic_setup();
rb433_add_device_spi();
- ar71xx_add_device_mdio(0xffffffe9);
+ ar71xx_add_device_mdio(~RB433_MDIO_PHYMASK);
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII;
- ar71xx_eth0_data.speed = SPEED_100;
- ar71xx_eth0_data.duplex = DUPLEX_FULL;
+ ar71xx_eth0_data.phy_mask = RB433_LAN_PHYMASK;
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
- ar71xx_eth1_data.phy_mask = 0x00000010;
+ ar71xx_eth1_data.phy_mask = RB433_WAN_PHYMASK;
ar71xx_add_device_eth(1);
ar71xx_add_device_eth(0);