]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/spi/atmel_spi.h
sandbox: Add implementation of spi_setup_slave_fdt()
[karo-tx-uboot.git] / drivers / spi / atmel_spi.h
index 8b69a6d2159c4213bbb5d1567dd463f4dda92f32..d2409454f9f9af025678142cd0ab5274546d26e8 100644 (file)
@@ -26,6 +26,7 @@
 #define ATMEL_SPI_MR_PCSDEC            (1 << 2)
 #define ATMEL_SPI_MR_FDIV              (1 << 3)
 #define ATMEL_SPI_MR_MODFDIS           (1 << 4)
+#define ATMEL_SPI_MR_WDRBT             (1 << 5)
 #define ATMEL_SPI_MR_LLB               (1 << 7)
 #define ATMEL_SPI_MR_PCS(x)            (((x) & 15) << 16)
 #define ATMEL_SPI_MR_DLYBCS(x)         ((x) << 24)
@@ -63,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 */