From 65c575506d60a70385e9751072a6bc2c5694ec38 Mon Sep 17 00:00:00 2001 From: Bo Shen Date: Sun, 19 Aug 2012 20:32:22 +0000 Subject: spi: atmel: add WDRBT bit to avoid receive overrun MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The atmel at91sam9x5 series spi has feature to avoid receive overren Using the patch to enable it Signed-off-by: Bo Shen Acked-by: Andreas Bießmann Signed-off-by: Andreas Bießmann --- drivers/spi/atmel_spi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/spi/atmel_spi.c') diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c index 83ef8e8..c7a51f7 100644 --- a/drivers/spi/atmel_spi.c +++ b/drivers/spi/atmel_spi.c @@ -92,6 +92,9 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, as->slave.cs = cs; as->regs = regs; as->mr = ATMEL_SPI_MR_MSTR | ATMEL_SPI_MR_MODFDIS +#if defined(CONFIG_AT91SAM9X5) + | ATMEL_SPI_MR_WDRBT +#endif | ATMEL_SPI_MR_PCS(~(1 << cs) & 0xf); spi_writel(as, CSR(cs), csrx); -- cgit v1.1