Skip to content

Commit caba248

Browse files
leifliddybroonie
authored andcommitted
spi: spi-pxa2xx-pci: Add ID and driver type for WildcatPoint PCH
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>
1 parent 7c04b79 commit caba248

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/spi/spi-pxa2xx-pci.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ enum {
1919
PORT_BSW1,
2020
PORT_BSW2,
2121
PORT_QUARK_X1000,
22+
PORT_LPT,
2223
};
2324

2425
struct pxa_spi_info {
@@ -42,6 +43,9 @@ static struct dw_dma_slave bsw1_rx_param = { .src_id = 7 };
4243
static struct dw_dma_slave bsw2_tx_param = { .dst_id = 8 };
4344
static struct dw_dma_slave bsw2_rx_param = { .src_id = 9 };
4445

46+
static struct dw_dma_slave lpt_tx_param = { .dst_id = 0 };
47+
static struct dw_dma_slave lpt_rx_param = { .src_id = 1 };
48+
4549
static bool lpss_dma_filter(struct dma_chan *chan, void *param)
4650
{
4751
struct dw_dma_slave *dws = param;
@@ -98,6 +102,14 @@ static struct pxa_spi_info spi_info_configs[] = {
98102
.num_chipselect = 1,
99103
.max_clk_rate = 50000000,
100104
},
105+
[PORT_LPT] = {
106+
.type = LPSS_LPT_SSP,
107+
.port_id = 0,
108+
.num_chipselect = 1,
109+
.max_clk_rate = 50000000,
110+
.tx_param = &lpt_tx_param,
111+
.rx_param = &lpt_rx_param,
112+
},
101113
};
102114

103115
static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
@@ -202,6 +214,7 @@ static const struct pci_device_id pxa2xx_spi_pci_devices[] = {
202214
{ PCI_VDEVICE(INTEL, 0x228e), PORT_BSW0 },
203215
{ PCI_VDEVICE(INTEL, 0x2290), PORT_BSW1 },
204216
{ PCI_VDEVICE(INTEL, 0x22ac), PORT_BSW2 },
217+
{ PCI_VDEVICE(INTEL, 0x9ce6), PORT_LPT },
205218
{ },
206219
};
207220
MODULE_DEVICE_TABLE(pci, pxa2xx_spi_pci_devices);

0 commit comments

Comments
 (0)