Patchwork [U-Boot] spi: atmel: sam9m10g45 also support WDRBT bit

login
register
mail settings
Submitter Bo Shen
Date Dec. 6, 2012, 8:22 a.m.
Message ID <1354782137-30072-1-git-send-email-voice.shen@atmel.com>
Download mbox | patch
Permalink /patch/204174/
State Accepted
Delegated to: Andreas Bießmann
Headers show

Comments

Bo Shen - Dec. 6, 2012, 8:22 a.m.
The at91sam9m10g45 also support WDRBT bit, add support for it

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
 drivers/spi/atmel_spi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Andreas Bießmann - Dec. 9, 2012, 9:50 p.m.
Dear Bo Shen,

On 06.12.2012 09:22, Bo Shen wrote:
> The at91sam9m10g45 also support WDRBT bit, add support for it
>
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
> ---
>   drivers/spi/atmel_spi.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

applied to u-boot-atmel/master, thanks!

Best regards

Andreas Bießmann

Patch

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