aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/atmel_spi.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index ff10808183a3..b09d33678dd8 100644
--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -490,9 +490,14 @@ static int atmel_spi_setup(struct spi_device *spi)
490 if (!(spi->mode & SPI_CPHA)) 490 if (!(spi->mode & SPI_CPHA))
491 csr |= SPI_BIT(NCPHA); 491 csr |= SPI_BIT(NCPHA);
492 492
493 /* TODO: DLYBS and DLYBCT */ 493 /* DLYBS is mostly irrelevant since we manage chipselect using GPIOs.
494 csr |= SPI_BF(DLYBS, 10); 494 *
495 csr |= SPI_BF(DLYBCT, 10); 495 * DLYBCT would add delays between words, slowing down transfers.
496 * It could potentially be useful to cope with DMA bottlenecks, but
497 * in those cases it's probably best to just use a lower bitrate.
498 */
499 csr |= SPI_BF(DLYBS, 0);
500 csr |= SPI_BF(DLYBCT, 0);
496 501
497 /* chipselect must have been muxed as GPIO (e.g. in board setup) */ 502 /* chipselect must have been muxed as GPIO (e.g. in board setup) */
498 npcs_pin = (unsigned int)spi->controller_data; 503 npcs_pin = (unsigned int)spi->controller_data;