ieee802154: cc2520: 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:
Jordan Yates 2020-06-18 18:13:55 +10:00 committed by Kumar Gala
parent 4f07fac5fc
commit 0d4417d187

View file

@ -1064,6 +1064,7 @@ static inline int configure_spi(struct device *dev)
}
cs_ctrl.gpio_pin = DT_INST_SPI_DEV_CS_GPIOS_PIN(0);
cs_ctrl.gpio_dt_flags = DT_INST_SPI_DEV_CS_GPIOS_FLAGS(0);
cs_ctrl.delay = 0U;
cc2520->spi_cfg.cs = &cs_ctrl;