diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-06-16 22:36:17 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-06-16 22:36:17 +0000 |
commit | dd47eb68e3a0271003898ad9a8cf1b3870d1499f (patch) | |
tree | bcd073d982639a0e055f777a48154bf026b99d18 /flash.h | |
parent | ac54402480d1578f73d27e590c6e0879358eba67 (diff) | |
download | flashrom-dd47eb68e3a0271003898ad9a8cf1b3870d1499f.tar.gz |
EEPROM support: handle implicit erase
Add support for EEPROMs with 1 byte granularity and implicit erase on
write. flashrom will not try to erase before write on these chips.
Explicitly requested erase with -E is done by writing 0xff.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1822 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -87,6 +87,7 @@ enum write_granularity { write_gran_528bytes, /* If less than 528 bytes are written, the unwritten bytes are undefined. */ write_gran_1024bytes, /* If less than 1024 bytes are written, the unwritten bytes are undefined. */ write_gran_1056bytes, /* If less than 1056 bytes are written, the unwritten bytes are undefined. */ + write_gran_1byte_implicit_erase, /* EEPROMs and other chips with implicit erase and 1-byte writes. */ }; /* |