summaryrefslogtreecommitdiff
path: root/stm50flw0x0x.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-10-19 22:06:20 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-10-19 22:06:20 +0000
commit81ebcd6c51366847c91940d62a0f1ad23b0a7291 (patch)
treeac178e88227887c2bff187608c7308d1f4748621 /stm50flw0x0x.c
parent7717757ec5b34605e813ea6ece935bd4414012ab (diff)
downloadflashrom-81ebcd6c51366847c91940d62a0f1ad23b0a7291.tar.gz
Always read the flash chip before writing. This will allow flashrom to
skip erase of already-erased blocks and to skip write of blocks which already have the wanted contents. Avoid emergency messages by checking if the chip contents after a failed write operation (erase/write) are unchanged. Keep the emergency messages after a failed pure erase. That part is debatable because if someone wants erase, he pretty sure doesn't care about the flash contents anymore. Please note that this introduces additional overhead of a full chip read before write. This is frowned upon by people with slow programmers. A followup patch will make this configurable. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coreboot.org> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1215 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'stm50flw0x0x.c')
0 files changed, 0 insertions, 0 deletions