ar71xx: build ALFA AP96 images with default profile as well
[oweals/openwrt.git] / target / linux / ar71xx / files / arch / mips / ar71xx / dev-ap91-pci.c
index e773702e14f7840c997d45ed3fa89c87543c9ff2..7cd8c6594eb0de64abbfe6201b1b77a5f33d88db 100644 (file)
@@ -33,7 +33,7 @@ static struct ar71xx_pci_irq ap91_pci_irqs[] __initdata = {
 
 static int ap91_pci_plat_dev_init(struct pci_dev *dev)
 {
-       switch(PCI_SLOT(dev->devfn)) {
+       switch (PCI_SLOT(dev->devfn)) {
        case 0:
                dev->dev.platform_data = &ap91_wmac_data;
                break;
@@ -42,6 +42,23 @@ static int ap91_pci_plat_dev_init(struct pci_dev *dev)
        return 0;
 }
 
+__init void ap91_pci_setup_wmac_leds(struct gpio_led *leds, int num_leds)
+{
+       ap91_wmac_data.leds = leds;
+       ap91_wmac_data.num_leds = num_leds;
+}
+
+__init void ap91_pci_setup_wmac_led_pin(int pin)
+{
+       ap91_wmac_data.led_pin = pin;
+}
+
+__init void ap91_pci_setup_wmac_gpio(u32 mask, u32 val)
+{
+       ap91_wmac_data.gpio_mask = mask;
+       ap91_wmac_data.gpio_val = val;
+}
+
 void __init ap91_pci_init(u8 *cal_data, u8 *mac_addr)
 {
        if (cal_data)