ar71xx: on wnr2200, revert the mac0/mac1, the ethernet interfaces are swapped. use MAC1 for wlan
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r47873 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48091 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
9ca65c3ef0
commit
997ac87161
|
@ -42,8 +42,8 @@
|
||||||
#define WNR2200_KEYS_POLL_INTERVAL 20 /* msecs */
|
#define WNR2200_KEYS_POLL_INTERVAL 20 /* msecs */
|
||||||
#define WNR2200_KEYS_DEBOUNCE_INTERVAL (3 * WNR2200_KEYS_POLL_INTERVAL)
|
#define WNR2200_KEYS_DEBOUNCE_INTERVAL (3 * WNR2200_KEYS_POLL_INTERVAL)
|
||||||
|
|
||||||
#define WNR2200_MAC0_OFFSET 6
|
#define WNR2200_MAC0_OFFSET 0
|
||||||
#define WNR2200_MAC1_OFFSET 0
|
#define WNR2200_MAC1_OFFSET 6
|
||||||
#define WNR2200_PCIE_CALDATA_OFFSET 0x1000
|
#define WNR2200_PCIE_CALDATA_OFFSET 0x1000
|
||||||
|
|
||||||
static struct gpio_led wnr2200_leds_gpio[] __initdata = {
|
static struct gpio_led wnr2200_leds_gpio[] __initdata = {
|
||||||
|
@ -122,7 +122,7 @@ static void __init wnr2200_setup(void)
|
||||||
|
|
||||||
ath79_register_m25p80(NULL);
|
ath79_register_m25p80(NULL);
|
||||||
ap91_pci_init(art + WNR2200_PCIE_CALDATA_OFFSET,
|
ap91_pci_init(art + WNR2200_PCIE_CALDATA_OFFSET,
|
||||||
art + WNR2200_MAC0_OFFSET);
|
art + WNR2200_MAC1_OFFSET);
|
||||||
|
|
||||||
ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2200_leds_gpio),
|
ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2200_leds_gpio),
|
||||||
wnr2200_leds_gpio);
|
wnr2200_leds_gpio);
|
||||||
|
|
Loading…
Reference in New Issue