summaryrefslogtreecommitdiffstats
path: root/features/valleyisland-io/0018-spi-pxa2xx-pci-Add-support-for-Intel-BYT-SPI.patch
blob: 72bc4fa6d3deb2bdba7efbbaf155d902c0f21ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From 5c32b4a8e7e6d66521f125fc0cb01403b9de8e62 Mon Sep 17 00:00:00 2001
From: Chew, Chiau Ee <chiau.ee.chew@intel.com>
Date: Thu, 23 Jan 2014 05:43:17 +0800
Subject: [PATCH 18/19] spi/pxa2xx-pci: Add support for Intel BYT SPI

This is enable the PCI mode support for Intel
BYT SPI controller.

This commit is created in reference to  Mika Westerberg's
previous work.

Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
---
 drivers/spi/spi-pxa2xx-pci.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c
index ea42179..4643f70 100644
--- a/drivers/spi/spi-pxa2xx-pci.c
+++ b/drivers/spi/spi-pxa2xx-pci.c
@@ -11,6 +11,7 @@
 
 enum {
 	PORT_CE4100,
+	PORT_BYT,
 };
 
 struct pxa2xx_spi_pci_config {
@@ -25,6 +26,11 @@ static struct pxa2xx_spi_pci_config spi_pci_configs[] = {
 		.num_cs =  -1,
 		.bus_num = -1,
 	},
+	[PORT_BYT] = {
+		.type = LPSS_SSP,
+		.num_cs = 1,
+		.bus_num = 0,
+	},
 };
 
 static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
@@ -94,6 +100,8 @@ static void pxa2xx_spi_pci_remove(struct pci_dev *dev)
 static DEFINE_PCI_DEVICE_TABLE(pxa2xx_spi_pci_devices) = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x2e6a),
 	  .driver_data =  PORT_CE4100 },
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0f0e),
+	  .driver_data = PORT_BYT },
 	{ },
 };
 MODULE_DEVICE_TABLE(pci, pxa2xx_spi_pci_devices);
-- 
1.7.4.4