PERFORCE change 109584 for review
Warner Losh
imp at FreeBSD.org
Thu Nov 9 00:44:57 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=109584
Change 109584 by imp at 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();
}
More information about the p4-projects
mailing list