1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

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>
This commit is contained in:
Carl-Daniel Hailfinger
2010-07-03 12:14:25 +00:00
parent ad3cc55e13
commit d1be52d545
2 changed files with 21 additions and 0 deletions

View File

@ -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;