summaryrefslogtreecommitdiff
path: root/drivers/spi/atmel_spi.h
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-04-16 23:42:42 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-05-12 16:36:11 +0200
commite0d2d3bd29e304ebd1f3ba131cf9d8a404534c03 (patch)
treed3fc6aff6b52dac8aa945374cfc7f7aa80c9b535 /drivers/spi/atmel_spi.h
parentcac423a730d3506154744485af1bbc1cd3a1e6a8 (diff)
downloadu-boot-imx-e0d2d3bd29e304ebd1f3ba131cf9d8a404534c03.zip
u-boot-imx-e0d2d3bd29e304ebd1f3ba131cf9d8a404534c03.tar.gz
u-boot-imx-e0d2d3bd29e304ebd1f3ba131cf9d8a404534c03.tar.bz2
spi: atmel_spi: using ip version to check whether has wdrbt
Using IP version to check whether it has wdrbt bit in mode register Tested in at91sam9x5ek and at91sam9n12ek. Signed-off-by: Bo Shen <voice.shen@atmel.com> [fix warning about incompatible parameter] Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'drivers/spi/atmel_spi.h')
-rw-r--r--drivers/spi/atmel_spi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h
index 057de9a..d240945 100644
--- a/drivers/spi/atmel_spi.h
+++ b/drivers/spi/atmel_spi.h
@@ -64,7 +64,7 @@
#define ATMEL_SPI_CSRx_DLYBCT(x) ((x) << 24)
/* Bits in VERSION */
-#define ATMEL_SPI_VERSION_REV(x) ((x) << 0)
+#define ATMEL_SPI_VERSION_REV(x) ((x) & 0xfff)
#define ATMEL_SPI_VERSION_MFN(x) ((x) << 16)
/* Constants for CSRx:BITS */