Commit Graph

21 Commits

Author SHA1 Message Date
Pavan Kumar
89f18c3765 WLAN: WCN1314: Add card removal notification functionality.
Function driver can register for card removal notifications.
Before removing the card, let function driver notify the same
and allow it to cleanup.

Change-Id: I5d423807277bdd7476a6ea7d6a7c9ef71c0725f5
Signed-off-by: Pavan kumar <pavan@codeaurora.org>
2012-03-21 18:14:50 +05:30
Linux Build Service Account
08d20ab92a Merge "8660: wlan: Always initialize regulators when WLAN is turned on" into msm-3.0 2012-03-07 23:37:05 -08:00
Pavan Kumar
8832b23b20 WLAN: WCN1314: Add API to enable/disable interrupts from chip.
Add an API to enable/disable interrupts from the chip.
This API uses func0 SDIO_CCCR_IENx register to enable/disable
interrupts from the chip.

Change-Id: I2da8d569511aeff0409744a90e7daf4704fff91d
Signed-off-by: Pavan kumar <pavan@codeaurora.org>
2012-03-05 19:42:40 +05:30
Deepthi Gowri
63bc7d8fc1 8660: wlan: Always initialize regulators when WLAN is turned on
In case of LOGP recovery Wifi is soft reset. During soft reset,
observe that regulator_get() is not called for all regulators.
This is leading to null pointer dereference by kernel when
regulator_put() is called while turning of Wifi.

Change-Id: Icff3713bf429566cd013349b60f601f98d9fb5da
Signed-off-by: Deepthi Gowri <deepthi@codeaurora.org>
2012-03-05 11:24:30 +05:30
Deepthi Gowri
2c820e1789 msm: Set correct peak current requirement for 8901_s4 smps
The WLAN driver votes for whatever the current it requires from
8901_s4.As it just loads  L0 and LVS1, 60mA should be fine.

CRs-fixed: 328478
Change-Id: Ie180e03a92715c7b01fc88584f11244b24523b78
Signed-off-by: Deepthi Gowri <deepthi@codeaurora.org>
2012-02-16 15:39:51 +05:30
Pankaj Kumar
7aacecb7e7 driver: libra: qcomwlan_pwrif: Add support to put regulator in LPM mode
In 8660 wifi is using 8901 regulators. Once wifi is enabled and disabled
back, these regulator does not go in LPM mode and causing the device to
draw more current in suspend state. Hence put these regulator in LPM mode.

CRs-Fixed: 328481
Change-Id: Iedb05498af9f89b57e96eebee9ca74460ddb4963
Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org>
2012-01-23 18:55:25 +05:30
Yunsen Wang
5676f8d18e libra: Add security functions to module
Link to the security functions from wcnss

Change-Id: Iddd7960ff231e0a8201cecf30207edbc26140f8a
Signed-off-by: Yunsen Wang <yunsenw@codeaurora.org>
2011-12-16 15:17:13 -08:00
Pankaj Kumar
6ac59af489 msm: board-msm7x27a: Fix for Wifi Error issue.
Wifi and BT have shared voltage regulator. So if both
needs to be enabled, there is a voltage level conflict
between them. In case of older vreg implementation
there is no such sanity check regarding the voltage
levels, hence no conflict.

But in case of regulator API's, it has a sanity check for
previously voted voltage for a particular regulator. Hence
in this case we need to pass the minimum & maximum voltage
range for both BT & WIFI, so that regulator framework will
internally set the common voltage level for both devices.

Change-Id: I48cc70ffe78407dc1013ac09da4cddfcda0ab2cf
Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org>
2011-10-31 09:09:25 +05:30
Terence Hampson
f849a2196c 8060: wlan: Use proper gpio value for dragonboard
Change-Id: Ia6fbddb207d00db920f6bca93f54fc42453881fb
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2011-10-20 18:11:55 -04:00
Linux Build Service Account
79ed85f66e Merge changes Ieb20fee0,I57982e73 into msm-3.0
* changes:
  msm: rpm-regulator: add RPM regulator support for 9615
  msm: rpm-regulator: merge rpm-regulator and rpm-regulator-8960 drivers
2011-10-14 15:40:49 -07:00
Pankaj Kumar
a9d576cf26 msm: board-msm7x27a: Set BT & WIFI regulator voltage level.
Set BT regulator voltage level in bluetooth_switch_regulator function.
It is used to make correct voltage level for BT, everytime BT is
turned off/on. Also set regulator voltage level for wifi for everytime
wifi is turned off/on.

Change-Id: I086785664f0e858e9b6c300e7f6563f408b97d60
Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org>
2011-10-13 09:47:30 +05:30
David Collins
6f032ba089 msm: rpm-regulator: merge rpm-regulator and rpm-regulator-8960 drivers
Combine rpm-regulator.c and rpm-regulator-8960.c so that only a
single file named rpm-regulator.c contains the RPM regulator
driver logic.  This will initially support both 8660 and 8960.
The data needed to capture the configuration of the RPM regulator
driver on different platforms will be added in platform specific
files.

Change-Id: I57982e73aa7cb30425912b5ff4b90871419e1f8a
Signed-off-by: David Collins <collinsd@codeaurora.org>
2011-10-12 10:17:25 -07:00
Justin Paupore
d98328ef47 msm: Port 7x27a vreg.c consumers to regulator API
Convert all consumers of vreg.c on 7x27a to use the regulator API.
vreg.c should be considered DEPRECATED on 7x27a.

Signed-off-by: Justin Paupore <jpaupore@codeaurora.org>
Signed-off-by: Pankaj Kumar <pakuma@codeaurora.org>
2011-10-03 16:21:34 -07:00
Yunsen Wang
6f2886996b 8660: wlan: WCN1314 must be out of reset after all regulators are enabled
For stable use of WCN1314 WLAN chip, WLAN Reset pin should be deasserted
only after all the regulators have been enabled.

CRs-fixed: 301629
Acked-by: Viral Modi <viralm@qca.qualcomm.com>
Signed-off-by: Yunsen Wang <yunsenw@codeaurora.org>
2011-10-03 16:20:01 -07:00
Santosh Sajjan
0e506aba9a wlan: Put vregs in LPM Pin control.
WLAN vregs are put in LPM with A0_XO_EN. It doesn't disable
the vreg anymore.Capacitive charging Current Spikes are
seen if the vreg is disabled, instead of putting in LPM.

Signed-off-by: Santosh Sajjan <ssajjan@codeaurora.org>
2011-10-03 16:19:03 -07:00
Terence Hampson
e6e9691240 8060: wlan: Enable wlan on dragonboard
Different values for pin_controlled and GPIO deep sleep need for
dragonboard

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2011-10-03 16:17:56 -07:00
Terence Hampson
30bb6c435a Revert "8060: wlan: Enable wlan on dragonboard"
This reverts commit e0fb57d5ba0dbbb79e2193c4f7bba377bbf25154

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2011-10-03 16:17:26 -07:00
Terence Hampson
7f7de4f8f8 8060: wlan: Enable wlan on dragonboard
Different values for pin_controlled need for dragonboard

Signed-off-by: Terence Hampson <thampson@codeaurora.org>
2011-10-03 16:16:28 -07:00
Santosh Sajjan
ecce561b90 wlan: A0 clock and GPIO configuration during power cycle
A0 clock is turned OFF when WLAN module is removed
and turned ON/Pin controlled when WLAN module is inserted.
GPIO is configured to input-low while removing module to minimize
current consumption.

Signed-off-by: Santosh Sajjan <ssajjan@codeaurora.org>
2011-10-03 16:14:42 -07:00
Santosh Sajjan
2370c6462b wlan: Configuring LDO's to be pin controlled
WLAN LDO's are configured to be pin controlled
to minimize power consumption during dtim sleep period.

CRs-fixed: 296937,295848
Signed-off-by: Santosh Sajjan <ssajjan@codeaurora.org>
2011-10-03 10:28:28 -07:00
Bryan Huntsman
3f2bc4d6eb Initial Contribution
msm-2.6.38: tag AU_LINUX_ANDROID_GINGERBREAD.02.03.04.00.142

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2011-10-03 09:57:10 -07:00