Skip to content

Commit 35c17f0

Browse files
ambarusduraikvddp
authored andcommitted
spi: atmel-quadspi: (workaround) Always use DMA on sama7g5
Bus errors were seen when using mmiocpy with a flavor of mx66lm1g45g. Set the DMA treshold to zero so that we always use DMA for data transfers. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent 7082b0a commit 35c17f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/atmel-quadspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
#define QSPI_CALIB_TIME 2000 /* 2 us */
232232

233233
/* Use PIO for small transfers. */
234-
#define ATMEL_QSPI_DMA_MIN_BYTES 16
234+
#define ATMEL_QSPI_DMA_MIN_BYTES 0
235235
/**
236236
* struct atmel_qspi_pcal - Pad Calibration Clock Division
237237
* @pclk_rate: peripheral clock rate.

0 commit comments

Comments
 (0)