]> git.sur5r.net Git - u-boot/commitdiff
spi: Fix bit assignment with flags
authorJagan Teki <jteki@openedev.com>
Wed, 16 Dec 2015 10:21:06 +0000 (15:51 +0530)
committerJagan Teki <jteki@openedev.com>
Wed, 13 Jan 2016 13:17:26 +0000 (18:47 +0530)
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>
include/spi.h

index de09ac5c53a555f5c0c7f81c5b2922de76c9ca09..82e72ab38b221a52cbd9ca5b08fc50fdcc218d5a 100644 (file)
@@ -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
 };
 
 /**