spi: Add SPI_TX_DUAL mode
authorJagan Teki <jteki@openedev.com>
Mon, 28 Dec 2015 17:25:50 +0000 (22:55 +0530)
committerJagan Teki <jteki@openedev.com>
Wed, 13 Jan 2016 13:17:27 +0000 (18:47 +0530)
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>
include/spi.h

index 85866a27fcb7f65b3ef11cdea2a3e2e832ca3712..25470e4df2669fd9da49a8f696a4085f218931a1 100644 (file)
@@ -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 */