]> git.sur5r.net Git - u-boot/blobdiff - drivers/spi/atmel_spi.h
spi: xilinx: Move timeout calculation out of the loop
[u-boot] / 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 */