backfire: ar71xx: add helper function to setup ath9k LED/GPIO on the AP94 based board...
[openwrt-10.03/.git] / target / linux / ar71xx / files / arch / mips / ar71xx / dev-ap94-pci.h
index 7969ed4270b4c123334061be9114c031161790e1..4584528981fe0090aa89f1a2ec9bdec3fbb203c1 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  Atheros AP94 reference board PCI initialization
  *
- *  Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
+ *  Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License version 2 as published
 #if defined(CONFIG_AR71XX_DEV_AP94_PCI)
 void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
                   u8 *cal_data1, u8 *mac_addr1) __init;
+
+void ap94_pci_setup_wmac_led_pin(unsigned wmac, int pin) __init;
+void ap94_pci_setup_wmac_gpio(unsigned wmac, u32 mask, u32 val) __init;
+
 #else
 static inline void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
-                                u8 *cal_data1, u8 *mac_addr1)
-{
-}
+                                u8 *cal_data1, u8 *mac_addr1) {}
+
+static inline void ap94_pci_setup_wmac_led_pin(unsigned wmac, int pin) {}
+static inline void ap94_pci_setup_wmac_gpio(unsigned wmac,
+                                           u32 mask, u32 val) {}
 #endif
 
 #endif /* _AR71XX_DEV_AP94_PCI_H */