|
error: RTL8019AS chip not found { 0x50(0x50), 0x3d(0x70)}!
[复制链接]
关键源码如下:
static void eth_reset (void)
{
unsigned char ucTemp;
/* reset NIC */
ucTemp = get_reg (RTL8019_RESET);
put_reg (RTL8019_RESET, ucTemp);
put_reg (RTL8019_INTERRUPTSTATUS, 0xff);
udelay (2000); /* wait for 2ms */
}
int eth_init (bd_t * bd)
{
unsigned char id0, id1;
/* read id */
eth_reset ();
id0 = get_reg(RTL8019_REMOTEBYTECOUNT0);
id1 = get_reg(RTL8019_REMOTEBYTECOUNT1);
if(id0 != 0x50 || id1 != 0x70)
{
printf("error: RTL8019AS chip not found { 0x%x(0x50), 0x%x(0x70)}!\n", id0, id1);
return -1;
}
printf("RTL8019AS Founded!\n");
printf("MAC : 0x%x-0x%x-0x%x-0x%x-0x%x-0x%x\n", bd->bi_enetaddr[0], bd->bi_enetaddr[1], bd->bi_enetaddr[2], bd->bi_enetaddr[3], bd->bi_enetaddr[4], bd->bi_enetaddr[5]);
烧写到flash运行结果出现
error: RTL8019AS chip not found { 0x50(0x50), 0x3d(0x70)}!
|
|