summaryrefslogtreecommitdiff
path: root/82802ab.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-11-26 14:50:52 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2009-11-26 14:50:52 +0000
commit03024561cfc841ad3a0a7f1999c732efdbba5b39 (patch)
tree10dd150d40a182f9911df4020e2b004ef097f17e /82802ab.c
parentf2c35cbb8e52ab8675037efcd2323bdfcadbb9c2 (diff)
downloadflashrom-03024561cfc841ad3a0a7f1999c732efdbba5b39.tar.gz
This patch removes the extremely dangerous unprotect_jedec function
which is not used at all within flashrom code, and renames the misleadingly named protect_jedec function to start_program_jedec. Calls to protect_jedec after flashing are removed, because a) on LPC chips, the command sent by protoct_jedec is not even in the datasheet and b) on parallel chips, the block write command issued before already contained the software protection sequence, so software protection is definitely enabled. This patch also removes two clones of protect_jedec Background: JEDEC Software Data Protection started as an optional feature, which was disabled on the first single-voltage-flash chips. The software data protection is the need to prefix a write with a magic "write enable" command, while without write protection every write access into the chip's address space modifies flash content. This magic write enable command also tells the flash chip that the programmer obviously support sending write-enable commands and turns off the "any write modifies flash content" mode. There also exist a two-command (6 writes) sequence that disables Software Data Protection completey, which should only ever be used to prepare updating with a device that can't handle software data protection. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@783 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to '82802ab.c')
-rw-r--r--82802ab.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/82802ab.c b/82802ab.c
index b274d56..58d3467 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -190,7 +190,6 @@ int write_82802ab(struct flashchip *flash, uint8_t *buf)
bios + i * page_size, page_size);
}
printf("\n");
- protect_jedec(bios);
free(tmpbuf);
return 0;