1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-03 06:53:18 +02:00

Changes from NIKI

Corresponding to coreboot v1 svn r873.
This commit is contained in:
Ronald G. Minnich
2003-09-12 22:41:53 +00:00
parent ceec420c3d
commit eaab50bb32
22 changed files with 622 additions and 82 deletions

View File

@ -24,6 +24,7 @@
* $Id$
*/
#include <stdio.h>
#include "flash.h"
#include "jedec.h"
@ -68,9 +69,11 @@ int erase_jedec (struct flashchip * flash)
myusec_delay(10);
toggle_ready_jedec(bios);
return(0);
}
int write_jedec (struct flashchip * flash, char * buf)
int write_jedec (struct flashchip * flash, unsigned char * buf)
{
int i;
int total_size = flash->total_size *1024, page_size = flash->page_size;
@ -90,4 +93,6 @@ int write_jedec (struct flashchip * flash, char * buf)
}
printf("\n");
protect_jedec (bios);
return(0);
}