From: Jagan Teki Date: Wed, 16 Dec 2015 10:21:06 +0000 (+0530) Subject: spi: Fix bit assignment with flags X-Git-Tag: v2016.03-rc1~362 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e26a2e2cd96d1e885292880e1d71233a9dc04518;p=u-boot spi: Fix bit assignment with flags Fixed bit assignment with flags members on spi_slave{} Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Tested-by: Mugunthan V N Tested-by: Bin Meng Tested-by: Jagan Teki Reviewed-by: Bin Meng Signed-off-by: Jagan Teki --- diff --git a/include/spi.h b/include/spi.h index de09ac5c53..82e72ab38b 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 }; /**