drivers: spi: spi-bitbang: Initialize CS GPIOs
The SPI bitbang driver doesn't correctly initialize the list of CS GPIOs. As a consequence, SPI buses using the bitbang driver won't drive CS low. Add the missing initialization. Signed-off-by: Andreas Sandberg <andreas@sandberg.uk>
This commit is contained in:
parent
18ede6e681
commit
65252ffd95
1 changed files with 1 additions and 0 deletions
|
@ -287,6 +287,7 @@ int spi_bitbang_init(const struct device *dev)
|
|||
static struct spi_bitbang_data spi_bitbang_data_##inst = { \
|
||||
SPI_CONTEXT_INIT_LOCK(spi_bitbang_data_##inst, ctx), \
|
||||
SPI_CONTEXT_INIT_SYNC(spi_bitbang_data_##inst, ctx), \
|
||||
SPI_CONTEXT_CS_GPIOS_INITIALIZE(DT_DRV_INST(inst), ctx) \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(inst, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue