#define WNDR3700_BUTTONS_POLL_INTERVAL 20
+#define WNDR3700_ETH0_MAC_OFFSET 0
+#define WNDR3700_ETH1_MAC_OFFSET 0x6
+
#define WNDR3700_WMAC0_MAC_OFFSET 0
#define WNDR3700_WMAC1_MAC_OFFSET 0xc
#define WNDR3700_CALDATA0_OFFSET 0x1000
{
u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
- ar71xx_init_mac(ar71xx_eth0_data.mac_addr, art, 0);
+ ar71xx_init_mac(ar71xx_eth0_data.mac_addr,
+ art + WNDR3700_ETH0_MAC_OFFSET, 0);
ar71xx_eth0_pll_data.pll_1000 = 0x11110000;
ar71xx_eth0_data.mii_bus_dev = &wndr3700_rtl8366s_device.dev;
ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;
ar71xx_eth0_data.speed = SPEED_1000;
ar71xx_eth0_data.duplex = DUPLEX_FULL;
- ar71xx_init_mac(ar71xx_eth1_data.mac_addr, art, 1);
+ ar71xx_init_mac(ar71xx_eth1_data.mac_addr,
+ art + WNDR3700_ETH1_MAC_OFFSET, 0);
ar71xx_eth1_pll_data.pll_1000 = 0x11110000;
ar71xx_eth1_data.mii_bus_dev = &wndr3700_rtl8366s_device.dev;
ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;