summaryrefslogtreecommitdiff
path: root/include/linux/spi
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2018-09-18 00:17:30 +0300
committerMark Brown <broonie@kernel.org>2018-09-18 00:17:30 +0300
commit926369667732577cd7ca85f28ced8ef8d0964285 (patch)
treedf133160f1bc2c9faf38399e4a5db5896b2bf002 /include/linux/spi
parent3356d9f4cb45b1aef3dd4b1a6ea9ceaca0f68a53 (diff)
parentcbaa62e0094a840fecc853910e0c0454529cec03 (diff)
downloadlinux-926369667732577cd7ca85f28ced8ef8d0964285.tar.xz
Merge tag 'spi-cs-word' into spi-4.20
spi: Provide SPI_CS_WORD This provides a SPI operation mode which changes chip select after every word, used by some devices such as ADCs and DACs.
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/spi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index d698f9db3484..7bb36145e2ba 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -163,6 +163,7 @@ struct spi_device {
#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 */
int irq;
void *controller_state;
void *controller_data;
@@ -177,7 +178,6 @@ struct spi_device {
* the controller talks to each chip, like:
* - memory packing (12 bit samples into low bits, others zeroed)
* - priority
- * - drop chipselect after each word
* - chipselect delays
* - ...
*/