Bluetooth: SPI: introduce CONFIG_BLUETOOTH_SPI_BLUENRG
This new option is used to encapsulate the logic specific to devices implementing the BlueNRG Bluetooth stack (e.g. X-NUCLEO-IDB05A1). The current BlueNRG specific logic covers the HCI Reset handling and the manual control of the SPI Chip Select line (normally not needed since spi_transceive is also responsible for controlling the SPI CS line). Change-Id: I5db4addf873eee0af2d957e2181c50aac53ab656 Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
This commit is contained in:
parent
ef7f2bd54e
commit
4afe063aad
2 changed files with 29 additions and 2 deletions
|
@ -46,7 +46,7 @@ config BLUETOOTH_SPI
|
|||
HCI packets are sent and received as single Byte transferrs,
|
||||
prepended after a known header. Headers may vary per device, so
|
||||
additional platform specific knowlege may need to be added as
|
||||
devices are. Current driver supports; ST X-NUCLEO BLE series.
|
||||
devices are.
|
||||
|
||||
config BLUETOOTH_NO_DRIVER
|
||||
bool "No default HCI driver"
|
||||
|
@ -108,8 +108,16 @@ config BLUETOOTH_HCI_RECV_RESERVE
|
|||
|
||||
if BLUETOOTH_SPI
|
||||
|
||||
config BLUETOOTH_SPI_BLUENRG
|
||||
bool "Enable compatibility with BlueNRG-based devices"
|
||||
default n
|
||||
help
|
||||
Enable support for devices compatible with the BlueNRG Bluetooth
|
||||
Stack. Current driver supports: ST X-NUCLEO BLE series.
|
||||
|
||||
config BLUETOOTH_SPI_CHIP_SELECT_DEV_NAME
|
||||
string "Chip Select (CS) line driver name"
|
||||
depends on BLUETOOTH_SPI_BLUENRG
|
||||
help
|
||||
This option specifies the name of GPIO driver controlling
|
||||
the Chip Select (CS) line.
|
||||
|
@ -128,6 +136,7 @@ config BLUETOOTH_SPI_RESET_DEV_NAME
|
|||
|
||||
config BLUETOOTH_SPI_CHIP_SELECT_PIN
|
||||
int "SPI Chip Select (CS) line number"
|
||||
depends on BLUETOOTH_SPI_BLUENRG
|
||||
help
|
||||
This option specifies the Chip Select (CS) line number on the SPI
|
||||
device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue