2 * Atheros AP9X reference board PCI initialization
4 * Copyright (C) 2009-2012 Gabor Juhos <juhosg@openwrt.org>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
11 #ifndef _ATH79_DEV_AP9X_PCI_H
12 #define _ATH79_DEV_AP9X_PCI_H
15 struct gpio_keys_button
;
16 struct ath9k_platform_data
;
18 #if defined(CONFIG_ATH79_DEV_AP9X_PCI)
19 void ap9x_pci_setup_wmac_led_pin(unsigned wmac
, int pin
);
20 void ap9x_pci_setup_wmac_gpio(unsigned wmac
, u32 mask
, u32 val
);
21 void ap9x_pci_setup_wmac_leds(unsigned wmac
, struct gpio_led
*leds
,
23 void ap9x_pci_setup_wmac_led_name(unsigned wmac
, const char *led_name
);
24 void ap9x_pci_setup_wmac_btns(unsigned wmac
, struct gpio_keys_button
*btns
,
25 unsigned num_btns
, unsigned poll_interval
);
26 struct ath9k_platform_data
*ap9x_pci_get_wmac_data(unsigned wmac
);
28 void ap91_pci_init(u8
*cal_data
, u8
*mac_addr
);
29 void ap91_pci_init_simple(void);
30 void ap94_pci_init(u8
*cal_data0
, u8
*mac_addr0
,
31 u8
*cal_data1
, u8
*mac_addr1
);
34 static inline void ap9x_pci_setup_wmac_led_pin(unsigned wmac
, int pin
) {}
35 static inline void ap9x_pci_setup_wmac_gpio(unsigned wmac
,
37 static inline void ap9x_pci_setup_wmac_leds(unsigned wmac
,
38 struct gpio_led
*leds
,
40 static inline void ap9x_pci_setup_wmac_led_name(unsigned wmac
,
41 const char *led_name
) {}
42 static inline void ap9x_pci_setup_wmac_btns(unsigned wmac
,
43 struct gpio_keys_button
*btns
,
45 unsigned poll_interval
) {}
46 static inline struct ath9k_platform_data
*ap9x_pci_get_wmac_data(unsigned wmac
)
51 static inline void ap91_pci_init(u8
*cal_data
, u8
*mac_addr
) {}
52 static inline void ap91_pci_init_simple(void) {}
53 static inline void ap94_pci_init(u8
*cal_data0
, u8
*mac_addr0
,
54 u8
*cal_data1
, u8
*mac_addr1
) {}
57 #endif /* _ATH79_DEV_AP9X_PCI_H */