PERFORCE change 110067 for review
Warner Losh
imp at FreeBSD.org
Wed Nov 15 22:33:45 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=110067
Change 110067 by imp at imp_lighthouse on 2006/11/15 22:32:11
Minor printf hacks, plus delay a bit before blasting the bits
to the iic.
Affected files ...
.. //depot/projects/arm/src/sys/boot/arm/at91/boot0iic/main.c#13 edit
Differences ...
==== //depot/projects/arm/src/sys/boot/arm/at91/boot0iic/main.c#13 (text) ====
@@ -32,14 +32,18 @@
main(void)
{
char *addr = (char *)SDRAM_BASE + (1 << 20); /* Load to base + 1MB */
- int len;
+ int len, sec;
printf("\nSend data to be written into EEPROM\n");
while ((len = xmodem_rx(addr)) == -1)
continue;
- InitEEPROM();
+ sec = GetSeconds() + 1;
+ while (sec >= GetSeconds())
+ continue;
printf("\nWriting EEPROM from 0x%x to addr 0, 0x%x bytes\n", addr,
len);
+ InitEEPROM();
+ printf("init done\n");
WriteEEPROM(0, addr, len);
printf("\nWrote %d bytes. Press reset\n", len);
return (1);
More information about the p4-projects
mailing list