summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorSean Nelson <audiohacked@gmail.com>2010-10-20 21:13:19 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-10-20 21:13:19 +0000
commit52f8f3a971e1f9db1c1c5b08ee65a0eb56227fb5 (patch)
treeff26f6f3a14b86338723f9c9a37bb67e0ec99e34 /flash.h
parent9867ea24e8b6672e94d9cc2283e1c2a0fe7a4ea1 (diff)
downloadflashrom-52f8f3a971e1f9db1c1c5b08ee65a0eb56227fb5.zip
flashrom-52f8f3a971e1f9db1c1c5b08ee65a0eb56227fb5.tar.gz
Add a reset to probe_jedec before we read the Chip's IDs
Previous probes might have had too short delays for entering ID mode, so the chip may still be in the process of entering the ID mode. Due to that, an additional delay before the reset makes sense. Add FEATURE_RESET_MASK to deal cleanly with those feature bits. Maciej Pijanka tested the patch and it fixes probing for him with some old Atmel chips. Tested-by: Maciej Pijanka <maciej.pijanka@gmail.com> Corresponding to flashrom svn r1216. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Anders Juel Jensen <andersjjensen@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index 81fdbd7..700b3f4 100644
--- a/flash.h
+++ b/flash.h
@@ -83,6 +83,7 @@ enum chipbustype {
#define FEATURE_LONG_RESET (0 << 4)
#define FEATURE_SHORT_RESET (1 << 4)
#define FEATURE_EITHER_RESET FEATURE_LONG_RESET
+#define FEATURE_RESET_MASK (FEATURE_LONG_RESET | FEATURE_SHORT_RESET)
#define FEATURE_ADDR_FULL (0 << 2)
#define FEATURE_ADDR_MASK (3 << 2)
#define FEATURE_ADDR_2AA (1 << 2)
OpenPOWER on IntegriCloud