Luc Verhaegen has uploaded this change for review.

View Change

ati: add hawaii family

Change-Id: Idaf243422aa1b940b2da51551f4f20ec81eb4ac0
Signed-off-by: Luc Verhaegen <libv@skynet.be>
---
M ati_spi.c
1 file changed, 24 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/15/29215/1
diff --git a/ati_spi.c b/ati_spi.c
index 790ee2f..f327da1 100644
--- a/ati_spi.c
+++ b/ati_spi.c
@@ -34,7 +34,8 @@
ATI_SPI_TYPE_EVERGREEN,
ATI_SPI_TYPE_NORTHERN_ISLAND,
ATI_SPI_TYPE_SOUTHERN_ISLAND,
- ATI_SPI_TYPE_BONAIRE,
+ ATI_SPI_TYPE_BONAIRE, /* First of sea island type spi interface */
+ ATI_SPI_TYPE_HAWAII,
};

struct ati_spi_pci_private {
@@ -756,6 +757,18 @@
.master = &ci_spi_master,
};

+/*
+ * Used by Hawaii
+ */
+static const struct ati_spi_pci_private hawaii_spi_pci_private = {
+ .io_bar = CI_MMIO_BAR,
+ .type = ATI_SPI_TYPE_HAWAII,
+ .save = ci_spi_save,
+ .restore = ci_spi_restore,
+ .enable = ci_spi_enable,
+ .master = &ci_spi_master,
+};
+
const struct flashrom_pci_match ati_spi_pci_devices[] = {
{0x1002, 0x6640, NT, &bonaire_spi_pci_private},
{0x1002, 0x6641, NT, &bonaire_spi_pci_private},
@@ -806,6 +819,16 @@
{0x1002, 0x6778, NT, &northern_island_spi_pci_private},
{0x1002, 0x6779, NT, &northern_island_spi_pci_private},
{0x1002, 0x677B, NT, &northern_island_spi_pci_private},
+ {0x1002, 0x67A0, NT, &hawaii_spi_pci_private},
+ {0x1002, 0x67A1, NT, &hawaii_spi_pci_private},
+ {0x1002, 0x67A2, NT, &hawaii_spi_pci_private},
+ {0x1002, 0x67A8, NT, &hawaii_spi_pci_private},
+ {0x1002, 0x67A9, NT, &hawaii_spi_pci_private},
+ {0x1002, 0x67AA, NT, &hawaii_spi_pci_private},
+ {0x1002, 0x67B0, NT, &hawaii_spi_pci_private},
+ {0x1002, 0x67B1, NT, &hawaii_spi_pci_private},
+ {0x1002, 0x67B9, NT, &hawaii_spi_pci_private},
+ {0x1002, 0x67BE, NT, &hawaii_spi_pci_private},
{0x1002, 0x6840, NT, &southern_island_spi_pci_private},
{0x1002, 0x6841, NT, &southern_island_spi_pci_private},
{0x1002, 0x6842, NT, &southern_island_spi_pci_private},

To view, visit change 29215. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idaf243422aa1b940b2da51551f4f20ec81eb4ac0
Gerrit-Change-Number: 29215
Gerrit-PatchSet: 1
Gerrit-Owner: Luc Verhaegen <libv@skynet.be>