drivers: spi: Set the complete_callback flag

The MCUX LPC driver now recognizes the complete_callback
flag. We need to set this flag so we receive a callback
after every block.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2023-10-02 23:41:37 +01:00 committed by Carles Cufí
parent 4e14f73216
commit 0dbbc3cc77

View file

@ -830,10 +830,11 @@ static void spi_mcux_config_func_##id(const struct device *dev) \
.dma_dev = DEVICE_DT_GET(DT_INST_DMAS_CTLR_BY_NAME(id, tx)), \
.channel = \
DT_INST_DMAS_CELL_BY_NAME(id, tx, channel), \
.dma_cfg = { \
.dma_cfg = { \
.channel_direction = MEMORY_TO_PERIPHERAL, \
.dma_callback = spi_mcux_dma_callback, \
.block_count = 2, \
.complete_callback_en = true, \
.block_count = 2, \
} \
}, \
.dma_rx = { \