]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/spi/atmel_spi.h
Update from 2013.01 to 2013.07
[karo-tx-uboot.git] / drivers / spi / atmel_spi.h
index 057de9adee6e44bb60154adc543d3b19a6f9aaa3..d2409454f9f9af025678142cd0ab5274546d26e8 100644 (file)
@@ -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 */