drivers: bluetooth: hci: BlueNRG-MS: Hold on CS
In case of BlueNRG-MS, it is necessary to prevent SPI driver to release CS, and instead, let current driver manage CS release. So, add SPI_HOLD_ON_CS to operation field Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
parent
8538b835f3
commit
2c4d55042c
1 changed files with 9 additions and 0 deletions
|
@ -116,8 +116,17 @@ struct bluenrg_aci_cmd_ll_param {
|
|||
static int bt_spi_send_aci_config_data_controller_mode(void);
|
||||
#endif /* CONFIG_BT_BLUENRG_ACI */
|
||||
|
||||
#if defined(CONFIG_BT_SPI_BLUENRG)
|
||||
/* In case of BlueNRG-MS, it is necessary to prevent SPI driver to release CS,
|
||||
* and instead, let current driver manage CS release. see kick_cs()/release_cs()
|
||||
* So, add SPI_HOLD_ON_CS to operation field.
|
||||
*/
|
||||
static const struct spi_dt_spec bus = SPI_DT_SPEC_INST_GET(
|
||||
0, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8) | SPI_HOLD_ON_CS, 0);
|
||||
#else
|
||||
static const struct spi_dt_spec bus = SPI_DT_SPEC_INST_GET(
|
||||
0, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8), 0);
|
||||
#endif
|
||||
|
||||
static struct spi_buf spi_tx_buf;
|
||||
static struct spi_buf spi_rx_buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue