Commit Graph

9 Commits

Author SHA1 Message Date
priyankar
efab7ef9d1 Bluetooth: Implement a minimum off-time for AON discharge issue
Sometimes it is seen that AON LDO output takes minimum
off-time (worst case 100ms) to fully discharge. If BT is
turned on in this timeframe when AON is not fully discharged
yet ,BT would fail to turn ON.
This fix ensures to:
Toggle BT_EN high when WL_EN is already high.
Handle corner case if WL_EN goes low in step 1.
Add 100ms to toggle BT_EN high when WL_EN is low.

Change-Id: I7b035d3c91e4b73564a866f40ebdff25f1a315b4
Signed-off-by: priyankar <prigup@codeaurora.org>
2020-11-10 23:59:03 -08:00
priyankar
1a4104b63a Add support for returning power sources status
This patch contains changes for returning power sources status
to BT HAL.

Change-Id: I042bbb92f4e4d7fd26edb35641e854be3fbb9389
Signed-off-by: priyankar <prigup@codeaurora.org>
2020-08-07 11:07:53 -07:00
Umesh Vats
da50910878 bluetooth: Update the ioctl code
Updated the ioctl code for getting value of reset gpio
as it conflicts with  get chipset id ioctl code.

Change-Id: I0c8512be891f31cc398c3246cf8a2b143367ab96
Signed-off-by: Umesh Vats <uvats@codeaurora.org>
2020-05-04 10:48:20 -07:00
Umesh Vats
5b44889b26 bluetooth: add support for retrieving power resource values
Added support for retrieving and logging values for various power
resources used by bluetooth driver.

Change-Id: I3e66ae7894b412b0925276d2d178c10f8ae614a3
Signed-off-by: Umesh Vats <uvats@codeaurora.org>
2020-03-19 08:59:15 -07:00
Umesh Vats
c80ba91a3e bluetooth: Enable LDO for supporting ASD
Add enablement of LDO to support antenna switching
diversity feature.

Change-Id: I755e48d66f84e2f2f8b5ef7c0d16b1b794d73259
Signed-off-by: Umesh Vats <uvats@codeaurora.org>
2019-06-25 10:44:20 -07:00
Satish kumar sugasi
be5ae59194 BTFM: FM Slimbus port configuration changes
Assign slimbus port numbers based on chipset version for FM.

CRs-Fixed: 2290231
Change-Id: I761811e9ed725c61e272ae5310cf1931d2a57217
Signed-off-by: Satish kumar sugasi <ssugas@codeaurora.org>
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2019-05-20 22:39:58 -07:00
Mahesh Kumar Sharma
2b2e1bfa07 ARM: dts: msm: vote S6A supply for BT
Vote S6A for AON supply and add voltage
level 0.95V(min,max).

Change-Id: Ia03a6ac8cdf7ef43ed1a91346ed43818c018e103
Signed-off-by: Mahesh kumar sharma <smahesh@codeaurora.org>
2019-02-01 16:50:23 -08:00
Mahesh Kumar Sharma
0c869f394b ARM: dts: msm: vote S2F, S5A and S8C for BT
In order to power up BT chip, BT driver needs to vote
for additional S2F for digital at 0.95V, S5A for RFA1
at 1.9V and S8C at 1.35V for RFA2.

Change-Id: Ie6134ee7819496d538acd11b412c390f6b01ba43
Signed-off-by: Mahesh kumar sharma <smahesh@codeaurora.org>
2019-01-24 18:30:15 -08:00
Mahesh Kumar Sharma
992c24f46d bluetooth: Add bluetooth power on/off kernel drivers
-Includes BT power on/off driver.
-Update SPDX license.

Change-Id: I1401a25b768ece59bbcd465349e7a9a78abf0c95
Signed-off-by: Mahesh kumar sharma <smahesh@codeaurora.org>
2019-01-12 11:47:43 -08:00