diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2003-02-28 17:21:38 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2003-02-28 17:21:38 +0000 |
commit | d4228fdc4793c900e3f5eb0d2db0576a6f36235d (patch) | |
tree | 8b97e52b0701f641a3566e0448b699ce912e46a7 /82802ab.c | |
parent | 4d32e789a867bbf1419fc1f4f82b1145891d4d16 (diff) | |
download | flashrom-d4228fdc4793c900e3f5eb0d2db0576a6f36235d.tar.gz flashrom-d4228fdc4793c900e3f5eb0d2db0576a6f36235d.tar.bz2 flashrom-d4228fdc4793c900e3f5eb0d2db0576a6f36235d.zip |
Made the ids always print in hex less verbose verify step
Corresponding to coreboot v1 svn r752.
Diffstat (limited to '82802ab.c')
-rw-r--r-- | 82802ab.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -73,7 +73,8 @@ int probe_82802ab (struct flashchip * flash) #endif myusec_delay(10); - printf(__FUNCTION__ "id1 %d, id2 %d\n", id1, id2); + printf("%s: id1 0x%x, id2 0x%x\n", __FUNCTION__, id1, id2); + if (id1 == flash->manufacture_id && id2 == flash->model_id) { size_t size = flash->total_size * 1024; // we need to mmap the write-protect space. @@ -129,12 +130,12 @@ int erase_82802ab_block(struct flashchip *flash, int offset) // clear status register *bios = 0x50; - printf("Erase at %p\n", 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("write protect is at %p\n", (wrprotect)); + //printf("write protect is 0x%x\n", *(wrprotect)); *(wrprotect) = 0; - printf("write protect is 0x%x\n", *(wrprotect)); + //printf("write protect is 0x%x\n", *(wrprotect)); // now start it *(volatile unsigned char *) (bios) = 0x20; @@ -142,7 +143,7 @@ int erase_82802ab_block(struct flashchip *flash, int offset) myusec_delay(10); // now let's see what the register is status = wait_82802ab(flash->virt_addr); - print_82802ab_status(status); + //print_82802ab_status(status); printf("DONE BLOCK 0x%x\n", offset); } int erase_82802ab (struct flashchip * flash) |