spi: pxa2xx: Add support for both chip selects on Intel Braswell
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 8 Feb 2016 15:14:31 +0000 (17:14 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 9 Feb 2016 19:01:11 +0000 (19:01 +0000)
commit30f3a6ab44d8d06bb3d94f6320e4aa76df59d025
tree123be907145582b282d6054f163c14ec4ddc65aa
parentc1e4a53c6b8161ded3a44e3352ef38206d0967ea
spi: pxa2xx: Add support for both chip selects on Intel Braswell

Intel Braswell LPSS SPI controller actually has two chip selects and there
is no capabilities register where this could be found out. These two chip
selects are controlled by bits which are in slightly differrent location
than Broxton has.

Braswell Windows driver also starts chip select (ACPI DeviceSelection)
numbering from 1 so translate it to be suitable for Linux as well.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c
include/linux/pxa2xx_ssp.h