spi: orion: Handle GPIO chip-selects
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Tue, 23 May 2017 04:03:21 +0000 (16:03 +1200)
committerMark Brown <broonie@kernel.org>
Wed, 24 May 2017 17:02:43 +0000 (18:02 +0100)
commitb28b9149b37f909a05f1e06e5a8b262a519dbd2b
tree4a2b3ec73e6eb564f6cbf0630dea7933f0fce806
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
spi: orion: Handle GPIO chip-selects

Some hardware designs use GPIOs to add (or supplement) the SPI
chip-select so that more than one SPI slave device can be used.

For this to work with the spi-orion driver the SPI_MASTER_GPIO_SS flag
needs to be set (because the other outputs are gated internally by the
CS) and the correct chip-select (in this case CS0) needs to be driven by
the controller.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-orion.c