This source file includes following definitions.
- wl12xx_set_platform_data
- wl12xx_get_platform_data
- wl1251_set_platform_data
- wl1251_get_platform_data
#ifndef _LINUX_WL12XX_H
#define _LINUX_WL12XX_H
#include <linux/err.h>
enum {
WL12XX_REFCLOCK_19 = 0,
WL12XX_REFCLOCK_26 = 1,
WL12XX_REFCLOCK_38 = 2,
WL12XX_REFCLOCK_52 = 3,
WL12XX_REFCLOCK_38_XTAL = 4,
WL12XX_REFCLOCK_26_XTAL = 5,
};
enum {
WL12XX_TCXOCLOCK_19_2 = 0,
WL12XX_TCXOCLOCK_26 = 1,
WL12XX_TCXOCLOCK_38_4 = 2,
WL12XX_TCXOCLOCK_52 = 3,
WL12XX_TCXOCLOCK_16_368 = 4,
WL12XX_TCXOCLOCK_32_736 = 5,
WL12XX_TCXOCLOCK_16_8 = 6,
WL12XX_TCXOCLOCK_33_6 = 7,
};
struct wl1251_platform_data {
int power_gpio;
int irq;
bool use_eeprom;
};
struct wl12xx_platform_data {
int irq;
int board_ref_clock;
int board_tcxo_clock;
unsigned long platform_quirks;
bool pwr_in_suspend;
};
#define WL12XX_PLATFORM_QUIRK_EDGE_IRQ BIT(0)
#ifdef CONFIG_WILINK_PLATFORM_DATA
int wl12xx_set_platform_data(const struct wl12xx_platform_data *data);
struct wl12xx_platform_data *wl12xx_get_platform_data(void);
int wl1251_set_platform_data(const struct wl1251_platform_data *data);
struct wl1251_platform_data *wl1251_get_platform_data(void);
#else
static inline
int wl12xx_set_platform_data(const struct wl12xx_platform_data *data)
{
return -ENOSYS;
}
static inline
struct wl12xx_platform_data *wl12xx_get_platform_data(void)
{
return ERR_PTR(-ENODATA);
}
static inline
int wl1251_set_platform_data(const struct wl1251_platform_data *data)
{
return -ENOSYS;
}
static inline
struct wl1251_platform_data *wl1251_get_platform_data(void)
{
return ERR_PTR(-ENODATA);
}
#endif
#endif