summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2014-06-16 22:36:17 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2014-06-16 22:36:17 +0000
commit1b0e9fc8ea313cdffc4d38548cb0c8577481a467 (patch)
treebcd073d982639a0e055f777a48154bf026b99d18 /flash.h
parent600576b43d7f76adc49913a7a7dd21e318b063cf (diff)
downloadast2050-flashrom-1b0e9fc8ea313cdffc4d38548cb0c8577481a467.zip
ast2050-flashrom-1b0e9fc8ea313cdffc4d38548cb0c8577481a467.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. Corresponding to flashrom svn r1822. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index cb53ad1..c2de2d0 100644
--- a/flash.h
+++ b/flash.h
@@ -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. */
};
/*
OpenPOWER on IntegriCloud