]> git.sur5r.net Git - u-boot/commitdiff
spi: atmel: sam9m10g45 also support WDRBT bit
authorBo Shen <voice.shen@atmel.com>
Wed, 5 Dec 2012 22:22:17 +0000 (22:22 +0000)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Sun, 9 Dec 2012 21:40:13 +0000 (22:40 +0100)
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>
drivers/spi/atmel_spi.c

index c7a51f7f39a368bdec2b368e470e6386d8228760..ce7d46085543330cf1721b7585557e5a797af2fe 100644 (file)
@@ -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);