Skip to content

Commit 77a350e

Browse files
jhedbergkartben
authored andcommitted
drivers: bluetooth: silabs_efr32: Add support for vendor HCI extensions
Add a Kconfig option which can be used to enable vendor HCI extensions for Silicon Labs EFR32 devices. Signed-off-by: Johan Hedberg <[email protected]>
1 parent e34d5ca commit 77a350e

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

drivers/bluetooth/hci/Kconfig.silabs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
menu "EFR32 Bluetooth Controller Configuration"
55
depends on BT_SILABS_EFR32
66

7+
config BT_SILABS_EFR32_HCI_VS
8+
bool "Silicon Labs vendor specific HCI extensions"
9+
help
10+
Enable Silicon Labs vendor specific HCI extensions.
11+
712
config BT_SILABS_EFR32_BUFFER_MEMORY
813
int "Memory buffer size"
914
default 6144

drivers/bluetooth/hci/hci_silabs_efr32.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,10 @@ static int slz_bt_open(const struct device *dev, bt_hci_recv_t recv)
330330
sl_btctrl_hci_parser_init_adv();
331331
sl_btctrl_hci_parser_init_phy();
332332

333+
if (IS_ENABLED(CONFIG_BT_SILABS_EFR32_HCI_VS)) {
334+
sl_bthci_init_vs();
335+
}
336+
333337
if (IS_ENABLED(CONFIG_PM)) {
334338
RAIL_ConfigSleep(BTLE_LL_GetRadioHandle(), RAIL_SLEEP_CONFIG_TIMERSYNC_ENABLED);
335339
RAIL_Status_t status = RAIL_InitPowerManager();

modules/hal_silabs/simplicity_sdk/src/blob_stubs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ void sl_btctrl_hci_parser_init_phy(void)
109109
{
110110
}
111111

112+
void sl_bthci_init_vs(void)
113+
{
114+
}
115+
112116
void AGC_IRQHandler(void)
113117
{
114118
}

0 commit comments

Comments
 (0)