diff options
Diffstat (limited to 'include/linux/wl12xx.h')
| -rw-r--r-- | include/linux/wl12xx.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/include/linux/wl12xx.h b/include/linux/wl12xx.h index a9c723be1acf..95704cd4cfab 100644 --- a/include/linux/wl12xx.h +++ b/include/linux/wl12xx.h | |||
| @@ -26,28 +26,6 @@ | |||
| 26 | 26 | ||
| 27 | #include <linux/err.h> | 27 | #include <linux/err.h> |
| 28 | 28 | ||
| 29 | /* Reference clock values */ | ||
| 30 | enum { | ||
| 31 | WL12XX_REFCLOCK_19 = 0, /* 19.2 MHz */ | ||
| 32 | WL12XX_REFCLOCK_26 = 1, /* 26 MHz */ | ||
| 33 | WL12XX_REFCLOCK_38 = 2, /* 38.4 MHz */ | ||
| 34 | WL12XX_REFCLOCK_52 = 3, /* 52 MHz */ | ||
| 35 | WL12XX_REFCLOCK_38_XTAL = 4, /* 38.4 MHz, XTAL */ | ||
| 36 | WL12XX_REFCLOCK_26_XTAL = 5, /* 26 MHz, XTAL */ | ||
| 37 | }; | ||
| 38 | |||
| 39 | /* TCXO clock values */ | ||
| 40 | enum { | ||
| 41 | WL12XX_TCXOCLOCK_19_2 = 0, /* 19.2MHz */ | ||
| 42 | WL12XX_TCXOCLOCK_26 = 1, /* 26 MHz */ | ||
| 43 | WL12XX_TCXOCLOCK_38_4 = 2, /* 38.4MHz */ | ||
| 44 | WL12XX_TCXOCLOCK_52 = 3, /* 52 MHz */ | ||
| 45 | WL12XX_TCXOCLOCK_16_368 = 4, /* 16.368 MHz */ | ||
| 46 | WL12XX_TCXOCLOCK_32_736 = 5, /* 32.736 MHz */ | ||
| 47 | WL12XX_TCXOCLOCK_16_8 = 6, /* 16.8 MHz */ | ||
| 48 | WL12XX_TCXOCLOCK_33_6 = 7, /* 33.6 MHz */ | ||
| 49 | }; | ||
| 50 | |||
| 51 | struct wl1251_platform_data { | 29 | struct wl1251_platform_data { |
| 52 | int power_gpio; | 30 | int power_gpio; |
| 53 | /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */ | 31 | /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */ |
| @@ -55,23 +33,8 @@ struct wl1251_platform_data { | |||
| 55 | bool use_eeprom; | 33 | bool use_eeprom; |
| 56 | }; | 34 | }; |
| 57 | 35 | ||
| 58 | struct wl12xx_platform_data { | ||
| 59 | int irq; | ||
| 60 | int board_ref_clock; | ||
| 61 | int board_tcxo_clock; | ||
| 62 | unsigned long platform_quirks; | ||
| 63 | bool pwr_in_suspend; | ||
| 64 | }; | ||
| 65 | |||
| 66 | /* Platform does not support level trigger interrupts */ | ||
| 67 | #define WL12XX_PLATFORM_QUIRK_EDGE_IRQ BIT(0) | ||
| 68 | |||
| 69 | #ifdef CONFIG_WILINK_PLATFORM_DATA | 36 | #ifdef CONFIG_WILINK_PLATFORM_DATA |
| 70 | 37 | ||
| 71 | int wl12xx_set_platform_data(const struct wl12xx_platform_data *data); | ||
| 72 | |||
| 73 | struct wl12xx_platform_data *wl12xx_get_platform_data(void); | ||
| 74 | |||
| 75 | int wl1251_set_platform_data(const struct wl1251_platform_data *data); | 38 | int wl1251_set_platform_data(const struct wl1251_platform_data *data); |
| 76 | 39 | ||
| 77 | struct wl1251_platform_data *wl1251_get_platform_data(void); | 40 | struct wl1251_platform_data *wl1251_get_platform_data(void); |
| @@ -79,18 +42,6 @@ struct wl1251_platform_data *wl1251_get_platform_data(void); | |||
| 79 | #else | 42 | #else |
| 80 | 43 | ||
| 81 | static inline | 44 | static inline |
| 82 | int wl12xx_set_platform_data(const struct wl12xx_platform_data *data) | ||
| 83 | { | ||
| 84 | return -ENOSYS; | ||
| 85 | } | ||
| 86 | |||
| 87 | static inline | ||
| 88 | struct wl12xx_platform_data *wl12xx_get_platform_data(void) | ||
| 89 | { | ||
| 90 | return ERR_PTR(-ENODATA); | ||
| 91 | } | ||
| 92 | |||
| 93 | static inline | ||
| 94 | int wl1251_set_platform_data(const struct wl1251_platform_data *data) | 45 | int wl1251_set_platform_data(const struct wl1251_platform_data *data) |
| 95 | { | 46 | { |
| 96 | return -ENOSYS; | 47 | return -ENOSYS; |
