summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2018-09-12 19:39:17 -0500
committerMark Brown <broonie@kernel.org>2018-09-17 14:08:35 -0700
commit0baf9eb25572eea0cf48249c1d152d8373956a7c (patch)
tree4530650925d142edbb2ce898e2d5c349c37d6e81 /include/linux/spi
parent5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff)
downloadlinux-0baf9eb25572eea0cf48249c1d152d8373956a7c.tar.gz
linux-0baf9eb25572eea0cf48249c1d152d8373956a7c.tar.bz2
linux-0baf9eb25572eea0cf48249c1d152d8373956a7c.zip
spi: add new SPI_CS_WORD flag
This adds a new SPI mode flag, SPI_CS_WORD, that is used to indicate that a SPI device requires the chip select to be toggled after each word that is transferred. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Mark Brown <broonie@kernel.org>
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 a64235e05321..7cc1466111f5 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
* - ...
*/