path: root/flash.h
diff options
authorDaniel Lenski <>2012-02-15 23:40:23 +0000
committerStefan Tauner <>2012-02-15 23:40:23 +0000
commit65922a3860654676ece5de12fa21abac49e21e5e (patch)
treeb762698047deda76ed7e16c43552c3b388bc3e48 /flash.h
parentb286da7ffc0dd978bb6efe4530c3e904b57c4aca (diff)
Warn of one-time programmable (OTP) memory
Some flash chips contain OTP memory that we cannot read or write (yet). This prohibits us from cloning them, hence warn the user if we detect it. Not all variations of the tagged chips contain OTP memory. They are often only enabled on request or have there own ordering numbers. There is usually no way to distinguish them. Because this is a supposedly seldomly used feature the warning is shown in with dbg verbosity. The manpage is extended to describe the backgrounds a bit. Corresponding to flashrom svn r1493. This patch is based on the idea and code of Daniel Lenski. Signed-off-by: Daniel Lenski <> Signed-off-by: Stefan Tauner <> Acked-by: Carl-Daniel Hailfinger <>
Diffstat (limited to 'flash.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index e51b6d4..20db343 100644
--- a/flash.h
+++ b/flash.h
@@ -83,6 +83,7 @@ enum chipbustype {
#define FEATURE_ADDR_SHIFTED (1 << 5)
#define FEATURE_WRSR_EWSR (1 << 6)
#define FEATURE_WRSR_WREN (1 << 7)
+#define FEATURE_OTP (1 << 8)
struct flashctx;
OpenPOWER on IntegriCloud