blob: 4f902e1908aaa191095c2f90741f96679b4b3113 [file] [log] [blame]
Kalle Valo2f01a1f2009-04-29 23:33:31 +03001/*
2 * This file is part of wl12xx
3 *
4 * Copyright (C) 2009 Nokia Corporation
5 *
Kalle Valo4c5f7d72010-08-22 22:46:28 +03006 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
Kalle Valo2f01a1f2009-04-29 23:33:31 +03007 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * version 2 as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 *
22 */
23
Ohad Ben-Cohenc1f9a092010-09-16 13:16:02 +020024#ifndef _LINUX_WL12XX_H
25#define _LINUX_WL12XX_H
Kalle Valo2f01a1f2009-04-29 23:33:31 +030026
27struct wl12xx_platform_data {
28 void (*set_power)(bool enable);
Grazvydas Ignotasa02a2952010-04-16 13:22:12 +030029 /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
30 int irq;
David-John Willisc95cf3d02009-11-17 18:50:09 +020031 bool use_eeprom;
Ohad Ben-Cohen15cea992010-09-16 01:31:51 +020032 int board_ref_clock;
Kalle Valo2f01a1f2009-04-29 23:33:31 +030033};
34
Ohad Ben-Cohen65836112010-09-28 20:20:28 +020035#ifdef CONFIG_WL12XX_PLATFORM_DATA
36
Ohad Ben-Cohen61ee7002010-09-16 01:31:12 +020037int wl12xx_set_platform_data(const struct wl12xx_platform_data *data);
Ohad Ben-Cohen65836112010-09-28 20:20:28 +020038
39#else
40
41static inline
42int wl12xx_set_platform_data(const struct wl12xx_platform_data *data)
43{
44 return -ENOSYS;
45}
46
47#endif
48
Ohad Ben-Cohen61ee7002010-09-16 01:31:12 +020049const struct wl12xx_platform_data *wl12xx_get_platform_data(void);
50
Kalle Valo2f01a1f2009-04-29 23:33:31 +030051#endif