From f59e2637d184eef8e3ef8914ac500161804fc526 Mon Sep 17 00:00:00 2001 From: Sean Nelson Date: Wed, 20 Oct 2010 21:13:19 +0000 Subject: 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. Corresponding to flashrom svn r1216. Signed-off-by: Sean Nelson Signed-off-by: Carl-Daniel Hailfinger Acked-by: Anders Juel Jensen Tested-by: Maciej Pijanka Acked-by: Sean Nelson --- flash.h | 1 + 1 file changed, 1 insertion(+) (limited to 'flash.h') diff --git a/flash.h b/flash.h index 81fdbd7d..700b3f4f 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) -- cgit v1.2.3