1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-14 02:02:50 +02:00
openwrt-xburst/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.h
juhosg 6cc1945af5 ar71xx: add helper function to setup LED pin and GPIO on the AP91 based boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24568 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-14 18:01:00 +00:00

26 lines
817 B
C

/*
* Atheros AP91 reference board PCI initialization
*
* Copyright (C) 2009 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
* by the Free Software Foundation.
*/
#ifndef _AR71XX_DEV_AP91_PCI_H
#define _AR71XX_DEV_AP91_PCI_H
#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 */