Commit d4735392 authored by Mike J. Chen's avatar Mike J. Chen Committed by Benjamin Cabé
Browse files

drivers: dma_mcux_lpc: fix missing peripheral case



Change 4e0e3c99 caused
a regression in that SPI_MCUX_FLEXCOMM_TX DMA
transfers weren't properly set to be a peripheral
transfer.

Signed-off-by: default avatarMike J. Chen <mjchen@google.com>
parent 147f8b04
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -516,7 +516,8 @@ static int dma_mcux_lpc_configure(const struct device *dev, uint32_t channel,
	}

	if ((config->channel_direction == MEMORY_TO_PERIPHERAL) ||
	    (config->channel_direction == PERIPHERAL_TO_MEMORY)) {
	    (config->channel_direction == PERIPHERAL_TO_MEMORY) ||
	    (config->channel_direction == LPC_DMA_SPI_MCUX_FLEXCOMM_TX)) {
		is_periph = true;
	} else {
		is_periph = false;