[U-Boot] [PATCH 6/8] spi: Fix bit assignment with flags
Jagan Teki
jteki at openedev.com
Wed Dec 16 16:40:45 CET 2015
Fixed bit assignment with flags members on spi_slave{}
Cc: Simon Glass <sjg at chromium.org>
Cc: Bin Meng <bmeng.cn at gmail.com>
Cc: Michal Simek <michal.simek at xilinx.com>
Cc: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
Signed-off-by: Jagan Teki <jteki at openedev.com>
---
include/spi.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/spi.h b/include/spi.h
index 9e1fe3f..526e870 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -115,10 +115,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
};
/**
--
1.9.1
More information about the U-Boot
mailing list