]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx: Add support for GPIO descriptor chip selects
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 26 Sep 2016 12:19:50 +0000 (15:19 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 26 Sep 2016 16:11:14 +0000 (09:11 -0700)
commitea914afc0c2e5cb34505ac651de5b7313653fa50
tree48882d1cafee7da91e34946f6666104d21b0ff4a
parentdaee37584ddca60f0217d636bc7cfb76d1202f37
spi: pxa2xx: Add support for GPIO descriptor chip selects

The driver uses custom chip_info coming from platform data for chip selects
implemented as GPIOs. If the system lacks board files setting up the
platform data, it is not possible to use GPIOs as chip selects.

This adds support for GPIO descriptors so that regardless of the underlying
firmware interface (DT, ACPI or platform data) the driver can request GPIOs
used as chip selects and configure them accordingly.

The custom chip_info GPIO support is still left there to make sure the
existing systems keep working as expected.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.h