aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271.h
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@nokia.com>2009-12-11 08:40:52 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-28 16:31:32 -0500
commit98b2a68473ae975bc4abdeb66cd719ccfdad9d4a (patch)
tree7120acfc475d9a5e9b62d7ab3394829cf4bde733 /drivers/net/wireless/wl12xx/wl1271.h
parent1b38ea8858fd169064683e27add43511308e521a (diff)
wl1271: add gpio_power file in debugfs to power the chip on and off
Some debugging tools require the chip to be powered on before they can work. With these tools, we shouldn't upload the firmware nor boot the firmware ourselves, so this debufs file is provided. It always contains the gpio power setting (0 = off, 1 = on). To change the power setting, just write 0 or 1 to the file. Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Kalle Valo <kalle.valo@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271.h')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271.h b/drivers/net/wireless/wl12xx/wl1271.h
index 94359b1a861f..3bec6f3b1c7f 100644
--- a/drivers/net/wireless/wl12xx/wl1271.h
+++ b/drivers/net/wireless/wl12xx/wl1271.h
@@ -276,6 +276,7 @@ struct wl1271_debugfs {
276 276
277 struct dentry *retry_count; 277 struct dentry *retry_count;
278 struct dentry *excessive_retries; 278 struct dentry *excessive_retries;
279 struct dentry *gpio_power;
279}; 280};
280 281
281#define NUM_TX_QUEUES 4 282#define NUM_TX_QUEUES 4
@@ -442,6 +443,8 @@ struct wl1271 {
442 struct conf_drv_settings conf; 443 struct conf_drv_settings conf;
443 444
444 struct list_head list; 445 struct list_head list;
446
447 bool gpio_power;
445}; 448};
446 449
447int wl1271_plt_start(struct wl1271 *wl); 450int wl1271_plt_start(struct wl1271 *wl);