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>
This commit is contained in:
parent
b030e73173
commit
ac81e1ccf7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user