mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 06:01:16 +02:00
Fix FEATURE_NO_ERASE chips and add test for them
New check was added to `check_block_eraser` in
commit 0f389aea9e
but it was not
handling FEATURE_NO_ERASE chips.
This patch fixes processing such chips and adds test to run
write and verify with dummyflasher for FEATURE_NO_ERASE chips.
Ticket: https://ticket.coreboot.org/issues/553
Change-Id: I582fe00da0715e9b5e92fcc9d15d5a90a2615117
Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/84203
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
This commit is contained in:
@ -148,6 +148,14 @@ enum write_granularity {
|
||||
* other flash chips, such as the ENE KB9012 internal flash, work the opposite way.
|
||||
*/
|
||||
#define FEATURE_ERASED_ZERO (1 << 18)
|
||||
/*
|
||||
* Feature indicates that the chip does not require erase before writing:
|
||||
* write operations can set any bit to any value without first doing an erase,
|
||||
* but bulk erase operations may still be supported.
|
||||
*
|
||||
* EEPROMs usually behave this way (compare to Flash, which requires erase),
|
||||
* for example the ST M95M02.
|
||||
*/
|
||||
#define FEATURE_NO_ERASE (1 << 19)
|
||||
|
||||
#define FEATURE_WRSR_EXT2 (1 << 20)
|
||||
|
Reference in New Issue
Block a user