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

Fix 32bit vs. 64bit long int arithematics

Corresponding to flashrom svn r8 and coreboot v2 svn r1434.
This commit is contained in:
Ollie Lho
2004-03-18 19:40:07 +00:00
parent cec287936c
commit cf29de8798
6 changed files with 14 additions and 43 deletions

View File

@ -21,6 +21,8 @@
* Reference:
* 4 MEgabit (512K x 8) SuperFlash EEPROM, SST49lF040 data sheet
*
* ToDo: Consilidated to standard JEDEC code.
*
* $Id$
*/
#include <stdio.h>
@ -59,7 +61,7 @@ static int erase_sector_49lf040 (volatile char * bios, unsigned int page)
myusec_delay(10);
Temp = bios + page; /* set up address to be the current sector */
*Temp = 0x30; /* write data 0x30 to the address */
myusec_delay(25000);
myusec_delay(50000);
/* wait for Toggle bit ready */
toggle_ready_jedec(bios);