drivers: ssd1306: remove SPI operation flags
Remove two operation flags in the SPI configuration instance, which disturb software controlled chip select lines (CS never gets released). Signed-off-by: Marco Peter <marco@peter-net.ch>
This commit is contained in:
parent
aff97fe7f6
commit
493a6d8a78
1 changed files with 1 additions and 2 deletions
|
@ -407,8 +407,7 @@ static int ssd1306_init(const struct device *dev)
|
|||
#if DT_INST_ON_BUS(0, spi)
|
||||
driver->spi_config.frequency = DT_INST_PROP(0, spi_max_frequency);
|
||||
driver->spi_config.operation = SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB |
|
||||
SPI_WORD_SET(8) | SPI_LINES_SINGLE |
|
||||
SPI_HOLD_ON_CS | SPI_LOCK_ON;
|
||||
SPI_WORD_SET(8) | SPI_LINES_SINGLE;
|
||||
driver->spi_config.slave = DT_INST_REG_ADDR(0);
|
||||
#if DT_INST_SPI_DEV_HAS_CS_GPIOS(0)
|
||||
driver->cs_ctrl.gpio_dev = device_get_binding(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue