X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=arch%2Fsh%2Flib%2Fboard.c;h=d9c0c228e06c5b44c7eba2253414a8357d87381f;hb=d194837fc3042d943ba088fcc221d534330b2872;hp=ed91643427015176a947909b530611b92e09aaa0;hpb=62043ed02a2acffa801e3574e249de07d30336a2;p=oweals%2Fu-boot.git diff --git a/arch/sh/lib/board.c b/arch/sh/lib/board.c index ed91643427..d9c0c228e0 100644 --- a/arch/sh/lib/board.c +++ b/arch/sh/lib/board.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -39,8 +38,6 @@ extern int board_init(void); extern int dram_init(void); extern int timer_init(void); -const char version_string[] = U_BOOT_VERSION" ("U_BOOT_DATE" - "U_BOOT_TIME")"; - unsigned long monitor_flash_len = CONFIG_SYS_MONITOR_LEN; #ifndef CONFIG_SYS_NO_FLASH @@ -110,6 +107,15 @@ static int sh_net_init(void) } #endif +#if defined(CONFIG_CMD_MMC) +static int sh_mmc_init(void) +{ + puts("MMC: "); + mmc_initialize(gd->bd); + return 0; +} +#endif + typedef int (init_fnc_t) (void); init_fnc_t *init_sequence[] = @@ -135,11 +141,14 @@ init_fnc_t *init_sequence[] = stdio_init, console_init_r, interrupt_init, -#ifdef BOARD_LATE_INIT +#ifdef CONFIG_BOARD_LATE_INIT board_late_init, #endif #if defined(CONFIG_CMD_NET) sh_net_init, /* SH specific eth init */ +#endif +#if defined(CONFIG_CMD_MMC) + sh_mmc_init, #endif NULL /* Terminate this list */ };