aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/atmel_spi.h
diff options
context:
space:
mode:
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 057de9adee6..d2409454f9f 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 */