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)
commit99f499cd650405bbe6a9b5386d4b11ee81514fb7
tree48882d1cafee7da91e34946f6666104d21b0ff4a
parent7c7289a40425d48bbfcaacc454a8caf5b47f63b0
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