ar71xx: enable the ar7240 switch driver on the ubnt nanostation m (fixes #10373)
[openwrt-10.03/.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-ubnt.c
index 3cd5a63ef506b0db3a208c05182a48b6fbb5b9a8..c0cfde0d6947c06919d0c915bd5cba6df184ecc2 100644 (file)
@@ -177,6 +177,7 @@ static void __init ubnt_rspro_setup(void)
        ar71xx_eth0_data.phy_mask = UBNT_RSPRO_WAN_PHYMASK;
 
        ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
+       ar71xx_eth1_data.phy_mask = UBNT_RSPRO_LAN_PHYMASK;
        ar71xx_eth1_data.speed = SPEED_1000;
        ar71xx_eth1_data.duplex = DUPLEX_FULL;
 
@@ -272,6 +273,7 @@ static void __init ubnt_nano_m_setup(void)
        ar71xx_eth1_data.fifo_cfg1 = 0x0010ffff;
        ar71xx_eth1_data.fifo_cfg2 = 0x015500aa;
        ar71xx_eth1_data.fifo_cfg3 = 0x01f00140;
+       ar71xx_eth1_data.has_ar7240_switch = 1;
 
        ar71xx_add_device_eth(1);
 }