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

login
register
mail settings
Submitter Bo Shen
Date March 12, 2013, 6:15 a.m.
Message ID <1363068932-2485-4-git-send-email-voice.shen@atmel.com>
Download mbox | patch
Permalink /patch/226794/
State Changes Requested
Delegated to: Andreas Bießmann
Headers show

Comments

Bo Shen - March 12, 2013, 6:15 a.m.
Add WDRBT bit support for sama5d3x devices

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
Change in v2:
  no change
---
 drivers/spi/atmel_spi.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Andreas Bießmann - May 12, 2013, 11:30 a.m.
Dear Bo Shen,

On 12.03.2013 07:15, Bo Shen wrote:
> Add WDRBT bit support for sama5d3x devices
>
> Signed-off-by: Bo Shen <voice.shen@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

I will apply http://patchwork.ozlabs.org/patch/237182/ today, please 
remove this patch from series.

Best regards

Andreas Bießmann

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);