Patchwork [U-Boot,3/4] SPI: atmel_spi: support sama5d3x devices

login
register
mail settings
Submitter Bo Shen
Date Feb. 28, 2013, 7 a.m.
Message ID <1362034848-6371-4-git-send-email-voice.shen@atmel.com>
Download mbox | patch
Permalink /patch/223780/
State Superseded
Delegated to: Andreas BieƟmann
Headers show

Comments

Bo Shen - Feb. 28, 2013, 7 a.m.
Add WDRBT bit support for sama5d3x devices

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
 drivers/spi/atmel_spi.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index ce7d460..5e97225 100644
--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -92,7 +92,8 @@  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) || defined(CONFIG_AT91SAM9M10G45)
+#if defined(CONFIG_AT91SAM9X5) || defined(CONFIG_AT91SAM9M10G45) || \
+	defined(CONFIG_SAMA5D3)
 			| ATMEL_SPI_MR_WDRBT
 #endif
 			| ATMEL_SPI_MR_PCS(~(1 << cs) & 0xf);