Skip to content

Commit

Permalink
drivers: bluetooth: silabs_efr32: Add support for vendor HCI extensions
Browse files Browse the repository at this point in the history
Add a Kconfig option which can be used to enable vendor HCI extensions for
Silicon Labs EFR32 devices.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
  • Loading branch information
jhedberg authored and kartben committed Jan 31, 2025
1 parent e34d5ca commit 77a350e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/bluetooth/hci/Kconfig.silabs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
menu "EFR32 Bluetooth Controller Configuration"
depends on BT_SILABS_EFR32

config BT_SILABS_EFR32_HCI_VS
bool "Silicon Labs vendor specific HCI extensions"
help
Enable Silicon Labs vendor specific HCI extensions.

config BT_SILABS_EFR32_BUFFER_MEMORY
int "Memory buffer size"
default 6144
Expand Down
4 changes: 4 additions & 0 deletions drivers/bluetooth/hci/hci_silabs_efr32.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ static int slz_bt_open(const struct device *dev, bt_hci_recv_t recv)
sl_btctrl_hci_parser_init_adv();
sl_btctrl_hci_parser_init_phy();

if (IS_ENABLED(CONFIG_BT_SILABS_EFR32_HCI_VS)) {
sl_bthci_init_vs();
}

if (IS_ENABLED(CONFIG_PM)) {
RAIL_ConfigSleep(BTLE_LL_GetRadioHandle(), RAIL_SLEEP_CONFIG_TIMERSYNC_ENABLED);
RAIL_Status_t status = RAIL_InitPowerManager();
Expand Down
4 changes: 4 additions & 0 deletions modules/hal_silabs/simplicity_sdk/src/blob_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ void sl_btctrl_hci_parser_init_phy(void)
{
}

void sl_bthci_init_vs(void)
{
}

void AGC_IRQHandler(void)
{
}
Expand Down

0 comments on commit 77a350e

Please sign in to comment.