[coreboot] r3074 - trunk/util/flashrom
svn at coreboot.org
svn at coreboot.org
Fri Jan 25 02:52:45 CET 2008
Author: hailfinger
Date: 2008-01-25 02:52:45 +0100 (Fri, 25 Jan 2008)
New Revision: 3074
Modified:
trunk/util/flashrom/flash.h
trunk/util/flashrom/flashchips.c
Log:
Add ids and chip entry for Spansion S25FL016A to flashrom, tested,
working.
Signed-off-by: Peter Stuge <peter at stuge.se>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Modified: trunk/util/flashrom/flash.h
===================================================================
--- trunk/util/flashrom/flash.h 2008-01-22 16:09:36 UTC (rev 3073)
+++ trunk/util/flashrom/flash.h 2008-01-25 01:52:45 UTC (rev 3074)
@@ -166,6 +166,14 @@
#define SHARP_LHF00L04 0xCF
/*
+ * Spansion was previously a joint venture of AMD and Fujitsu.
+ * S25 chips are SPI. The first device ID byte is memory type and
+ * the second device ID byte is memory capacity.
+ */
+#define SPANSION_ID 0x01 /* Spansion */
+#define SPANSION_S25FL016A 0x0214
+
+/*
* SST25 chips are SPI, first byte of device ID is memory type, second
* byte of device ID is related to log(bitsize) at least for some chips.
*/
Modified: trunk/util/flashrom/flashchips.c
===================================================================
--- trunk/util/flashrom/flashchips.c 2008-01-22 16:09:36 UTC (rev 3073)
+++ trunk/util/flashrom/flashchips.c 2008-01-25 01:52:45 UTC (rev 3074)
@@ -56,6 +56,8 @@
probe_spi, generic_spi_chip_erase_c7, generic_spi_chip_write, generic_spi_chip_read},
{"MX25L3205", MX_ID, MX_25L3205, 4096, 256,
probe_spi, generic_spi_chip_erase_c7, generic_spi_chip_write, generic_spi_chip_read},
+ {"S25FL016A", SPANSION_ID, SPANSION_S25FL016A, 2048, 256,
+ probe_spi, generic_spi_chip_erase_c7, generic_spi_chip_write, generic_spi_chip_read},
{"SST25VF040B", SST_ID, SST_25VF040B, 512, 256,
probe_spi, generic_spi_chip_erase_c7, generic_spi_chip_write, generic_spi_chip_read},
{"SST25VF016B", SST_ID, SST_25VF016B, 2048, 256,
More information about the coreboot
mailing list