summaryrefslogtreecommitdiff
path: root/include/spi.h
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-12-16 15:51:06 +0530
committerJagan Teki <jteki@openedev.com>2016-01-13 18:47:26 +0530
commite26a2e2cd96d1e885292880e1d71233a9dc04518 (patch)
tree40e2e9d574f7ffa16f25b2a793aa04ff6555dc4c /include/spi.h
parentc40f6003601eae3de5acbea7f6e8318f4a7a831b (diff)
spi: Fix bit assignment with flags
Fixed bit assignment with flags members on spi_slave{} Cc: Simon Glass <sjg@chromium.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by: Mugunthan V N <mugunthanvnm@ti.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Jagan Teki <jteki@openedev.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'include/spi.h')
-rw-r--r--include/spi.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/spi.h b/include/spi.h
index de09ac5c53a..82e72ab38b2 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -118,10 +118,10 @@ struct spi_slave {
u8 flags;
#define SPI_XFER_BEGIN 0x01 /* Assert CS before transfer */
#define SPI_XFER_END 0x02 /* Deassert CS after transfer */
-#define SPI_XFER_MMAP 0x08 /* Memory Mapped start */
-#define SPI_XFER_MMAP_END 0x10 /* Memory Mapped End */
#define SPI_XFER_ONCE (SPI_XFER_BEGIN | SPI_XFER_END)
-#define SPI_XFER_U_PAGE (1 << 5)
+#define SPI_XFER_MMAP 0x04 /* Memory Mapped start */
+#define SPI_XFER_MMAP_END 0x08 /* Memory Mapped End */
+#define SPI_XFER_U_PAGE 0x10
};
/**