Browse Source

spi: Add SPI_TX_DUAL mode

Added SPI_TX_DUAL mode flag.

Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Tested-by: Jagan Teki <jteki@openedev.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
Jagan Teki 8 years ago
parent
commit
2b11a41cef
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/spi.h

+ 2 - 1
include/spi.h

@@ -24,7 +24,8 @@
 #define SPI_SLAVE	BIT(6)			/* slave mode */
 #define SPI_PREAMBLE	BIT(7)			/* Skip preamble bytes */
 #define SPI_TX_BYTE	BIT(8)			/* transmit with 1 wire byte */
-#define SPI_TX_QUAD	BIT(9)			/* transmit with 4 wires */
+#define SPI_TX_DUAL	BIT(9)			/* transmit with 2 wires */
+#define SPI_TX_QUAD	BIT(10)			/* transmit with 4 wires */
 
 /* SPI mode_rx flags */
 #define SPI_RX_SLOW	BIT(0)			/* receive with 1 wire slow */