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 <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
diff --git a/flash.h b/flash.h
index 9c1a2be..321c59c 100644
--- a/flash.h
+++ b/flash.h
@@ -569,6 +569,7 @@
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;