summaryrefslogtreecommitdiffstats
path: root/board_enable.c
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2009-07-06 22:58:46 +0000
committerLuc Verhaegen <libv@skynet.be>2009-07-06 22:58:46 +0000
commit2f1d0a500a8d03f014768b3ce2964638b8f41ec0 (patch)
tree30936c739d6680e13267895cff06742f99263c66 /board_enable.c
parentef016f5cc3c8a51d976d437347367f4cd86bccd9 (diff)
downloadast2050-flashrom-2f1d0a500a8d03f014768b3ce2964638b8f41ec0.zip
ast2050-flashrom-2f1d0a500a8d03f014768b3ce2964638b8f41ec0.tar.gz
Board enable for Abit IP35
Raise GPIO 16 on ICH9R LPC Interface. Corresponding to flashrom svn r642. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Richie Ward <RichieS@GMail.com>
Diffstat (limited to 'board_enable.c')
-rw-r--r--board_enable.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/board_enable.c b/board_enable.c
index 9677f10..c3050a1 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -806,6 +806,32 @@ static int board_mitac_6513wu(const char *name)
}
/**
+ * Suited for Abit IP35: Intel P35 + ICH9R.
+ */
+static int board_abit_ip35(const char *name)
+{
+ struct pci_dev *dev;
+ uint16_t base;
+ uint8_t tmp;
+
+ dev = pci_dev_find(0x8086, 0x2916); /* Intel ICH9R LPC Interface */
+ if (!dev) {
+ fprintf(stderr, "\nERROR: Intel ICH9R LPC not found.\n");
+ return -1;
+ }
+
+ /* get LPC GPIO base */
+ base = pci_read_long(dev, 0x48) & 0x0000FFC0;
+
+ /* Raise GPIO 16 */
+ tmp = INB(base + 0x0E);
+ tmp |= 0x01;
+ OUTB(tmp, base + 0x0E);
+
+ return 0;
+}
+
+/**
* We use 2 sets of IDs here, you're free to choose which is which. This
* is to provide a very high degree of certainty when matching a board on
* the basis of subsystem/card IDs. As not every vendor handles
@@ -828,6 +854,7 @@ static int board_mitac_6513wu(const char *name)
/* Please keep this list alphabetically ordered by vendor/board name. */
struct board_pciid_enable board_pciid_enables[] = {
/* first pci-id set [4], second pci-id set [4], coreboot id [2], vendor name board name flash enable */
+ {0x8086, 0x2926, 0x147b, 0x1084, 0x11ab, 0x4364, 0x147b, 0x1084, NULL, NULL, "Abit", "IP35", board_abit_ip35},
{0x8086, 0x1130, 0, 0, 0x105a, 0x0d30, 0x105a, 0x4d33, "acorp", "6a815epd", "Acorp", "6A815EPD", board_acorp_6a815epd},
{0x1022, 0x746B, 0x1022, 0x36C0, 0, 0, 0, 0, "AGAMI", "ARUMA", "agami", "Aruma", w83627hf_gpio24_raise_2e},
{0x1106, 0x3177, 0x17F2, 0x3177, 0x1106, 0x3148, 0x17F2, 0x3148, NULL, NULL, "Albatron", "PM266A*", board_epox_ep_8k5a2},
OpenPOWER on IntegriCloud