PERFORCE change 95741 for review

Warner Losh imp at FreeBSD.org
Thu Apr 20 23:56:37 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=95741

Change 95741 by imp at imp_hammer on 2006/04/20 23:56:20

	Initialize the EEPROM.  This makes the boot0iic accept a binary
	and burn it into the iic.  A heck of a lot easier than trying
	to use ramMonitor and 10 extra steps.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/boot0iic/doit.c#3 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/boot0iic/doit.c#3 (text+ko) ====

@@ -36,12 +36,9 @@
 {
 	int sec;
 
-	printf("Writing EEPROM\r\n");
+	InitEEPROM();
+	printf("Writing EEPROM from 0x%x to addr 0\r\n", addr);
 	WriteEEPROM(0, addr, 8192);
 	sec = GetSeconds();
-	while (1) {
-		printf("Write complete.  Press reset\r\n");
-		while (sec == GetSeconds())
-			continue;
-	}
+	printf("Write complete.  Press reset\r\n");
 }


More information about the p4-projects mailing list