目录
initr_net
static int initr_net(void)
{
puts("Net: ");
eth_initialize();
#if defined(CONFIG_RESET_PHY_R)
debug("Reset Ethernet PHY\n");
reset_phy();
#endif
return 0;
}
这部分代码实在init_sequence_r初始化的【即uboot启动过程中】
eth_initialize
int eth_initialize(void)
406{
407 int num_devices = 0;
408 struct udevice *dev;
409
410 eth_common_init();
411
412 /*
413 * Devices need to write the hwaddr even if not started so that Linux
414 * will have access to the hwaddr that u-boot stored for the device.
415 * T