mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-23 04:41:06 +02:00
backfire: ar71xx: add helper function to setup LED pin and GPIO on the AP91 based boards (backport of r24568)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@24964 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3d1fd494ee
commit
a4965bc691
@ -98,6 +98,17 @@ static void ap91_pci_fixup(struct pci_dev *dev)
|
||||
}
|
||||
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_ATHEROS, PCI_ANY_ID, ap91_pci_fixup);
|
||||
|
||||
__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)
|
||||
|
@ -13,8 +13,12 @@
|
||||
|
||||
#if defined(CONFIG_AR71XX_DEV_AP91_PCI)
|
||||
void ap91_pci_init(u8 *cal_data, u8 *mac_addr) __init;
|
||||
void ap91_pci_setup_wmac_led_pin(int pin) __init;
|
||||
void ap91_pci_setup_wmac_gpio(u32 mask, u32 val) __init;
|
||||
#else
|
||||
static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) { }
|
||||
static inline void ap91_pci_setup_wmac_led(int pin) { }
|
||||
static inline void ap91_pci_setup_wmac_gpio(u32 mask, u32 gpio) { }
|
||||
#endif
|
||||
|
||||
#endif /* _AR71XX_DEV_AP91_PCI_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user