summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@gmx.at>2017-10-08 05:44:10 +0200
committerNico Huber <nico.h@gmx.de>2017-11-04 16:07:23 +0000
commitf0d1173fb4f540b4ac43aa30d6ff232ca74603b7 (patch)
tree2683bce32de7ee3693fce42d95ea9e23cbdc3aed
parenta4b1d5b446ebd26bbd7020b666e8df4944502253 (diff)
downloadflashrom-f0d1173fb4f540b4ac43aa30d6ff232ca74603b7.tar.gz
flashrom-f0d1173fb4f540b4ac43aa30d6ff232ca74603b7.tar.bz2
flashrom-f0d1173fb4f540b4ac43aa30d6ff232ca74603b7.zip
Fix ID of ST M25P05
The (old) ST (now Micron) M25P05 does only support RES for identification. Unfortunately, the vendor datasheet states the same ID as for the M25P10 (0x10) and thus flashrom has treated these two as evil twins in the past. However, real hardware confirmed that the real ID of this chip is 0x05. Change-Id: Idc75f8cb98e7ef0c47c4527cedcc4da3723bd779 Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru> Tested-by: Serge Vasilugin <vasilugin@yandex.ru> Reviewed-on: https://review.coreboot.org/21920 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-on: https://review.coreboot.org/22333
-rw-r--r--flashchips.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/flashchips.h b/flashchips.h
index 28a155d9b..15574bb7f 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -748,9 +748,9 @@
*/
#define ST_ID 0x20 /* ST / SGS/Thomson / Numonyx (later acquired by Micron) */
#define ST_M25P05A 0x2010
-#define ST_M25P05_RES 0x10 /* Same code as M25P10. */
+#define ST_M25P05_RES 0x05
#define ST_M25P10A 0x2011
-#define ST_M25P10_RES 0x10 /* Same code as M25P05. */
+#define ST_M25P10_RES 0x10
#define ST_M25P20 0x2012
#define ST_M25P20_RES 0x11
#define ST_M25P40 0x2013