mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 06:01:16 +02:00
Add detailed status register printing and unlocking for all ATMEL AT25* chips
Add support for Atmel AT25DF081A and AT25DQ161. Some chips require EWSR before WRSR, others require WREN before WRSR, and some support both variants. Add feature_bits to select the correct SPI command, and default to EWSR. Corresponding to flashrom svn r1115. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Tested-by: Steven Rosario Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
6
flash.h
6
flash.h
@ -69,8 +69,9 @@ enum chipbustype {
|
||||
|
||||
/*
|
||||
* How many different erase functions do we have per chip?
|
||||
* Atmel AT25FS010 has 6 different functions.
|
||||
*/
|
||||
#define NUM_ERASEFUNCTIONS 5
|
||||
#define NUM_ERASEFUNCTIONS 6
|
||||
|
||||
#define FEATURE_REGISTERMAP (1 << 0)
|
||||
#define FEATURE_BYTEWRITES (1 << 1)
|
||||
@ -82,6 +83,9 @@ enum chipbustype {
|
||||
#define FEATURE_ADDR_2AA (1 << 2)
|
||||
#define FEATURE_ADDR_AAA (2 << 2)
|
||||
#define FEATURE_ADDR_SHIFTED (1 << 5)
|
||||
#define FEATURE_WRSR_EWSR (1 << 6)
|
||||
#define FEATURE_WRSR_WREN (1 << 7)
|
||||
#define FEATURE_WRSR_EITHER (FEATURE_WRSR_EWSR | FEATURE_WRSR_WREN)
|
||||
|
||||
struct flashchip {
|
||||
const char *vendor;
|
||||
|
Reference in New Issue
Block a user