[LinuxBIOS] r2743 - trunk/util/flashrom

svn at openbios.org svn at openbios.org
Sat Aug 11 18:59:11 CEST 2007


Author: uwe
Date: 2007-08-11 18:59:11 +0200 (Sat, 11 Aug 2007)
New Revision: 2743

Modified:
   trunk/util/flashrom/README
   trunk/util/flashrom/board_enable.c
Log:
flashrom: Add board enable for the EPoX EP-BX3.

Signed-off-by: Luc Verhaegen <libv at skynet.be>
Acked-by: Peter Stuge <peter at stuge.se>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>



Modified: trunk/util/flashrom/README
===================================================================
--- trunk/util/flashrom/README	2007-07-27 03:32:45 UTC (rev 2742)
+++ trunk/util/flashrom/README	2007-08-11 16:59:11 UTC (rev 2743)
@@ -54,6 +54,7 @@
 * 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

Modified: trunk/util/flashrom/board_enable.c
===================================================================
--- trunk/util/flashrom/board_enable.c	2007-07-27 03:32:45 UTC (rev 2742)
+++ trunk/util/flashrom/board_enable.c	2007-08-11 16:59:11 UTC (rev 2743)
@@ -261,6 +261,25 @@
 	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 @@
 	 "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 */
 };
 





More information about the coreboot mailing list