use boards mac on boards with brn loader, on ifxmips
SVN-Revision: 11674
This commit is contained in:
parent
3e2c38b0fb
commit
ae1abb1f58
1 changed files with 7 additions and 2 deletions
|
@ -259,13 +259,18 @@ static struct ifxmips_board boards[] =
|
||||||
|
|
||||||
int
|
int
|
||||||
ifxmips_find_brn_block(void){
|
ifxmips_find_brn_block(void){
|
||||||
unsigned char temp[0];
|
unsigned char temp[8];
|
||||||
memcpy_fromio(temp, (void*)KSEG1ADDR(IFXMIPS_FLASH_START + 0x800000 - 0x10000), 8);
|
memcpy_fromio(temp, (void*)KSEG1ADDR(IFXMIPS_FLASH_START + 0x800000 - 0x10000), 8);
|
||||||
if(memcmp(temp, "BRN-BOOT", 8) == 0)
|
if(memcmp(temp, "BRN-BOOT", 8) == 0)
|
||||||
|
{
|
||||||
|
if(!cmdline_mac)
|
||||||
|
memcpy_fromio(ifxmips_mii_mac, (void*)KSEG1ADDR(IFXMIPS_FLASH_START + 0x800000 - 0x10000 + 0x16), 6);
|
||||||
|
cmdline_mac = 1;
|
||||||
return 1;
|
return 1;
|
||||||
else
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
ifxmips_has_brn_block(void)
|
ifxmips_has_brn_block(void)
|
||||||
|
|
Loading…
Reference in a new issue