Skip to content

Commit

Permalink
Bluetooth: Use device tree to indicate vendor exension support
Browse files Browse the repository at this point in the history
Introduce a new bt-hci-vs-ext device tree boolean property to indicate
device tree support.

Signed-off-by: Johan Hedberg <[email protected]>
  • Loading branch information
jhedberg authored and nashif committed Jun 11, 2024
1 parent 589b92b commit af750cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dts/bindings/bluetooth/bt-hci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ properties:
bt-hci-quirks:
type: string-array
description: HCI device quirks
bt-hci-vs-ext:
type: boolean
description: Zephyr HCI vendor extensions are supported
4 changes: 4 additions & 0 deletions subsys/bluetooth/common/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,12 @@ config BT_BUF_CMD_TX_COUNT

endmenu

# Workaround to have commas on function arguments
ZEPHYR_BT_HCI := zephyr,bt-hci

config BT_HAS_HCI_VS
bool
default $(dt_chosen_bool_prop,$(ZEPHYR_BT_HCI),bt-hci-vs-ext)
help
This option is set by the Bluetooth controller to indicate support
for the Zephyr HCI Vendor-Specific Commands and Event.
Expand Down

0 comments on commit af750cd

Please sign in to comment.