Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 2006 00:44:56 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 109584 for review
Message-ID:  <200611090044.kA90iuF9016878@repoman.freebsd.org>

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

Change 109584 by imp@imp_lighthouse on 2006/11/09 00:44:21

	Touch the right eeprom for the KB920x boards

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/boot2/kb920x_board.c#3 edit

Differences ...

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

@@ -5,7 +5,6 @@
 
 #include "emac.h"
 #include "lib.h"
-#include "ee.h"
 #include "board.h"
 
 extern unsigned char mac[];
@@ -15,10 +14,10 @@
 {	
 	uint32_t sig;
 	sig = 0;
-	EERead(12 * 1024, (uint8_t *)&sig, sizeof(sig));
+	ReadEEPROM(12 * 1024, (uint8_t *)&sig, sizeof(sig));
 	if (sig != 0xaa55aa55)
 		return;
-	EERead(12 * 1024 + 4, mac, 6);
+	ReadEEPROM(12 * 1024 + 4, mac, 6);
 	printf("MAC %x:%x:%x:%x:%x:%x\n", mac[0],
 	  mac[1], mac[2], mac[3], mac[4], mac[5]);
 }
@@ -31,6 +30,6 @@
 void
 board_init(void)
 {
-    EEInit();
+    InitEEPROM();
     MacFromEE();
 }



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