summaryrefslogtreecommitdiff
path: root/include/spi.h
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-12-13 20:12:45 +0530
committerJagan Teki <jteki@openedev.com>2016-01-13 18:47:25 +0530
commitcdf3393814d4d811772b4414def79a05ed75b749 (patch)
treee468e07abae0f9ca89cf5347eb85a2734fac6894 /include/spi.h
parent095a41d3c281b2c6576ea7e42780b565d619a1af (diff)
downloadu-boot-cdf3393814d4d811772b4414def79a05ed75b749.tar.gz
u-boot-cdf3393814d4d811772b4414def79a05ed75b749.tar.bz2
u-boot-cdf3393814d4d811772b4414def79a05ed75b749.zip
spi: Rename SPI_TX_BP|QPP to SPI_TX_BYTE|QUAD
Since SPI_TX_* are spi_slave{} members so use spi protocol notation instead spi flash programming, like SPI_TX_BP => SPI_TX_BYTE SPI_TX_QPP => SPI_TX_QUAD 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/spi.h b/include/spi.h
index 67521721ee..b9a6e6fb4f 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -23,8 +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 */
+#define SPI_TX_BYTE 0x100 /* transmit with 1 wire byte */
+#define SPI_TX_QUAD 0x200 /* transmit with 4 wires */
/* SPI transfer flags */
#define SPI_XFER_BEGIN 0x01 /* Assert CS before transfer */