summaryrefslogtreecommitdiffstats
path: root/82802ab.c
diff options
context:
space:
mode:
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