summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2007-08-11 16:59:11 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-08-11 16:59:11 +0000
commit4d43255bef8ca14f707c1e21dd42d8a6afdf991c (patch)
tree9a6c1588f9aea36d8bfeb6b86a92353f81cb9412
parent7ab22686b8f0e018dff299c50ff775880f018d38 (diff)
downloadcoreboot-4d43255bef8ca14f707c1e21dd42d8a6afdf991c.tar.xz
flashrom: Add board enable for the EPoX EP-BX3.
Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Peter Stuge <peter@stuge.se> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2743 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/flashrom/README1
-rw-r--r--util/flashrom/board_enable.c21
2 files changed, 22 insertions, 0 deletions
diff --git a/util/flashrom/README b/util/flashrom/README
index 8aec2a0483..12be20dcf9 100644
--- a/util/flashrom/README
+++ b/util/flashrom/README
@@ -54,6 +54,7 @@ no LinuxBIOS table is found:
* Agami Aruma: use -m AGAMI:ARUMA
* ASUS P5A: use -m asus:p5a
* IBM x3455: use -m ibm:x3455
+* EPoX EP-BX3: use -m epox:ep-bx3
ROM Layout Support
diff --git a/util/flashrom/board_enable.c b/util/flashrom/board_enable.c
index 5a755614be..429c86b1f4 100644
--- a/util/flashrom/board_enable.c
+++ b/util/flashrom/board_enable.c
@@ -261,6 +261,25 @@ static int board_ibm_x3455(const char *name)
return 0;
}
+/**
+ * Suited for EPoX EP-BX3, and maybe some other Intel 440BX based boards.
+ */
+static int board_epox_ep_bx3(const char *name)
+{
+ uint8_t tmp;
+
+ /* Raise GPIO22. */
+ tmp = inb(0x4036);
+ outb(tmp, 0xEB);
+
+ tmp |= 0x40;
+
+ outb(tmp, 0x4036);
+ outb(tmp, 0xEB);
+
+ return 0;
+}
+
/*
* We use 2 sets of ids here, you're free to choose which is which. This
* to provide a very high degree of certainty when matching a board on
@@ -309,6 +328,8 @@ struct board_pciid_enable board_pciid_enables[] = {
"asus", "p5a", "ASUS P5A", board_asus_p5a},
{0x1166, 0x0205, 0x1014, 0x0347, 0x0000, 0x0000, 0x0000, 0x0000,
"ibm", "x3455", "IBM x3455", board_ibm_x3455},
+ {0x8086, 0x7110, 0x0000, 0x0000, 0x8086, 0x7190, 0x0000, 0x0000,
+ "epox", "ep-bx3", "EPoX EP-BX3", board_epox_ep_bx3},
{0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL} /* Keep this */
};