blob: 6b60caf7e3edaf7ee7ceb4a0a097452d62e8b794 [file] [log] [blame]
Teemu Paasikivi5129dff2010-02-22 08:38:27 +02001/*
2 * This file is part of wl1271
3 *
4 * Copyright (C) 2009-2010 Nokia Corporation
5 *
6 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
7 *
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
24#include <linux/irq.h>
25#include <linux/module.h>
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020026#include <linux/vmalloc.h>
27#include <linux/mmc/sdio_func.h>
28#include <linux/mmc/sdio_ids.h>
29#include <linux/mmc/card.h>
Ido Yariv11251e72011-02-28 00:13:58 +020030#include <linux/mmc/host.h>
Ohad Ben-Cohen19b87172010-05-13 12:43:24 +030031#include <linux/gpio.h>
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +020032#include <linux/wl12xx.h>
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +030033#include <linux/pm_runtime.h>
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020034
Shahar Levi00d20102010-11-08 11:20:10 +000035#include "wl12xx.h"
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020036#include "wl12xx_80211.h"
Shahar Levi00d20102010-11-08 11:20:10 +000037#include "io.h"
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020038
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020039#ifndef SDIO_VENDOR_ID_TI
40#define SDIO_VENDOR_ID_TI 0x0097
41#endif
42
43#ifndef SDIO_DEVICE_ID_TI_WL1271
44#define SDIO_DEVICE_ID_TI_WL1271 0x4076
45#endif
46
Felipe Balbi33dd74c2011-05-14 00:26:18 +030047static const struct sdio_device_id wl1271_devices[] __devinitconst = {
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020048 { SDIO_DEVICE(SDIO_VENDOR_ID_TI, SDIO_DEVICE_ID_TI_WL1271) },
49 {}
50};
51MODULE_DEVICE_TABLE(sdio, wl1271_devices);
52
Ido Yariv0da13da2011-03-31 10:06:58 +020053static void wl1271_sdio_set_block_size(struct wl1271 *wl, unsigned int blksz)
Luciano Coelhoa81159e2011-03-14 14:05:13 +020054{
Luciano Coelhoa81159e2011-03-14 14:05:13 +020055 sdio_claim_host(wl->if_priv);
Ido Yariv0da13da2011-03-31 10:06:58 +020056 sdio_set_block_size(wl->if_priv, blksz);
Luciano Coelhoa81159e2011-03-14 14:05:13 +020057 sdio_release_host(wl->if_priv);
58}
59
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020060static inline struct sdio_func *wl_to_func(struct wl1271 *wl)
61{
62 return wl->if_priv;
63}
64
65static struct device *wl1271_sdio_wl_to_dev(struct wl1271 *wl)
66{
67 return &(wl_to_func(wl)->dev);
68}
69
Ido Yariva6208652011-03-01 15:14:41 +020070static irqreturn_t wl1271_hardirq(int irq, void *cookie)
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020071{
72 struct wl1271 *wl = cookie;
73 unsigned long flags;
74
75 wl1271_debug(DEBUG_IRQ, "IRQ");
76
77 /* complete the ELP completion */
78 spin_lock_irqsave(&wl->wl_lock, flags);
Ido Yariva6208652011-03-01 15:14:41 +020079 set_bit(WL1271_FLAG_IRQ_RUNNING, &wl->flags);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020080 if (wl->elp_compl) {
81 complete(wl->elp_compl);
82 wl->elp_compl = NULL;
83 }
Eliad Pellerf44e5862011-05-13 11:57:11 +030084
85 if (test_bit(WL1271_FLAG_SUSPENDED, &wl->flags)) {
86 /* don't enqueue a work right now. mark it as pending */
87 set_bit(WL1271_FLAG_PENDING_WORK, &wl->flags);
88 wl1271_debug(DEBUG_IRQ, "should not enqueue work");
89 disable_irq_nosync(wl->irq);
90 pm_wakeup_event(wl1271_sdio_wl_to_dev(wl), 0);
91 spin_unlock_irqrestore(&wl->wl_lock, flags);
92 return IRQ_HANDLED;
93 }
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020094 spin_unlock_irqrestore(&wl->wl_lock, flags);
95
Ido Yariva6208652011-03-01 15:14:41 +020096 return IRQ_WAKE_THREAD;
Teemu Paasikivi5129dff2010-02-22 08:38:27 +020097}
98
99static void wl1271_sdio_disable_interrupts(struct wl1271 *wl)
100{
101 disable_irq(wl->irq);
102}
103
104static void wl1271_sdio_enable_interrupts(struct wl1271 *wl)
105{
106 enable_irq(wl->irq);
107}
108
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200109static void wl1271_sdio_raw_read(struct wl1271 *wl, int addr, void *buf,
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200110 size_t len, bool fixed)
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200111{
112 int ret;
113 struct sdio_func *func = wl_to_func(wl);
114
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200115 if (unlikely(addr == HW_ACCESS_ELP_CTRL_REG_ADDR)) {
116 ((u8 *)buf)[0] = sdio_f0_readb(func, addr, &ret);
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200117 wl1271_debug(DEBUG_SDIO, "sdio read 52 addr 0x%x, byte 0x%02x",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200118 addr, ((u8 *)buf)[0]);
119 } else {
120 if (fixed)
121 ret = sdio_readsb(func, buf, addr, len);
122 else
123 ret = sdio_memcpy_fromio(func, buf, addr, len);
124
Teemu Paasikivi99e50312010-03-26 12:53:16 +0200125 wl1271_debug(DEBUG_SDIO, "sdio read 53 addr 0x%x, %zu bytes",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200126 addr, len);
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200127 wl1271_dump_ascii(DEBUG_SDIO, "data: ", buf, len);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200128 }
129
130 if (ret)
131 wl1271_error("sdio read failed (%d)", ret);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200132}
133
134static void wl1271_sdio_raw_write(struct wl1271 *wl, int addr, void *buf,
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200135 size_t len, bool fixed)
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200136{
137 int ret;
138 struct sdio_func *func = wl_to_func(wl);
139
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200140 if (unlikely(addr == HW_ACCESS_ELP_CTRL_REG_ADDR)) {
141 sdio_f0_writeb(func, ((u8 *)buf)[0], addr, &ret);
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200142 wl1271_debug(DEBUG_SDIO, "sdio write 52 addr 0x%x, byte 0x%02x",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200143 addr, ((u8 *)buf)[0]);
144 } else {
Teemu Paasikivi99e50312010-03-26 12:53:16 +0200145 wl1271_debug(DEBUG_SDIO, "sdio write 53 addr 0x%x, %zu bytes",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200146 addr, len);
Teemu Paasikivia3b8ea72010-03-18 12:26:41 +0200147 wl1271_dump_ascii(DEBUG_SDIO, "data: ", buf, len);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200148
149 if (fixed)
150 ret = sdio_writesb(func, addr, buf, len);
151 else
152 ret = sdio_memcpy_toio(func, addr, buf, len);
153 }
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300154
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200155 if (ret)
156 wl1271_error("sdio write failed (%d)", ret);
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300157}
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200158
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200159static int wl1271_sdio_power_on(struct wl1271 *wl)
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300160{
161 struct sdio_func *func = wl_to_func(wl);
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300162 int ret;
163
Ido Yariv11251e72011-02-28 00:13:58 +0200164 /* Make sure the card will not be powered off by runtime PM */
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300165 ret = pm_runtime_get_sync(&func->dev);
166 if (ret < 0)
167 goto out;
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300168
Ido Yariv11251e72011-02-28 00:13:58 +0200169 /* Runtime PM might be disabled, so power up the card manually */
170 ret = mmc_power_restore_host(func->card->host);
171 if (ret < 0)
172 goto out;
173
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300174 sdio_claim_host(func);
175 sdio_enable_func(func);
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200176
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300177out:
178 return ret;
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300179}
180
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200181static int wl1271_sdio_power_off(struct wl1271 *wl)
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300182{
183 struct sdio_func *func = wl_to_func(wl);
Ido Yariv11251e72011-02-28 00:13:58 +0200184 int ret;
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300185
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300186 sdio_disable_func(func);
187 sdio_release_host(func);
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200188
Ido Yariv11251e72011-02-28 00:13:58 +0200189 /* Runtime PM might be disabled, so power off the card manually */
190 ret = mmc_power_save_host(func->card->host);
191 if (ret < 0)
192 return ret;
193
194 /* Let runtime PM know the card is powered off */
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300195 return pm_runtime_put_sync(&func->dev);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200196}
197
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200198static int wl1271_sdio_set_power(struct wl1271 *wl, bool enable)
Teemu Paasikivibecd5512010-03-18 12:26:27 +0200199{
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300200 if (enable)
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200201 return wl1271_sdio_power_on(wl);
Ohad Ben-Cohen49063a02010-09-07 04:24:21 +0300202 else
Ohad Ben-Cohen2cc78ff2010-09-16 01:22:04 +0200203 return wl1271_sdio_power_off(wl);
Teemu Paasikivibecd5512010-03-18 12:26:27 +0200204}
205
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200206static struct wl1271_if_operations sdio_ops = {
207 .read = wl1271_sdio_raw_read,
208 .write = wl1271_sdio_raw_write,
Teemu Paasikivibecd5512010-03-18 12:26:27 +0200209 .power = wl1271_sdio_set_power,
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200210 .dev = wl1271_sdio_wl_to_dev,
211 .enable_irq = wl1271_sdio_enable_interrupts,
Luciano Coelhoa81159e2011-03-14 14:05:13 +0200212 .disable_irq = wl1271_sdio_disable_interrupts,
213 .set_block_size = wl1271_sdio_set_block_size,
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200214};
215
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200216static int __devinit wl1271_probe(struct sdio_func *func,
217 const struct sdio_device_id *id)
218{
219 struct ieee80211_hw *hw;
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +0200220 const struct wl12xx_platform_data *wlan_data;
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200221 struct wl1271 *wl;
Ido Yariv341b7cd2011-03-31 10:07:01 +0200222 unsigned long irqflags;
Eliad Pellerf795ea82011-05-13 11:57:12 +0300223 mmc_pm_flag_t mmcflags;
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200224 int ret;
225
226 /* We are only able to handle the wlan function */
227 if (func->num != 0x02)
228 return -ENODEV;
229
230 hw = wl1271_alloc_hw();
231 if (IS_ERR(hw))
232 return PTR_ERR(hw);
233
234 wl = hw->priv;
235
236 wl->if_priv = func;
237 wl->if_ops = &sdio_ops;
238
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200239 /* Grab access to FN0 for ELP reg. */
240 func->card->quirks |= MMC_QUIRK_LENIENT_FN0;
241
Arik Nemtsov1d732e82011-03-18 14:49:57 +0200242 /* Use block mode for transferring over one block size of data */
243 func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE;
244
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +0200245 wlan_data = wl12xx_get_platform_data();
246 if (IS_ERR(wlan_data)) {
247 ret = PTR_ERR(wlan_data);
248 wl1271_error("missing wlan platform data: %d", ret);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200249 goto out_free;
250 }
251
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +0200252 wl->irq = wlan_data->irq;
Ohad Ben-Cohen15cea992010-09-16 01:31:51 +0200253 wl->ref_clock = wlan_data->board_ref_clock;
Shahar Levi5ea417a2011-03-06 16:32:11 +0200254 wl->tcxo_clock = wlan_data->board_tcxo_clock;
Ido Yariv341b7cd2011-03-31 10:07:01 +0200255 wl->platform_quirks = wlan_data->platform_quirks;
256
257 if (wl->platform_quirks & WL12XX_PLATFORM_QUIRK_EDGE_IRQ)
258 irqflags = IRQF_TRIGGER_RISING;
259 else
260 irqflags = IRQF_TRIGGER_HIGH | IRQF_ONESHOT;
Ohad Ben-Cohen09cecc32010-09-16 01:31:35 +0200261
Ido Yariva6208652011-03-01 15:14:41 +0200262 ret = request_threaded_irq(wl->irq, wl1271_hardirq, wl1271_irq,
Ido Yariv341b7cd2011-03-31 10:07:01 +0200263 irqflags,
Ido Yariva6208652011-03-01 15:14:41 +0200264 DRIVER_NAME, wl);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200265 if (ret < 0) {
266 wl1271_error("request_irq() failed: %d", ret);
267 goto out_free;
268 }
269
Eliad Peller2c0f2462011-05-13 11:57:08 +0300270 enable_irq_wake(wl->irq);
Eliad Pellerf44e5862011-05-13 11:57:11 +0300271 device_init_wakeup(wl1271_sdio_wl_to_dev(wl), 1);
Eliad Peller2c0f2462011-05-13 11:57:08 +0300272
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200273 disable_irq(wl->irq);
274
Eliad Pellerf795ea82011-05-13 11:57:12 +0300275 /* if sdio can keep power while host is suspended, enable wow */
276 mmcflags = sdio_get_host_pm_caps(func);
277 wl1271_debug(DEBUG_SDIO, "sdio PM caps = 0x%x", mmcflags);
278
279 if (mmcflags & MMC_PM_KEEP_POWER)
280 hw->wiphy->wowlan.flags = WIPHY_WOWLAN_ANY;
281
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200282 ret = wl1271_init_ieee80211(wl);
283 if (ret)
284 goto out_irq;
285
286 ret = wl1271_register_hw(wl);
287 if (ret)
288 goto out_irq;
289
Teemu Paasikivi49d7f6d2010-02-22 08:38:29 +0200290 sdio_set_drvdata(func, wl);
291
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300292 /* Tell PM core that we don't need the card to be powered now */
293 pm_runtime_put_noidle(&func->dev);
294
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200295 return 0;
296
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200297 out_irq:
298 free_irq(wl->irq, wl);
299
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200300 out_free:
Teemu Paasikivi3b56dd62010-03-18 12:26:46 +0200301 wl1271_free_hw(wl);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200302
303 return ret;
304}
305
306static void __devexit wl1271_remove(struct sdio_func *func)
307{
308 struct wl1271 *wl = sdio_get_drvdata(func);
309
Ohad Ben-Cohen00cbb3c2010-10-08 16:16:16 +0300310 /* Undo decrement done above in wl1271_probe */
311 pm_runtime_get_noresume(&func->dev);
312
Teemu Paasikivi3b56dd62010-03-18 12:26:46 +0200313 wl1271_unregister_hw(wl);
Eliad Pellerf44e5862011-05-13 11:57:11 +0300314 device_init_wakeup(wl1271_sdio_wl_to_dev(wl), 0);
Eliad Peller2c0f2462011-05-13 11:57:08 +0300315 disable_irq_wake(wl->irq);
Juuso Oikarinen4e23b112010-08-13 04:46:48 +0200316 free_irq(wl->irq, wl);
Teemu Paasikivi801a6732010-03-18 12:26:42 +0200317 wl1271_free_hw(wl);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200318}
319
Luciano Coelhof634a4e2011-05-18 16:51:26 -0400320#ifdef CONFIG_PM
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300321static int wl1271_suspend(struct device *dev)
322{
323 /* Tell MMC/SDIO core it's OK to power down the card
324 * (if it isn't already), but not to remove it completely */
Eliad Peller039bdb12011-05-13 11:57:10 +0300325 struct sdio_func *func = dev_to_sdio_func(dev);
326 struct wl1271 *wl = sdio_get_drvdata(func);
327 mmc_pm_flag_t sdio_flags;
328 int ret = 0;
329
330 wl1271_debug(DEBUG_MAC80211, "wl1271 suspend. wow_enabled: %d",
331 wl->wow_enabled);
332
333 /* check whether sdio should keep power */
334 if (wl->wow_enabled) {
335 sdio_flags = sdio_get_host_pm_caps(func);
336
337 if (!(sdio_flags & MMC_PM_KEEP_POWER)) {
338 wl1271_error("can't keep power while host "
339 "is suspended");
340 ret = -EINVAL;
341 goto out;
342 }
343
344 /* keep power while host suspended */
345 ret = sdio_set_host_pm_flags(func, MMC_PM_KEEP_POWER);
346 if (ret) {
347 wl1271_error("error while trying to keep power");
348 goto out;
349 }
Eliad Pellerf44e5862011-05-13 11:57:11 +0300350
351 /* release host */
352 sdio_release_host(func);
Eliad Peller039bdb12011-05-13 11:57:10 +0300353 }
354out:
355 return ret;
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300356}
357
358static int wl1271_resume(struct device *dev)
359{
Eliad Pellerf44e5862011-05-13 11:57:11 +0300360 struct sdio_func *func = dev_to_sdio_func(dev);
361 struct wl1271 *wl = sdio_get_drvdata(func);
362
363 wl1271_debug(DEBUG_MAC80211, "wl1271 resume");
364 if (wl->wow_enabled) {
365 /* claim back host */
366 sdio_claim_host(func);
367 }
368
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300369 return 0;
370}
371
372static const struct dev_pm_ops wl1271_sdio_pm_ops = {
373 .suspend = wl1271_suspend,
374 .resume = wl1271_resume,
375};
Luciano Coelhof634a4e2011-05-18 16:51:26 -0400376#endif
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300377
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200378static struct sdio_driver wl1271_sdio_driver = {
Luciano Coelhof4b5d8d2010-04-01 11:38:17 +0300379 .name = "wl1271_sdio",
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200380 .id_table = wl1271_devices,
381 .probe = wl1271_probe,
382 .remove = __devexit_p(wl1271_remove),
Luciano Coelhof634a4e2011-05-18 16:51:26 -0400383#ifdef CONFIG_PM
Ohad Ben-Cohen674f3052010-10-08 16:16:27 +0300384 .drv = {
385 .pm = &wl1271_sdio_pm_ops,
386 },
Luciano Coelhof634a4e2011-05-18 16:51:26 -0400387#endif
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200388};
389
390static int __init wl1271_init(void)
391{
Felipe Balbi6bdaf792011-05-14 00:26:20 +0300392 return sdio_register_driver(&wl1271_sdio_driver);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200393}
394
395static void __exit wl1271_exit(void)
396{
397 sdio_unregister_driver(&wl1271_sdio_driver);
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200398}
399
400module_init(wl1271_init);
401module_exit(wl1271_exit);
402
403MODULE_LICENSE("GPL");
Luciano Coelho5245e3a2011-03-30 21:31:39 +0300404MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>");
Teemu Paasikivi5129dff2010-02-22 08:38:27 +0200405MODULE_AUTHOR("Juuso Oikarinen <juuso.oikarinen@nokia.com>");
406MODULE_FIRMWARE(WL1271_FW_NAME);
Shahar Levi5aa42342011-03-06 16:32:07 +0200407MODULE_FIRMWARE(WL128X_FW_NAME);
Arik Nemtsov1aed55f2011-03-06 16:32:18 +0200408MODULE_FIRMWARE(WL127X_AP_FW_NAME);
409MODULE_FIRMWARE(WL128X_AP_FW_NAME);