Made the ids always print in hex less verbose verify step
Corresponding to coreboot v1 svn r752.
diff --git a/82802ab.c b/82802ab.c
index 71f2af7..b41efcc 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -73,7 +73,8 @@
#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 @@
// 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 @@
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)