fixed 32bit v.s. 64bit long int arithematics

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1434 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Li-Ta Lo
2004-03-18 19:40:07 +00:00
parent 698f23db22
commit 26b237ee18
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);