summaryrefslogtreecommitdiffstats
path: root/82802ab.c
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2003-02-28 17:21:38 +0000
committerRonald G. Minnich <rminnich@gmail.com>2003-02-28 17:21:38 +0000
commitd4228fdc4793c900e3f5eb0d2db0576a6f36235d (patch)
tree8b97e52b0701f641a3566e0448b699ce912e46a7 /82802ab.c
parent4d32e789a867bbf1419fc1f4f82b1145891d4d16 (diff)
downloadast2050-flashrom-d4228fdc4793c900e3f5eb0d2db0576a6f36235d.zip
ast2050-flashrom-d4228fdc4793c900e3f5eb0d2db0576a6f36235d.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.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/82802ab.c b/82802ab.c
index 71f2af7..b41efcc 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -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)
OpenPOWER on IntegriCloud