|
|
|
@ -54,19 +54,30 @@ static int ap94_pci_plat_dev_init(struct pci_dev *dev) |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void __init ap94_pci_enable_quirk_wndr3700(void) |
|
|
|
|
__init void ap94_pci_setup_wmac_led_pin(unsigned wmac, int pin) |
|
|
|
|
{ |
|
|
|
|
/* WNDR3700 uses GPIO 6-9 for antenna configuration */ |
|
|
|
|
|
|
|
|
|
ap94_wmac0_data.led_pin = 5; |
|
|
|
|
ap94_wmac0_data.gpio_mask = (0xf << 6); |
|
|
|
|
/* 2.4 GHz uses the first fixed antenna group (0, 1, 0, 1) */ |
|
|
|
|
ap94_wmac0_data.gpio_val = (10 << 6); |
|
|
|
|
switch (wmac) { |
|
|
|
|
case 0: |
|
|
|
|
ap94_wmac0_data.led_pin = pin; |
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
ap94_wmac1_data.led_pin = pin; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ap94_wmac1_data.led_pin = 5; |
|
|
|
|
ap94_wmac1_data.gpio_mask = (0xf << 6); |
|
|
|
|
/* 5 GHz uses the second fixed antenna group (0, 1, 1, 0) */ |
|
|
|
|
ap94_wmac1_data.gpio_val = (6 << 6); |
|
|
|
|
__init void ap94_pci_setup_wmac_gpio(unsigned wmac, u32 mask, u32 val) |
|
|
|
|
{ |
|
|
|
|
switch (wmac) { |
|
|
|
|
case 0: |
|
|
|
|
ap94_wmac0_data.gpio_mask = mask; |
|
|
|
|
ap94_wmac0_data.gpio_val = val; |
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
ap94_wmac1_data.gpio_mask = mask; |
|
|
|
|
ap94_wmac1_data.gpio_val = val; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void __init ap94_pci_init(u8 *cal_data0, u8 *mac_addr0, |
|
|
|
|