Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2006 23:56:36 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 95741 for review
Message-ID:  <200604202356.k3KNuaGo090364@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95741

Change 95741 by imp@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");
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604202356.k3KNuaGo090364>