mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
Can now burn 82802ab
Corresponding to coreboot v1 svn r633.
This commit is contained in:
6
jedec.c
6
jedec.c
@ -74,9 +74,13 @@ int write_jedec (struct flashchip * flash, char * buf)
|
||||
{
|
||||
int i;
|
||||
int total_size = flash->total_size *1024, page_size = flash->page_size;
|
||||
volatile char * bios = flash->virt_addr;
|
||||
volatile unsigned char * bios = flash->virt_addr;
|
||||
|
||||
erase_jedec (flash);
|
||||
if (*bios != (unsigned char ) 0xff) {
|
||||
printf("ERASE FAILED\n");
|
||||
return -1;
|
||||
}
|
||||
printf ("Programming Page: ");
|
||||
for (i = 0; i < total_size/page_size; i++) {
|
||||
printf ("%04d at address: 0x%08x", i, i * page_size);
|
||||
|
Reference in New Issue
Block a user