/* miscellaneous platform dependent initialisations */ int misc_init_r(void) { #ifdef CONFIG_STAMP_CF cf_ide_init(); #endif return 0; }
/* miscellaneous platform dependent initialisations */ int misc_init_r(void) { #ifdef CONFIG_BFIN_MAC uchar enetaddr[6]; if (!eth_getenv_enetaddr("ethaddr", enetaddr)) board_init_enetaddr(enetaddr); #endif #ifndef CONFIG_SYS_NO_FLASH /* we use the last sector for the MAC address / POST LDR */ extern flash_info_t flash_info[]; flash_protect(FLAG_PROTECT_SET, 0x203F0000, 0x203FFFFF, &flash_info[0]); #endif #ifdef CONFIG_BFIN_IDE cf_ide_init(); #endif return 0; }