linux-xiaomi-chiron/include/linux/spi
wangyuhang f477b7fb13 spi: DUAL and QUAD support
fix the previous patch some mistake below:
1. DT in slave node, use "spi-tx-nbits = <1/2/4>" in place of using
   "spi-tx-dual, spi-tx-quad" directly, same to rx. So correct the
   previous way to get the property in @of_register_spi_devices().
2. Change the value of transfer bit macro(SPI_NBITS_SINGLE, SPI_NBITS_DUAL
   SPI_NBITS_QUAD) to 0x01, 0x02 and 0x04 to match the actual wires.
3. Add the following check
   (1)keep the tx_nbits and rx_nbits in spi_transfer is not beyond the
      single, dual and quad.
   (2)keep tx_nbits and rx_nbits are contained by @spi_device->mode
      example: if @spi_device->mode = DUAL, then tx/rx_nbits can not be set
               to QUAD(SPI_NBITS_QUAD)
   (3)if "@spi_device->mode & SPI_3WIRE", then tx/rx_nbits should be in
      single(SPI_NBITS_SINGLE)

Signed-off-by: wangyuhang <wangyuhang2014@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-22 13:47:29 +01:00
..
74x164.h gpio/74x164: remove unnecessary defines and prototype 2011-06-03 12:14:16 -06:00
ad7877.h
ad7879.h Input: ad7879 - add option to correct xy axis 2012-07-06 19:12:26 -07:00
ads7846.h Input: ads7846 - enable pendown GPIO debounce time setting 2012-11-21 13:09:56 -08:00
at73c213.h
at86rf230.h at86rf230: add irq type configuration option 2013-04-16 16:34:07 -04:00
corgi_lcd.h
ds1305.h
eeprom.h Support M95040 SPI EEPROM 2012-04-18 14:57:57 -07:00
flash.h
ifx_modem.h
l4f00242t03.h backlight: fix broken regulator API usage in l4f00242t03 2011-10-31 17:30:54 -07:00
libertas_spi.h
lms283gf05.h
max7301.h
mc33880.h
mcp23s08.h mcp23s08: get rid of setup/teardown callbacks 2011-07-15 13:54:17 -06:00
mmc_spi.h device.h: audit and cleanup users in main include dir 2012-03-16 10:38:24 -04:00
mxs-spi.h spi: mxs-spi: move to use generic DMA helper 2013-04-04 21:22:44 +08:00
pxa2xx_spi.h spi/pxa2xx: add support for Intel Low Power Subsystem SPI 2013-02-08 13:14:40 +00:00
rspi.h spi/rspi: add dmaengine support 2012-05-19 22:37:16 -06:00
s3c24xx.h ARM: S3C24XX: move spi-s3c24xx platdata out of mach 2012-01-31 20:06:27 +09:00
sh_hspi.h spi: sh-hspi: control spi clock more correctly 2012-03-15 03:41:01 -06:00
sh_msiof.h
spi.h spi: DUAL and QUAD support 2013-08-22 13:47:29 +01:00
spi_bitbang.h
spi_gpio.h spi: spi-gpio: fix compilation warning on 64 bits systems 2013-01-31 18:25:44 +08:00
spi_oc_tiny.h
tdo24m.h
tle62x0.h
tsc2005.h spi: tsc2005: delete soon-obsolete e-mail address 2012-10-17 16:32:46 +09:00
xilinx_spi.h spi: spi-xilinx: Add run run-time endian detection 2013-06-04 18:37:35 +01:00