I didn't prepend this with [PATCH] yet, as i still need to verify this change on an epia-m with its original bios...
This patch adds support for the Epox 8k5a2 motherboard as owned by Kevin Sopp (CC). His lspci is attached for future reference. Kevin still needs to try this code too. His board is properly matched by pci subsystem ids, as there is one proper epox id in there, and the other id was copied from the device id (which is already better than leaving it blank).
This motherboard requires just the MEMW# on the winbond superio to be raised for it to work. 2 more boards with vt823x need this as well.
There are two other functions needed by other vt823x based boards; * raising a vt823x gpio line (used 2x). * enabling memory writes to always hit lpc on vt823x (used 2x).
By putting this code into separate functions, the vt823x board enables become very simple, with only the msi on still needing to poke a single pci bit on its own.
Luc Verhaegen.
On Thu, May 07, 2009 at 07:14:03PM +0200, Luc Verhaegen wrote:
I didn't prepend this with [PATCH] yet, as i still need to verify this change on an epia-m with its original bios...
This patch adds support for the Epox 8k5a2 motherboard as owned by Kevin Sopp (CC). His lspci is attached for future reference. Kevin still needs to try this code too. His board is properly matched by pci subsystem ids, as there is one proper epox id in there, and the other id was copied from the device id (which is already better than leaving it blank).
Kevin just confirmed on irc that this is working for his board. The epia-m test will sadly have to wait until tomorrow.
Luc Verhaegen.
On Thu, May 07, 2009 at 07:14:03PM +0200, Luc Verhaegen wrote:
@@ -152,6 +152,65 @@ }
/**
- w83627: Enable MEMW# and set ROM size to max.
- */
+static void w8326xx_memw_enable(uint16_t index) +{
- w836xx_ext_enter(index);
- if (!(wbsio_read(index, 0x24) & 0x02)) { /* Flash ROM enabled? */
/* Enable MEMW# and set ROM size select to max. (4M). */
wbsio_mask(0x2e, 0x24, 0x28, 0x28);
- }
- w836xx_ext_leave(index);
+}
^^^^ Eagle-eyed Uwe caught this here. ... And now, as i was typing this email, he also spotted the fact that the function name is wrong...
Fixed locally, will send in with [PATCH] after testing on the epia-m (unless more things are found).
Thanks!
Luc Verhaegen.
Luc Verhaegen wrote:
This patch adds support for the Epox 8k5a2 motherboard
All good with the fixes you've mentioned.
Acked-by: Peter Stuge peter@stuge.se
On Tue, May 12, 2009 at 02:01:19AM +0200, Peter Stuge wrote:
Luc Verhaegen wrote:
This patch adds support for the Epox 8k5a2 motherboard
All good with the fixes you've mentioned.
Acked-by: Peter Stuge peter@stuge.se
An updated version of the patch was already committed in r490, see mails with subject "[PATCH] flashrom: Add EPOX 8k5a2".
Uwe.