]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6ba07a1f736d64ac7fcab8597fbee41ad5dfe00
tree4a2b3ec73e6eb564f6cbf0630dea7933f0fce806
parent81e0e7134ab085ac5d0890177bfed38a0f2be4f8
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