summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi-nor/intel-spi-pci.c
diff options
context:
space:
mode:
authorJethro Beekman <jethro@fortanix.com>2019-09-04 01:15:24 +0000
committerTudor Ambarus <tudor.ambarus@microchip.com>2019-10-23 09:27:18 +0300
commit4b97ba73dcdc24fd968cbeb970ae57212e2c1c73 (patch)
tree8699ecccfaecd80bcfbfc90e2dd514bade783fd0 /drivers/mtd/spi-nor/intel-spi-pci.c
parent3912970809cfbc005bf0b404b9d286a95def694e (diff)
downloadlwn-4b97ba73dcdc24fd968cbeb970ae57212e2c1c73.tar.gz
lwn-4b97ba73dcdc24fd968cbeb970ae57212e2c1c73.zip
mtd: spi-nor: intel-spi: add support for Intel Cannon Lake SPI flash
Now that SPI flash controllers without a software sequencer are supported, it's trivial to add support for CNL and its PCI ID. Values from https://www.intel.com/content/dam/www/public/us/en/documents/datasheets/300-series-chipset-pch-datasheet-vol-2.pdf Signed-off-by: Jethro Beekman <jethro@fortanix.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Diffstat (limited to 'drivers/mtd/spi-nor/intel-spi-pci.c')
-rw-r--r--drivers/mtd/spi-nor/intel-spi-pci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/spi-nor/intel-spi-pci.c b/drivers/mtd/spi-nor/intel-spi-pci.c
index 3cda8e7a68f8..581d154796c1 100644
--- a/drivers/mtd/spi-nor/intel-spi-pci.c
+++ b/drivers/mtd/spi-nor/intel-spi-pci.c
@@ -20,6 +20,10 @@ static const struct intel_spi_boardinfo bxt_info = {
.type = INTEL_SPI_BXT,
};
+static const struct intel_spi_boardinfo cnl_info = {
+ .type = INTEL_SPI_CNL,
+};
+
static int intel_spi_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
@@ -68,6 +72,7 @@ static const struct pci_device_id intel_spi_pci_ids[] = {
{ PCI_VDEVICE(INTEL, 0xa0a4), (unsigned long)&bxt_info },
{ PCI_VDEVICE(INTEL, 0xa1a4), (unsigned long)&bxt_info },
{ PCI_VDEVICE(INTEL, 0xa224), (unsigned long)&bxt_info },
+ { PCI_VDEVICE(INTEL, 0xa324), (unsigned long)&cnl_info },
{ },
};
MODULE_DEVICE_TABLE(pci, intel_spi_pci_ids);