diff options
author | stuge <stuge@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-05-08 21:25:37 +0000 |
---|---|---|
committer | stuge <stuge@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-05-08 21:25:37 +0000 |
commit | 380e31013bd354ef77fae8d2409cab4228c391f2 (patch) | |
tree | a82aa617d1b4eb111ec67b413c3d6e817386372a | |
parent | 20dd22ba4f6fc02fdfd759daeb8e2add57e69c30 (diff) | |
download | flashrom-stuge.tar.gz |
Block Lock register decodestuge
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: https://code.coreboot.org/svn/flashrom/branches/stuge@480 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | 82802ab.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -116,12 +116,9 @@ int erase_82802ab_block(struct flashchip *flash, int offset) // clear status register chip_writeb(0x50, bios); - //printf("Erase at %p\n", bios); - // clear write protect - //printf("write protect is at %p\n", (wrprotect)); - //printf("write protect is 0x%x\n", *(wrprotect)); + printf_debug("Erasing block at %p, block locking register at %p\n", bios, wrprotect); chip_writeb(0, wrprotect); - //printf("write protect is 0x%x\n", *(wrprotect)); + printf_debug("AFTER unlock: 0x%02x\n", *wrprotect); // now start it chip_writeb(0x20, bios); |