--- /dev/null
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
+config interface lan
+ option ifname eth0
+ option type bridge
+ option proto static
+ option ipaddr 192.168.1.1
+ option netmask 255.255.255.0
+
+config interface wan
+ option ifname eth1
+ option proto dhcp
+
+config switch eth0
+ option enable_vlan 1
+
+config switch_vlan
+ option device eth0
+ option vlan 1
+ option ports "0 1 2 3 4"
{
.desc = "reset",
.type = EV_KEY,
- .code = KEY_RESTART,
+ .code = BTN_0,
.threshold = 3,
.gpio = TL_MR3420_GPIO_BTN_RESET,
.active_low = 1,
}, {
.desc = "qss",
.type = EV_KEY,
- .code = KEY_WPS_BUTTON,
+ .code = BTN_1,
.threshold = 3,
.gpio = TL_MR3420_GPIO_BTN_QSS,
.active_low = 1,
tl_mr3420_gpio_buttons);
ar71xx_eth1_data.has_ar7240_switch = 1;
-
ar71xx_set_mac_base(mac);
/* WAN port */
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;
ar71xx_add_device_usb();
+ ap91_pci_setup_wmac_led_pin(0);
+
ap91_pci_init(ee, mac);
}
+
MIPS_MACHINE(AR71XX_MACH_TL_MR3420, "TL-MR3420", "TP-LINK TL-MR3420",
tl_mr3420_setup);