aboutsummaryrefslogtreecommitdiff
path: root/include/spi.h
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-12-13 20:10:33 +0530
committerJagan Teki <jteki@openedev.com>2016-01-13 18:47:25 +0530
commit095a41d3c281b2c6576ea7e42780b565d619a1af (patch)
tree25edd3d2f021063cff33918aca8d76d8a456c2c1 /include/spi.h
parentf5c3c033f7ebd86e6a6e90f4a97b54d3e0f41d9a (diff)
downloadu-boot-095a41d3c281b2c6576ea7e42780b565d619a1af.zip
u-boot-095a41d3c281b2c6576ea7e42780b565d619a1af.tar.gz
u-boot-095a41d3c281b2c6576ea7e42780b565d619a1af.tar.bz2
spi: Use mode instead of op_mode_tx
Used mode member from spi_slave{} instead of op_mode_tx. Cc: Simon Glass <sjg@chromium.org> Tested-by: Jagan Teki <jteki@openedev.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'include/spi.h')
-rw-r--r--include/spi.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/spi.h b/include/spi.h
index 05202d0..67521721 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -23,6 +23,8 @@
#define SPI_LOOP 0x20 /* loopback mode */
#define SPI_SLAVE 0x40 /* slave mode */
#define SPI_PREAMBLE 0x80 /* Skip preamble bytes */
+#define SPI_TX_BP 0x100 /* transmit with 1 wire byte */
+#define SPI_TX_QPP 0x200 /* transmit with 4 wires */
/* SPI transfer flags */
#define SPI_XFER_BEGIN 0x01 /* Assert CS before transfer */
@@ -32,10 +34,6 @@
#define SPI_XFER_ONCE (SPI_XFER_BEGIN | SPI_XFER_END)
#define SPI_XFER_U_PAGE (1 << 5)
-/* SPI TX operation modes */
-#define SPI_OPM_TX_QPP (1 << 0)
-#define SPI_OPM_TX_BP (1 << 1)
-
/* SPI RX operation modes */
#define SPI_OPM_RX_AS (1 << 0)
#define SPI_OPM_RX_AF (1 << 1)
@@ -107,7 +105,6 @@ struct dm_spi_slave_platdata {
* @cs: ID of the chip select connected to the slave.
* @mode: SPI mode to use for this slave (see SPI mode flags)
* @op_mode_rx: SPI RX operation mode.
- * @op_mode_tx: SPI TX operation mode.
* @wordlen: Size of SPI word in number of bits
* @max_write_size: If non-zero, the maximum number of bytes which can
* be written at once, excluding command bytes.
@@ -126,7 +123,6 @@ struct spi_slave {
#endif
uint mode;
u8 op_mode_rx;
- u8 op_mode_tx;
unsigned int wordlen;
unsigned int max_write_size;
void *memory_map;