diff options
| author | 2018-09-22 10:02:45 +0100 | |
|---|---|---|
| committer | 2018-09-22 10:02:45 +0100 | |
| commit | 7a5f0b3a08e323d93d17b0eca48048c970c6eae2 (patch) | |
| tree | f5a8ebf528bbf857f0224c19389e08a52cba1811 /include | |
| parent | staging:iio:ad7606: Remove incorrect kernel doc annotations (diff) | |
| parent | spi: add software implementation for SPI_CS_WORD (diff) | |
Merge tag 'spi-cs-word' into togreg
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')
| -rw-r--r-- | include/linux/spi/spi.h | 2 |
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 * - ... */ |
