* https://openbios.org/roundup/linuxbios/issue96 - SST_49LF040B flash support for flashrom
* https://openbios.org/roundup/linuxbios/issue99 - add ICH4-M support to flashrom

both from scott.tsai <AT> arima.com.tw



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2230 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
diff --git a/util/flashrom/flash.h b/util/flashrom/flash.h
index c43df87..3e67e18 100644
--- a/util/flashrom/flash.h
+++ b/util/flashrom/flash.h
@@ -43,6 +43,7 @@
 #define SST_28SF040       0x04	/* SST 29EE040 device code    */
 #define SST_39SF020       0xB6	/* SST 39SF020  device        */
 #define SST_39VF020       0xD6	/* SST 39VF020  device        */
+#define SST_49LF040B	  0x50	/* SST 49LF040B device */
 #define SST_49LF040	  0x51	/* SST 49LF040 device */
 #define SST_49LF080A	  0x5B	/* SST 48LF080A device */
 #define SST_49LF002A	  0x57	/* SST 49LF002A device */
diff --git a/util/flashrom/flash_enable.c b/util/flashrom/flash_enable.c
index 8334b6d..d03a36b 100644
--- a/util/flashrom/flash_enable.c
+++ b/util/flashrom/flash_enable.c
@@ -385,6 +385,7 @@
 	{0x1039, 0x0630, "sis630", enable_flash_sis630},
 	{0x8086, 0x2480, "E7500", enable_flash_e7500},
 	{0x8086, 0x24c0, "ICH4", enable_flash_ich4},
+	{0x8086, 0x24cc, "ICH4-M", enable_flash_ich4},
 	{0x8086, 0x24d0, "ICH5", enable_flash_ich4},
 	{0x8086, 0x27b8, "ICH7", enable_flash_ich7},
 	{0x1106, 0x8231, "VT8231", enable_flash_vt8231},
diff --git a/util/flashrom/flashchips.c b/util/flashrom/flashchips.c
index 9a4b71a..c7a2cb5 100644
--- a/util/flashrom/flashchips.c
+++ b/util/flashrom/flashchips.c
@@ -56,6 +56,10 @@
 	 probe_jedec,	erase_chip_jedec, write_39sf020,NULL},
 	{"SST39VF020",	SST_ID,		SST_39VF020,	NULL, 256, 4096,
 	 probe_jedec,	erase_chip_jedec, write_39sf020,NULL},
+// assume similar to 004B, ignoring data sheet
+	{"SST49LF040B",	SST_ID,		SST_49LF040B, 	NULL, 512, 64 * 1024,
+	 probe_sst_fwhub, erase_sst_fwhub, write_sst_fwhub,NULL},
+
 	{"SST49LF040",	SST_ID,		SST_49LF040, 	NULL, 512, 4096,
 	 probe_jedec, 	erase_49lf040, write_49lf040,NULL},
 	{"SST49LF080A",	SST_ID,		SST_49LF080A,	NULL, 1024, 4096,