android_kernel_xiaomi_sm8350/drivers/spi
David Brownell b55f627fee spi: new spi->mode bits
Add two new spi_device.mode bits to accomodate more protocol options, and
pass them through to usermode drivers:

 * SPI_NO_CS ... a second 3-wire variant, where the chipselect
   line is removed instead of a data line; transfers are still
   full duplex.

   This obviously has STRONG protocol implications since the
   chipselect transitions can't be used to synchronize state
   transitions with the SPI master.

 * SPI_READY ... defines open drain signal that's pulled low
   to pause the clock.  This defines a 5-wire variant (normal
   4-wire SPI plus READY) and two 4-wire variants (READY plus
   each of the 3-wire flavors).

   Such hardware flow control can be a big win.  There are ADC
   converters and flash chips that expose READY signals, but not
   many host controllers support it today.

The spi_bitbang code should be changed to use SPI_NO_CS instead of its
current nonportable hack.  That's a mode most hardware can easily support
(unlike SPI_READY).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: "Paulraj, Sandeep" <s-paulraj@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-30 18:56:00 -07:00
..
amba-pl022.c [ARM] 5546/1: ARM PL022 SSP/SPI driver v3 2009-06-10 22:39:52 +01:00
atmel_spi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
atmel_spi.h
au1550_spi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
Kconfig spi_mpc8xxx: s/83xx/8xxx/g 2009-06-19 16:46:05 -07:00
Makefile spi_mpc8xxx: s/83xx/8xxx/g 2009-06-19 16:46:05 -07:00
mpc52xx_psc_spi.c mpc52xx_psc_spi: convert to cs_control callback 2009-06-18 13:03:42 -07:00
omap2_mcspi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
omap_uwire.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
orion_spi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
pxa2xx_spi.c pxa2xx_spi: fix for SPI_CS_HIGH 2009-06-18 13:03:42 -07:00
spi_bfin5xx.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi_bitbang.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi_butterfly.c
spi_gpio.c spi-gpio: allow operation without CS signal 2009-04-02 19:04:51 -07:00
spi_imx.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi_lm70llp.c hwmon: (lm70) Code streamlining and cleanup 2009-01-07 16:37:34 +01:00
spi_mpc8xxx.c spi_mpc8xxx: s/83xx/8xxx/g 2009-06-19 16:46:05 -07:00
spi_s3c24xx_gpio.c [ARM] S3C24XX: GPIO: Move gpio functions out of <mach/hardware.h> 2009-05-18 16:25:40 +01:00
spi_s3c24xx.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi_sh_sci.c
spi_txx9.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi.c spi: fix spi_write_then_read() comment 2009-06-18 13:03:42 -07:00
spidev.c spi: new spi->mode bits 2009-06-30 18:56:00 -07:00
tle62x0.c
xilinx_spi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00