display: ili9340: Add chip select flags
Adds the chip select devicetree flags to the spi_cs_control instance. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
5963ebaf33
commit
35f5b17b4d
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ static int ili9340_init(struct device *dev)
|
||||||
data->cs_ctrl.gpio_dev =
|
data->cs_ctrl.gpio_dev =
|
||||||
device_get_binding(DT_INST_SPI_DEV_CS_GPIOS_LABEL(0));
|
device_get_binding(DT_INST_SPI_DEV_CS_GPIOS_LABEL(0));
|
||||||
data->cs_ctrl.gpio_pin = DT_INST_SPI_DEV_CS_GPIOS_PIN(0);
|
data->cs_ctrl.gpio_pin = DT_INST_SPI_DEV_CS_GPIOS_PIN(0);
|
||||||
|
data->cs_ctrl.gpio_dt_flags = DT_INST_SPI_DEV_CS_GPIOS_FLAGS(0);
|
||||||
data->cs_ctrl.delay = 0U;
|
data->cs_ctrl.delay = 0U;
|
||||||
data->spi_config.cs = &(data->cs_ctrl);
|
data->spi_config.cs = &(data->cs_ctrl);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue