]> 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)
commited5978a596c458358ac46417d91c78756afd020d
tree7132869782b659c5f1f02f39c79c165e9709913b
parentf4d4e623b789ee371e54bfdb3bda2f659a538e20
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