ieee802154: mcr20a: 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
0d4417d187
commit
e7a5505e74
1 changed files with 1 additions and 0 deletions
|
@ -1389,6 +1389,7 @@ static inline int configure_spi(struct device *dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
mcr20a->cs_ctrl.gpio_pin = DT_INST_SPI_DEV_CS_GPIOS_PIN(0);
|
mcr20a->cs_ctrl.gpio_pin = DT_INST_SPI_DEV_CS_GPIOS_PIN(0);
|
||||||
|
mcr20a->cs_ctrl.gpio_flags = DT_INST_SPI_DEV_CS_GPIOS_FLAGS(0);
|
||||||
mcr20a->cs_ctrl.delay = 0U;
|
mcr20a->cs_ctrl.delay = 0U;
|
||||||
|
|
||||||
mcr20a->spi_cfg.cs = &mcr20a->cs_ctrl;
|
mcr20a->spi_cfg.cs = &mcr20a->cs_ctrl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue