From: Yoshihiro Shimoda Date: Tue, 5 Jul 2011 08:18:38 +0000 (+0900) Subject: sh: add calling mmc_initialize in board.c X-Git-Tag: v2011.09-rc1~72^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fe0ddffac1ce63de71fe8e6398c4784937b52c84;p=u-boot sh: add calling mmc_initialize in board.c Some SH have MMC controller. So, if we need it, we have to call the mmc_initialize(). Signed-off-by: Yoshihiro Shimoda Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/arch/sh/lib/board.c b/arch/sh/lib/board.c index 90fe796ef3..6148e6baff 100644 --- a/arch/sh/lib/board.c +++ b/arch/sh/lib/board.c @@ -107,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[] = @@ -137,6 +146,9 @@ init_fnc_t *init_sequence[] = #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 */ };