summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-12-05 22:22:17 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2012-12-09 22:40:13 +0100
commitac81e1ccf7135d8004763bbf9bef1d95a03fbe92 (patch)
tree3e9cc53b4190deb227dafb8e8cf455eaaf06c313 /drivers
parentb030e731736f4dcd3d8662bf3a3a71bed21c5c9e (diff)
downloadu-boot-imx-ac81e1ccf7135d8004763bbf9bef1d95a03fbe92.zip
u-boot-imx-ac81e1ccf7135d8004763bbf9bef1d95a03fbe92.tar.gz
u-boot-imx-ac81e1ccf7135d8004763bbf9bef1d95a03fbe92.tar.bz2
spi: atmel: sam9m10g45 also support WDRBT bit
The at91sam9m10g45 also support WDRBT bit, add support for it Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/atmel_spi.c2
1 files changed, 1 insertions, 1 deletions
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);