Commit Graph

35 Commits

Author SHA1 Message Date
Franklin Abreu Bueno
176b51aefa bt-kernel: Additional bazel configuration
- add support to copy *.ko to out dir
- enable conditional compilation with config flags
- enable CONFIG_BT_HW_SECURE_DISABLE with dependency on securemsm-kernel
- re-enable compilation of bt_fm_slim with new headers
- add fallthrough attribute btfm_slim_hw_interface.c
- move BTFMSLIM_DEV_NAME to btfm_slim.h
- add target.bzl file to define specific targets

Change-Id: I7f7920870d81125f95b020ef33df77df3f937682
Signed-off-by: Franklin Abreu Bueno <quic_fabreu@quicinc.com>
2023-04-08 20:36:07 -07:00
CNSS_WLAN Service
15d9682357 Merge "BTFM SLIM:Add support for pin connectivity test" into bt-kernel.lnx.14.0 2023-04-07 15:58:04 -07:00
pramod kotreshappa
fb51f095af BTFM techpack make file changes
Change-Id: I9521acfbcde5ab610ea529c0a0f0ac589bd71a77
2023-04-05 13:15:46 -07:00
Satish Kumar Kodishala
07a9ef55f5 BTFM SLIM:Add support for pin connectivity test
Add support for pin connectivity test for BT/FM slimbus

CRs-Fixed: 3270916
Change-Id: Ia913bcb204f6cccc59790b9a4cef20cbd346f05c
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2023-03-22 14:27:51 -07:00
Balakrishna Godavarthi
df0dd43a78 btfmcodec: Add new transport type
This change adds new transport type, when it is recevied the state
will be moved to IDLE.

Change-Id: Ia728ec151afb78d75444361cba3b2788fc278876
2023-02-14 06:12:15 -08:00
Satish Kumar Kodishala
f3db4b2cdc Remove delay while opening ports for Apache
Remove delay while opening ports for Apache.
CRs-Fixed: 3330157
Change-Id: I6b9141313524ae5c13759ba1058dbe8c9e07ccc3
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2023-02-02 02:17:46 -08:00
CNSS_WLAN Service
7cea2e70e5 Merge "btfmcodec: Don't send master shutdown request" into bt-kernel.lnx.14.0 2023-01-30 11:20:23 -08:00
CNSS_WLAN Service
8956b8dac3 Merge "btfmcodec: unblock waiting threads during usecase shutdown" into bt-kernel.lnx.14.0 2023-01-30 11:19:58 -08:00
Balakrishna Godavarthi
751f3c2b0f btfmcodec: Don't send master shutdown request
This change will stop sending master shutdown request during
legacy transport shutdown.

Change-Id: I7d83eeb15fc686e55cbaa83262eec0386e31f495
2023-01-29 23:16:54 -08:00
Balakrishna Godavarthi
e7e85692a1 btfmcodec: unblock waiting threads during usecase shutdown
This change notifies waiting thread when usecase shutdown
is triggered and also flush work queues.

Change-Id: If523e806dc23fc256e82c4eac30f7aa79b119f55
2023-01-27 19:31:49 -08:00
satish kumar sugasi
594501303c BT: Add secure mode check to avoid BT ON
Adds secure peripheral check to ensure bluetooth is not powered on
if secure state for Bluetooth is enabled

Change-Id: I3ac13ec38ec30f03bf747d317fdacbe58f022cd0
2023-01-25 13:09:43 -08:00
Balakrishna Godavarthi
4a2649332e btfmcodec: Add btadv audio support
This change adds below support for BT advance audio
* Add support for codec type mixer control
* Update slim driver to read master id, channel number.
* Update slim driver to support HW EP.
* Add support for transport switch based on the request

CRs-Fixed: 3298745
Change-Id: Ica349cb6f3615f4dc51bbc3070c90d43eeba1cdd
2023-01-17 10:20:36 +05:30
Balakrishna Godavarthi
30209d05c3 btfmcodec: Add packetization and depacketizations
This change adds support for packetization and
depacketization of various packet received or sent
from btfmcodec driver.

CRs-Fixed: 3298745
Change-Id: I30c1a7897a1f50d5dcad83757900152f2c06255b
2023-01-15 19:16:58 +05:30
Balakrishna Godavarthi
d22c687077 btfmcodec: Create btfmcodec driver
This changes handles below.

1. Create btfm codec driver.
2. add support to enumerate char device.
3. create hardware endpoint abstract layers.
4. Register with ALSA driver

CRs-Fixed: 3298745
Change-Id: Id75dad16de8414b3b6a24d265c8acb54eca4d5dc
2023-01-15 19:16:43 +05:30
Franklin Abreu Bueno
d261d4757e bt-kernel: Add support for Bazel build system
- kernel modules can now be built using Bazel/kleaf for pineapple.
- Added macro that makes it easy to register new modules

Change-Id: If19f9663135342bc36f543b1598231d133c1748f
2023-01-09 14:38:54 -08:00
jianzhou
a4d571f1da rtc6226: Make remove callback return void
The value returned by an i2c driver's remove function is mostly
ignored, so the prototype of the remove function was changed to
return no value.

So change the related remove callback return void.

Change-Id: Iba2d83fe7f11ddfaabc67171b3ed7ee6955680be
2022-12-21 08:00:24 -08:00
Franklin Abreu Bueno
b4c65a7e1e Enable Kernel Panic through ioctl
- Add  new ioctl command (BT_CMD_KERNEL_PANIC),
so that when it is called, the kernel panics.
- Add unique message that gets printed when
kernel panic.

Change-Id: Ied82749020058fe8e091f7fd5f0f212edb9a7285
2022-12-12 01:43:41 -08:00
satish kumar sugasi
11cd6d25d5 btfm: set sw_cntrl gpiois during poweron sequence.
Change-Id: I641c4a480bccfdb282e17f3489ec7c4481d84256
2022-11-29 19:32:33 -08:00
Franklin Abreu Bueno
45014a6ec9 Add support for pineapple
- Enables bt kernel driver for pineapple
- Replace fallthrough comments with attribute
- Disable WLAN dependencies

Change-Id: I7843ecc47b656e22d9e558af6be8d3445d79918f
2022-11-17 16:56:32 -08:00
Satish Kumar Kodishala
2b813f0aba Fix FM slimbus channel and port configuration
Fix FM slimbus channel and port configuration.

CRs-Fixed: 3219117
Change-Id: I3f8f5536a2d8a6cae0e0764ef4e2d6e4fc17cf7d
2022-06-21 02:32:05 -07:00
Satish Kumar Kodishala
8d9d6954ea Delay after all ports are closed for HMT
Delay after all ports are closed for HMT to
allow the slimbus hw to reset. Also, slimbus
slave don't expect port to be disconnected
while tearing down for sample rates other than
44.1/88.2k. Change added not to disconnect ports
during tear down.

CRs-Fixed: 3203895
Change-Id: Ib352a40582506fe9644e44572f56d2fb08fba075
2022-06-10 13:13:31 +05:30
CNSS_WLAN Service
9fa7cca933 Merge "BTFMSLIM: Free memory during error while port open" into bt-kernel.lnx.1.0 2022-05-04 15:55:37 -07:00
satish kumar sugasi
b54bc3270d BT: Add support for converged node for kalama
-Adds new device node entry to support dual attach.
-Chipset attached is detected using gpio value and corresponding
device tree  node is selected.

Change-Id: Iad12577a23ae0dca691b24de4efd385695259f41
2022-05-01 12:34:40 -07:00
Satish Kumar Kodishala
17f729b2ed BTFMSLIM: Free memory during error while port open
Free memory only during error while opening a port.
In success case, memory will be freed during port
closure.

CRs-Fixed: 3162291, 3113018
Change-Id: Ice2172c7865e5df5898b3ac927f842db1516fd96
2022-04-28 23:26:36 +05:30
satish kumar sugasi
21dce9f3af Revert "FM: Add ALT_SLEEP_CLK support for power on chip"
This reverts commit d3174b4722

Change-Id: I592fc7a404b9dfe601a392fdb82b41c332af65da
2022-02-28 09:02:55 -08:00
satish kumar sugasi
d3174b4722 FM: Add ALT_SLEEP_CLK support for power on chip
This enables/disable alt_sleep_clock during FM on/off

Change-Id: I95fbe011e34c80c013f13875bf9472e50aa05742
2022-02-17 09:26:43 -08:00
satish kumar sugasi
88a332ba60 btfm slimbus configuration change to enable
Enable btfm slimbus slave configuration default if BT power driver
enabled.

Change-Id: Iea4ee82cd366c9fa5a0824b9277b9bb49e15b128
2022-02-14 10:07:37 -08:00
Girish BN
633df0b2ed OOBS enanchment changes for Bluetooth Driver
- Handling GPIO and UART clock throw State machine.

Change-Id: I9b10b15f2150c51823e5eb670954d5b6a97a606e
2022-02-08 23:16:44 +05:30
CNSS_WLAN Service
07f6a6064d Merge "Add out of band sleep support to bluetooth driver" into bt-kernel.lnx.1.0 2022-02-08 01:22:16 -08:00
Satish Kumar Kodishala
e30db52d58 Add support for 192KHz sample rate
Add support for 192KHz sample rate for Aptx Adaptive R3

CRs-Fixed: 3105454
Change-Id: Idfc5fd79e4cc3c1dfd5dffa9f3808ee53b481706
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2022-02-07 10:33:37 -08:00
Balakrishna Godavarthi
2f0eff54ed Add out of band sleep support to bluetooth driver
This change adds out of band sleep support to bluetooth
power driver. This feature will be enabled when macro
CONFIG_MSM_BT_OOBS is defined.

Change-Id: I74b231956ad0884528b17720cbfa3639281af9a3
2022-02-05 11:51:14 +05:30
satish kumar sugasi
1d6e351ae8 BT: Check slimbus configuration enabled or not
Disable BTFM slimbus driver if core slimbus disabled.

Change-Id: I6bcbe037181021d4449f345a81d257a2bc2deab6
2022-01-19 13:15:12 -08:00
satish kumar sugasi
cc92023f48 BT: Add support for kalama target
Adds voltage regulators info needed for powering on BT chipset.

Change-Id: I5f281c88b3f94a9899396ad38b81f2970e91a054
Signed-off-by: satish kumar sugasi <quic_ssugasi@quicinc.com>
2021-12-16 12:46:15 -08:00
Umesh Vats
eaa3717b1d bt-kernel: Bring initial files for BT family drivers
Bring BT family drivers from msm-5.10 kernel
to BT kernel project.

drivers/bluetooth/btpower.c -> .
drivers/bluetooth/btfm* ->  .
drivers/media/radio/rtc6226/* -> .
include/net/bt* -> include/
Above shows how directories and header files are relocated.

Change-Id: I6263eaa81dec344d7589f09ad3ec525ee7b04a8a
2021-11-08 14:00:16 -08:00
Git User
a3f521cc0c Initial empty repository 2021-09-23 17:20:43 -07:00