]> git.karo-electronics.de Git - linux-beck.git/commit
spi: Add Flag to Enable Slave Select with GPIO Chip Select.
authorThor Thayer <tthayer@opensource.altera.com>
Mon, 10 Oct 2016 14:25:24 +0000 (09:25 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 11 Oct 2016 10:29:04 +0000 (12:29 +0200)
commit6b1576aa875347c6454d911a2e001138c2cec7d5
treeab2efceebe210623e9f54e967cec554dfa32bfb3
parent2ce04684335f886fb5adb9ecbd2a85affca549d1
spi: Add Flag to Enable Slave Select with GPIO Chip Select.

Some SPI masters require slave selection before the transfer
can begin [1]. The SPI framework currently selects the chip using
either 1) the internal CS mechanism or 2) the GPIO CS, but not both.

This patch adds a new master->flags define to indicate both the GPIO
CS and the internal chip select mechanism should be used.

Tested On:
    Altera CycloneV development kit
    Compile tested for build errors on x86_64 (allyesconfigs)

[1] DesignWare dw_apb_ssi Databook, Version 3.20a (page 39)

Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
include/linux/spi/spi.h