From d1be52d545329debd2128c1aa8685b31dfaa0a0e Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Sat, 3 Jul 2010 12:14:25 +0000 Subject: Disable writes on default for known bad programmers If a programmer has untested or non-working write/erase code, but probing/reading works, it makes sense to protect the user against write/erase accidents. This feature will be used by the Nvidia MCP SPI code, and it also might make sense for the gfxnvidia driver which has non-working write/erase. Corresponding to flashrom svn r1069. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Michael Karcher --- flash.h | 1 + 1 file changed, 1 insertion(+) (limited to 'flash.h') diff --git a/flash.h b/flash.h index 9c1a2be7..321c59c0 100644 --- a/flash.h +++ b/flash.h @@ -569,6 +569,7 @@ struct decode_sizes { uint32_t spi; }; extern struct decode_sizes max_rom_decode; +extern int programmer_may_write; extern char *programmer_param; extern unsigned long flashbase; extern int verbose; -- cgit v1.2.3