2009-12-20 13:46:23 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2009-12-25 13:09:00 +00:00
|
|
|
#if defined(CONFIG_AR71XX_DEV_AP91_PCI)
|
2009-12-20 13:46:23 +00:00
|
|
|
void ap91_pci_init(u8 *cal_data, u8 *mac_addr) __init;
|
2010-12-14 18:01:00 +00:00
|
|
|
void ap91_pci_setup_wmac_led_pin(int pin) __init;
|
|
|
|
void ap91_pci_setup_wmac_gpio(u32 mask, u32 val) __init;
|
2009-12-20 13:46:23 +00:00
|
|
|
#else
|
|
|
|
static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) { }
|
2010-12-14 18:01:00 +00:00
|
|
|
static inline void ap91_pci_setup_wmac_led(int pin) { }
|
|
|
|
static inline void ap91_pci_setup_wmac_gpio(u32 mask, u32 gpio) { }
|
2009-12-20 13:46:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _AR71XX_DEV_AP91_PCI_H */
|
|
|
|
|