14 #include <linux/pci.h>
25 #define UBNT_XM_GPIO_LED_L1 0
26 #define UBNT_XM_GPIO_LED_L2 1
27 #define UBNT_XM_GPIO_LED_L3 11
28 #define UBNT_XM_GPIO_LED_L4 7
30 #define UBNT_XM_GPIO_BTN_RESET 12
32 #define UBNT_XM_KEYS_POLL_INTERVAL 20
33 #define UBNT_XM_KEYS_DEBOUNCE_INTERVAL (3 * UBNT_XM_KEYS_POLL_INTERVAL)
35 #define UBNT_XM_EEPROM_ADDR (u8 *) KSEG1ADDR(0x1fff1000)
39 .name =
"ubnt-xm:red:link1",
43 .name =
"ubnt-xm:orange:link2",
47 .name =
"ubnt-xm:green:link3",
51 .name =
"ubnt-xm:green:link4",
72 .max_speed_hz = 25000000,
73 .modalias =
"mx25l6405d",
85 static int ubnt_xm_pci_plat_dev_init(
struct pci_dev *
dev)
89 dev->
dev.platform_data = &ubnt_xm_eeprom_data;
96 static void __init ubnt_xm_pci_init(
void)
99 sizeof(ubnt_xm_eeprom_data.eeprom_data));
105 static inline void ubnt_xm_pci_init(
void) {}
108 static void __init ubnt_xm_init(
void)
125 "Ubiquiti Networks XM (rev 1.0) board",