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 | cb7d42f79e8ebb5e3a406f246b69a7a0acae4d86 (patch) | |
tree | 8b97e52b0701f641a3566e0448b699ce912e46a7 /82802ab.c | |
parent | 926c9b3dc2f9378219bb14ce697d41cca8bab1b0 (diff) | |
download | flashrom-cb7d42f79e8ebb5e3a406f246b69a7a0acae4d86.zip flashrom-cb7d42f79e8ebb5e3a406f246b69a7a0acae4d86.tar.gz |
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) |