path: root/flashrom.c
diff options
authorCarl-Daniel Hailfinger <>2009-05-11 14:01:17 +0000
committerCarl-Daniel Hailfinger <>2009-05-11 14:01:17 +0000
commitd0fc9469fd740c2036536a3656a56c11fe0b386e (patch)
treea0e8389cfb6d9bbb8ec7710858dff2bbd8d678b8 /flashrom.c
parentdbfa02911fe6f32503a574f84d1627a370cb7fc2 (diff)
Handle (un)locking of SST FWH chips
Add lock bit handling (printing, setting and checking) to SST FWH chips and abort any writes to locked sectors. Verbose mode gives you all the info. Normal mode only tells you of unlocking failed, but gives enough details to debug. Add a comment about flash register placement to flashrom.c. Thanks to Uwe for testing multiple iterations of this patch. Corresponding to flashrom svn r492. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Uwe Hermann <>
Diffstat (limited to 'flashrom.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index d7f4479..981d835 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -65,6 +65,7 @@ const struct programmer_entry programmer_table[] = {
void map_flash_registers(struct flashchip *flash)
size_t size = flash->total_size * 1024;
+ /* Flash registers live 4 MByte below the flash. */
flash->virtual_registers = physmap("flash chip registers", (0xFFFFFFFF - 0x400000 - size + 1), size);
OpenPOWER on IntegriCloud