diff mbox

[U-Boot,1/8] spi: Remove SPI_OPM_RX_EXTN

Message ID 1450280447-3897-2-git-send-email-jteki@openedev.com
State Accepted
Commit 4dd12454dc5abd615541ceb20586a2f0564fcb83
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Jagan Teki Dec. 16, 2015, 3:40 p.m. UTC
SPI_OPM_RX_EXTN is a combination of all rx opmode's
and spi driver shall use any one of the rx mode at
a time not the combination and it is true in case of
flash where spi_flash_table mention combination of
supported read opmodes so-that the required one
will pick based on the rx mode from spi driver.

Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
---
 include/spi.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Bin Meng Dec. 21, 2015, 6:27 a.m. UTC | #1
On Wed, Dec 16, 2015 at 11:40 PM, Jagan Teki <jteki@openedev.com> wrote:
> SPI_OPM_RX_EXTN is a combination of all rx opmode's
> and spi driver shall use any one of the rx mode at
> a time not the combination and it is true in case of
> flash where spi_flash_table mention combination of
> supported read opmodes so-that the required one
> will pick based on the rx mode from spi driver.
>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> Cc: Michal Simek <michal.simek@xilinx.com>
> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
> Signed-off-by: Jagan Teki <jteki@openedev.com>
> ---

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
diff mbox

Patch

diff --git a/include/spi.h b/include/spi.h
index b9a6e6f..bf2ed28 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -41,9 +41,6 @@ 
 #define SPI_OPM_RX_DIO		(1 << 3)
 #define SPI_OPM_RX_QOF		(1 << 4)
 #define SPI_OPM_RX_QIOF		(1 << 5)
-#define SPI_OPM_RX_EXTN	(SPI_OPM_RX_AS | SPI_OPM_RX_AF | SPI_OPM_RX_DOUT | \
-				SPI_OPM_RX_DIO | SPI_OPM_RX_QOF | \
-				SPI_OPM_RX_QIOF)
 
 /* SPI bus connection options - see enum spi_dual_flash */
 #define SPI_CONN_DUAL_SHARED		(1 << 0)