mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Use address mask in probe_jedec
This allows us to have one common probe_jedec function instead of half a dozen wrappers. The trick here is to have FEATURE_ADDR_FULL==0 and thus default to unmasked addresses. That way, we only have to annotate chips which need small address masks. Corresponding to flashrom svn r840. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com>
This commit is contained in:
6
flash.h
6
flash.h
@ -149,8 +149,10 @@ enum chipbustype {
|
||||
*/
|
||||
#define NUM_ERASEFUNCTIONS 5
|
||||
|
||||
#define FEATURE_REGISTERMAP (1 << 0)
|
||||
#define FEATURE_BYTEWRITES (1 << 1)
|
||||
#define FEATURE_REGISTERMAP (1 << 0)
|
||||
#define FEATURE_BYTEWRITES (1 << 1)
|
||||
#define FEATURE_ADDR_FULL (0 << 2)
|
||||
#define FEATURE_ADDR_MASK (3 << 2)
|
||||
|
||||
struct flashchip {
|
||||
const char *vendor;
|
||||
|
Reference in New Issue
Block a user