diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-01-09 03:15:50 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-01-09 03:15:50 +0000 |
commit | 4bf4e79907d4147a37639a32e1bce2c9eaea20b7 (patch) | |
tree | b1fd1a430202e2818df3bd4ff6168ded03d625c5 /flash.h | |
parent | e9404668a19701ace750148624378461bc9fece5 (diff) | |
download | flashrom-4bf4e79907d4147a37639a32e1bce2c9eaea20b7.tar.gz flashrom-4bf4e79907d4147a37639a32e1bce2c9eaea20b7.tar.bz2 flashrom-4bf4e79907d4147a37639a32e1bce2c9eaea20b7.zip |
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>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |