* Copyright (C) ST-Ericsson SA 2011
*
* Author: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
* License terms: GNU General Public License (GPL) version 2
*/
#ifndef CW1200_PLAT_H_INCLUDED
#define CW1200_PLAT_H_INCLUDED
struct cw1200_platform_data_spi {
u8 spi_bits_per_word;
u16 ref_clk;
bool have_5ghz;
int reset;
int powerup;
int (*power_ctrl)(const struct cw1200_platform_data_spi *pdata,
bool enable);
int (*clk_ctrl)(const struct cw1200_platform_data_spi *pdata,
bool enable);
const u8 *macaddr;
const char *sdd_file;
};
struct cw1200_platform_data_sdio {
u16 ref_clk;
bool have_5ghz;
bool no_nptb;
int reset;
int powerup;
int irq;
int (*power_ctrl)(const struct cw1200_platform_data_sdio *pdata,
bool enable);
int (*clk_ctrl)(const struct cw1200_platform_data_sdio *pdata,
bool enable);
const u8 *macaddr;
const char *sdd_file;
};
static struct cw1200_platform_data_spi cw1200_platform_data = {
.ref_clk = 38400,
.spi_bits_per_word = 16,
.reset = GPIO_RF_RESET,
.powerup = GPIO_RF_POWERUP,
.macaddr = wifi_mac_addr,
.sdd_file = "sdd_sagrad_1091_1098.bin",
};
static struct spi_board_info myboard_spi_devices[] __initdata = {
{
.modalias = "cw1200_wlan_spi",
.max_speed_hz = 52000000,
.bus_num = 0,
.irq = WIFI_IRQ,
.platform_data = &cw1200_platform_data,
.chip_select = 0,
},
};
*/
static struct cw1200_platform_data_sdio my_cw1200_platform_data = {
.ref_clk = 38400,
.have_5ghz = false,
.sdd_file = "sdd_myplatform.bin",
};
cw1200_sdio_set_platform_data(&my_cw1200_platform_data);
*/
void __init cw1200_sdio_set_platform_data(struct cw1200_platform_data_sdio *pdata);
#endif