]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw-pci: describe Intel MID controllers better
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 7 Jan 2015 15:15:00 +0000 (17:15 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 7 Jan 2015 18:01:06 +0000 (18:01 +0000)
commitcd262abd1402b11467ec34c1d55e945d2fd55947
tree7132869782b659c5f1f02f39c79c165e9709913b
parent5de3353188e0fca21767aff4979ab21ea8cfaced
spi: dw-pci: describe Intel MID controllers better

There are more that one SPI controller on the Intel MID boards. This patch
describes the status and IDs of them. From now on we also have to care about
bus number that must be unique per host.

According to the specification the SPI1 has 5 bits for chip selects and SPI2
only 2 bits. The patch makes it depend to PCI ID.

The first controller (SPI1) is DMA capable, meanwhile SPI2 can share same
channels (via software switch) such functionality is not in the scope of this
patch. Thus, attempt to init DMA for SPI2 will always fail for now.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/x86/pci/intel_mid_pci.c
drivers/spi/spi-dw-mid.c
drivers/spi/spi-dw-pci.c