2024年3月23日发(作者:仉浚)
} else {
puts(failed);
hang();
}
#endif
puts("zengjf :n");
#if defined(CONFIG_CMD_NAND)
puts("NAND : ");
nand_init(); /* go init the NAND */ ---------------------+
#endif |
|
#if defined(CONFIG_CMD_ONENAND) |
onenand_init(); |
#endif |
|
#ifdef CONFIG_GENERIC_MMC |
puts("MMC: "); |
mmc_initialize(bd); |
#endif |
|
#ifdef CONFIG_HAS_DATAFLASH |
AT91F_DataflashInit(); |
dataflash_print_info(); |
#endif |
|
/* initialize environment */ |
env_relocate(); |
|
#if defined(CONFIG_CMD_PCI) || defined(CONFIG_PCI) |
arm_pci_init(); |
#endif |
|
/* IP Address */ |
gd->bd->bi_ip_addr = getenv_IPaddr("ipaddr"); |
|
|
jumptable_init(); |
|
#if defined(CONFIG_API) |
/* Initialize API */ |
api_init(); |
#endif |
|
console_init_r(); /* fully init console as a device */ |
|
#if defined(CONFIG_ARCH_MISC_INIT) |
/* miscellaneous arch dependent initialisations */ |
arch_misc_init(); |
#endif |
#if defined(CONFIG_MISC_INIT_R) |
/* miscellaneous platform dependent initialisations */ |
misc_init_r(); ----------------------------------*--------+
#endif | |
| |
/* set up exceptions */ | |
interrupt_init(); | |
/* enable exceptions */ | |
enable_interrupts(); | |
| |
/* Perform network card initialisation if necessary */ | |
#if defined(CONFIG_DRIVER_SMC91111) || defined (CONFIG_DRIVER_LAN91C96) | |
/* XXX: this needs to be moved to board init */ | |
if (getenv("ethaddr")) { | |
uchar enetaddr[6]; | |
eth_getenv_enetaddr("ethaddr", enetaddr); | |
smc_set_mac_addr(enetaddr); | |
} | |
#endif /* CONFIG_DRIVER_SMC91111 || CONFIG_DRIVER_LAN91C96 */ | |
| |
/* Initialize from environment */ | |
s = getenv("loadaddr"); | |
if (s != NULL) | |
load_addr = simple_strtoul(s, NULL, 16); | |
#if defined(CONFIG_CMD_NET) | |
s = getenv("bootfile"); | |
if (s != NULL) | |
copy_filename(BootFile, s, sizeof(BootFile)); | |
#endif | |
| |
#ifdef BOARD_LATE_INIT | |
board_late_init(); | |
#endif | |
| |
2024年3月23日发(作者:仉浚)
} else {
puts(failed);
hang();
}
#endif
puts("zengjf :n");
#if defined(CONFIG_CMD_NAND)
puts("NAND : ");
nand_init(); /* go init the NAND */ ---------------------+
#endif |
|
#if defined(CONFIG_CMD_ONENAND) |
onenand_init(); |
#endif |
|
#ifdef CONFIG_GENERIC_MMC |
puts("MMC: "); |
mmc_initialize(bd); |
#endif |
|
#ifdef CONFIG_HAS_DATAFLASH |
AT91F_DataflashInit(); |
dataflash_print_info(); |
#endif |
|
/* initialize environment */ |
env_relocate(); |
|
#if defined(CONFIG_CMD_PCI) || defined(CONFIG_PCI) |
arm_pci_init(); |
#endif |
|
/* IP Address */ |
gd->bd->bi_ip_addr = getenv_IPaddr("ipaddr"); |
|
|
jumptable_init(); |
|
#if defined(CONFIG_API) |
/* Initialize API */ |
api_init(); |
#endif |
|
console_init_r(); /* fully init console as a device */ |
|
#if defined(CONFIG_ARCH_MISC_INIT) |
/* miscellaneous arch dependent initialisations */ |
arch_misc_init(); |
#endif |
#if defined(CONFIG_MISC_INIT_R) |
/* miscellaneous platform dependent initialisations */ |
misc_init_r(); ----------------------------------*--------+
#endif | |
| |
/* set up exceptions */ | |
interrupt_init(); | |
/* enable exceptions */ | |
enable_interrupts(); | |
| |
/* Perform network card initialisation if necessary */ | |
#if defined(CONFIG_DRIVER_SMC91111) || defined (CONFIG_DRIVER_LAN91C96) | |
/* XXX: this needs to be moved to board init */ | |
if (getenv("ethaddr")) { | |
uchar enetaddr[6]; | |
eth_getenv_enetaddr("ethaddr", enetaddr); | |
smc_set_mac_addr(enetaddr); | |
} | |
#endif /* CONFIG_DRIVER_SMC91111 || CONFIG_DRIVER_LAN91C96 */ | |
| |
/* Initialize from environment */ | |
s = getenv("loadaddr"); | |
if (s != NULL) | |
load_addr = simple_strtoul(s, NULL, 16); | |
#if defined(CONFIG_CMD_NET) | |
s = getenv("bootfile"); | |
if (s != NULL) | |
copy_filename(BootFile, s, sizeof(BootFile)); | |
#endif | |
| |
#ifdef BOARD_LATE_INIT | |
board_late_init(); | |
#endif | |
| |