diff options
author | Sean Nelson <audiohacked@gmail.com> | 2010-10-20 21:13:19 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-10-20 21:13:19 +0000 |
commit | 52f8f3a971e1f9db1c1c5b08ee65a0eb56227fb5 (patch) | |
tree | ff26f6f3a14b86338723f9c9a37bb67e0ec99e34 /flash.h | |
parent | 9867ea24e8b6672e94d9cc2283e1c2a0fe7a4ea1 (diff) | |
download | flashrom-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |