This patch adds SB700 support to flashrom and fixes a small compilation error 
for GCC 4.3.2. The code for enabling the flash rom is the same as for SB600. 
It was tested (read, write, verify) with an ASUS M3A-H/HDMI which contains a 
Macronix MX25L8005.

Signed-off-by: Niels Ole Salscheider <[EMAIL PROTECTED]>
---
Index: chipset_enable.c
===================================================================
--- chipset_enable.c	(Revision 3797)
+++ chipset_enable.c	(Arbeitskopie)
@@ -910,6 +910,7 @@
 	{0x1022, 0x2080, "AMD CS5536",		enable_flash_cs5536},
 	{0x1022, 0x7468, "AMD8111",		enable_flash_amd8111},
 	{0x1002, 0x438D, "ATI(AMD) SB600",	enable_flash_sb600},
+	{0x1002, 0x439D, "ATI(AMD) SB700",	enable_flash_sb600},
 	{0x10B9, 0x1533, "ALi M1533",		enable_flash_ali_m1533},
 	{0x10de, 0x0050, "NVIDIA CK804",	enable_flash_ck804}, /* LPC */
 	{0x10de, 0x0051, "NVIDIA CK804",	enable_flash_ck804}, /* Pro */
Index: flashrom.c
===================================================================
--- flashrom.c	(Revision 3797)
+++ flashrom.c	(Arbeitskopie)
@@ -548,7 +548,7 @@
 			if (0xff != buf[erasedbytes]) {
 				printf("FAILED!\n");
 				fprintf(stderr, "ERROR at 0x%08x: Expected=0xff, Read=0x%02x\n",
-					erasedbytes, buf[erasedbytes]);
+					(uint) erasedbytes, buf[erasedbytes]);
 				return 1;
 			}
 		printf("SUCCESS.\n");

Attachment: signature.asc
Description: This is a digitally signed message part.

--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to