summaryrefslogtreecommitdiff
path: root/drivers/spi/atmel_spi.h
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-08-19 20:32:22 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 17:06:14 +0200
commit65c575506d60a70385e9751072a6bc2c5694ec38 (patch)
treed26540700b2d40e15f706d4e9b9775c9866ac4d7 /drivers/spi/atmel_spi.h
parent9bfc236872a626b250332be47f456b9b5822e0de (diff)
spi: atmel: add WDRBT bit to avoid receive overrun
The atmel at91sam9x5 series spi has feature to avoid receive overren Using the patch to enable it Signed-off-by: Bo Shen <voice.shen@atmel.com> Acked-by: Andreas Bießmann <andreas.devel@googlemail.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'drivers/spi/atmel_spi.h')
-rw-r--r--drivers/spi/atmel_spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h
index 8b69a6d215..057de9adee 100644
--- a/drivers/spi/atmel_spi.h
+++ b/drivers/spi/atmel_spi.h
@@ -26,6 +26,7 @@
#define ATMEL_SPI_MR_PCSDEC (1 << 2)
#define ATMEL_SPI_MR_FDIV (1 << 3)
#define ATMEL_SPI_MR_MODFDIS (1 << 4)
+#define ATMEL_SPI_MR_WDRBT (1 << 5)
#define ATMEL_SPI_MR_LLB (1 << 7)
#define ATMEL_SPI_MR_PCS(x) (((x) & 15) << 16)
#define ATMEL_SPI_MR_DLYBCS(x) ((x) << 24)