diff options
author | Shahar Levi <shahar_levi@ti.com> | 2011-06-12 10:34:43 +0300 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-06-27 12:50:33 +0300 |
commit | 0c005048aa3cd3ac7bfdd3c6fcc20ea4f0ab667d (patch) | |
tree | 6f38eff04a8eef84d12e42d67810bda6f8104e0f /drivers/net/wireless/wl12xx/boot.c | |
parent | 86046da4afe068991b77e0a4c4b79b99ad961bda (diff) |
wl12xx: Add Support for Low Power DRPw (LPD) Mode
The Low Power DRPw (LPD) mode contains several optimizations
that designed to reduce power consumption. The purpose
is to save current consumption in RX and Listen mode.
LPD setting apply only for wl127x AP mode (not wl128x)
Signed-off-by: Shahar Levi <shahar_levi@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/boot.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/boot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/boot.c b/drivers/net/wireless/wl12xx/boot.c index 7ccec07a600..9dcfc6d1e86 100644 --- a/drivers/net/wireless/wl12xx/boot.c +++ b/drivers/net/wireless/wl12xx/boot.c @@ -749,6 +749,9 @@ int wl1271_load_firmware(struct wl1271 *wl) clk |= (wl->ref_clock << 1) << 4; } + if (wl->quirks & WL12XX_QUIRK_LPD_MODE) + clk |= SCRATCH_ENABLE_LPD; + wl1271_write32(wl, DRPW_SCRATCH_START, clk); wl1271_set_partition(wl, &part_table[PART_WORK]); |