spi: spi-pxa2xx-pci: Add ID and driver type for WildcatPoint PCH
authorLeif Liddy <leif.liddy@gmail.com>
Sat, 20 Feb 2016 19:20:22 +0000 (20:20 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 20 Feb 2016 20:01:12 +0000 (05:01 +0900)
WildcatPoint PCH as seen on MacBook 12-inch (Early 2015) has a PCI enabled
SPI controller. Enable it by adding its ID to the corresponding driver.
The ACPI enumerated name for this SPI controller (found in spi-pxa2xx.c) is INT33C1.
Therefore, we associate the SPI controller with the corresponding type of LPSS_LPT_SSP.

Signed-off-by: Leif Liddy <leif.liddy@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx-pci.c

index d19d7f28aecb3c5ac9ca6409fc9c8e2e5f7fc180..520ed1dd57804320859bbef42fa5e15f6a487213 100644 (file)
@@ -19,6 +19,7 @@ enum {
        PORT_BSW1,
        PORT_BSW2,
        PORT_QUARK_X1000,
+       PORT_LPT,
 };
 
 struct pxa_spi_info {
@@ -42,6 +43,9 @@ static struct dw_dma_slave bsw1_rx_param = { .src_id = 7 };
 static struct dw_dma_slave bsw2_tx_param = { .dst_id = 8 };
 static struct dw_dma_slave bsw2_rx_param = { .src_id = 9 };
 
+static struct dw_dma_slave lpt_tx_param = { .dst_id = 0 };
+static struct dw_dma_slave lpt_rx_param = { .src_id = 1 };
+
 static bool lpss_dma_filter(struct dma_chan *chan, void *param)
 {
        struct dw_dma_slave *dws = param;
@@ -98,6 +102,14 @@ static struct pxa_spi_info spi_info_configs[] = {
                .num_chipselect = 1,
                .max_clk_rate = 50000000,
        },
+       [PORT_LPT] = {
+               .type = LPSS_LPT_SSP,
+               .port_id = 0,
+               .num_chipselect = 1,
+               .max_clk_rate = 50000000,
+               .tx_param = &lpt_tx_param,
+               .rx_param = &lpt_rx_param,
+       },
 };
 
 static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
@@ -202,6 +214,7 @@ static const struct pci_device_id pxa2xx_spi_pci_devices[] = {
        { PCI_VDEVICE(INTEL, 0x228e), PORT_BSW0 },
        { PCI_VDEVICE(INTEL, 0x2290), PORT_BSW1 },
        { PCI_VDEVICE(INTEL, 0x22ac), PORT_BSW2 },
+       { PCI_VDEVICE(INTEL, 0x9ce6), PORT_LPT },
        { },
 };
 MODULE_DEVICE_TABLE(pci, pxa2xx_spi_pci_devices);
This page took 0.026025 seconds and 5 git commands to generate.