From 65922a3860654676ece5de12fa21abac49e21e5e Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Wed, 15 Feb 2012 23:40:23 +0000 Subject: 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 --- flash.h | 1 + 1 file changed, 1 insertion(+) (limited to 'flash.h') 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) #define FEATURE_WRSR_EITHER (FEATURE_WRSR_EWSR | FEATURE_WRSR_WREN) struct flashctx; -- cgit v1.1