Commit 0baf9eb2 authored by David Lechner's avatar David Lechner Committed by Mark Brown

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: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5b394b2d
...@@ -163,6 +163,7 @@ struct spi_device { ...@@ -163,6 +163,7 @@ struct spi_device {
#define SPI_TX_QUAD 0x200 /* transmit with 4 wires */ #define SPI_TX_QUAD 0x200 /* transmit with 4 wires */
#define SPI_RX_DUAL 0x400 /* receive with 2 wires */ #define SPI_RX_DUAL 0x400 /* receive with 2 wires */
#define SPI_RX_QUAD 0x800 /* receive with 4 wires */ #define SPI_RX_QUAD 0x800 /* receive with 4 wires */
#define SPI_CS_WORD 0x1000 /* toggle cs after each word */
int irq; int irq;
void *controller_state; void *controller_state;
void *controller_data; void *controller_data;
...@@ -177,7 +178,6 @@ struct spi_device { ...@@ -177,7 +178,6 @@ struct spi_device {
* the controller talks to each chip, like: * the controller talks to each chip, like:
* - memory packing (12 bit samples into low bits, others zeroed) * - memory packing (12 bit samples into low bits, others zeroed)
* - priority * - priority
* - drop chipselect after each word
* - chipselect delays * - chipselect delays
* - ... * - ...
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment