summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2019-05-03 11:33:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-08 10:52:51 +0200
commit167a27b5354910b92c7a4654a44d72a3d167f0ab (patch)
tree2f7ecb33e9fdde2257f1e3861f49acc5285346af
parent812a9ddcdf211302a050cf8f61f7af577bc29a23 (diff)
downloadbarebox-167a27b5354910b92c7a4654a44d72a3d167f0ab.tar.gz
spi: Import more spi mode defines from Linux
Sync with Linux v5.1-rc1. Define more spi mode flags. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/spi/spi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/spi/spi.h b/include/spi/spi.h
index 8c6927d..6eeaf25 100644
--- a/include/spi/spi.h
+++ b/include/spi/spi.h
@@ -75,6 +75,16 @@ struct spi_device {
#define SPI_LSB_FIRST 0x08 /* per-word bits-on-wire */
#define SPI_3WIRE 0x10 /* SI/SO signals shared */
#define SPI_LOOP 0x20 /* loopback mode */
+#define SPI_NO_CS 0x40 /* 1 dev/bus, no chipselect */
+#define SPI_READY 0x80 /* slave pulls low to pause */
+#define SPI_TX_DUAL 0x100 /* transmit with 2 wires */
+#define SPI_TX_QUAD 0x200 /* transmit with 4 wires */
+#define SPI_RX_DUAL 0x400 /* receive with 2 wires */
+#define SPI_RX_QUAD 0x800 /* receive with 4 wires */
+#define SPI_CS_WORD 0x1000 /* toggle cs after each word */
+#define SPI_TX_OCTAL 0x2000 /* transmit with 8 wires */
+#define SPI_RX_OCTAL 0x4000 /* receive with 8 wires */
+#define SPI_3WIRE_HIZ 0x8000 /* high impedance turnaround */
u8 bits_per_word;
int irq;
void *controller_state;