From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshihiro Shimoda Date: Tue, 05 Jul 2011 17:18:38 +0900 Subject: [U-Boot] [PATCH] sh: add calling mmc_initialize in board.c Message-ID: <4E12C8DE.7040908@renesas.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Some SH have MMC controller. So, if we need it, we have to call the mmc_initialize(). Signed-off-by: Yoshihiro Shimoda --- arch/sh/lib/board.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/sh/lib/board.c b/arch/sh/lib/board.c index ed91643..8540e40 100644 --- a/arch/sh/lib/board.c +++ b/arch/sh/lib/board.c @@ -110,6 +110,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[] = @@ -141,6 +150,9 @@ init_fnc_t *init_sequence[] = #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 */ }; -- 1.7.1