From e0d2d3bd29e304ebd1f3ba131cf9d8a404534c03 Mon Sep 17 00:00:00 2001 From: Bo Shen Date: Tue, 16 Apr 2013 23:42:42 +0000 Subject: spi: atmel_spi: using ip version to check whether has wdrbt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using IP version to check whether it has wdrbt bit in mode register Tested in at91sam9x5ek and at91sam9n12ek. Signed-off-by: Bo Shen [fix warning about incompatible parameter] Signed-off-by: Josh Wu Signed-off-by: Andreas Bießmann --- drivers/spi/atmel_spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/spi/atmel_spi.h') 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 */ -- cgit v1.1