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>
Fri, 21 Oct 2016 11:09:30 +0000 (12:09 +0100)
commit8eee6b9dd30d5b20a4c31886057a68bb6a2736c9
tree8d10e86d7f5575015b7316619369d75a70b831a6
parent1001354ca34179f3db924eb66672442a173147dc
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