[U-Boot] [Patch v2 3/4] SPI: atmel_spi: support sama5d3x devices
Bo Shen
voice.shen at atmel.com
Tue Mar 12 07:15:31 CET 2013
Add WDRBT bit support for sama5d3x devices
Signed-off-by: Bo Shen <voice.shen at atmel.com>
---
Change in v2:
no change
---
drivers/spi/atmel_spi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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);
--
1.7.9.5
More information about the U-Boot
mailing list