Skip to content
Snippets Groups Projects
Commit fe0ddffa authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Nobuhiro Iwamatsu
Browse files

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: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
parent d61cd370
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,15 @@ static int sh_net_init(void) ...@@ -107,6 +107,15 @@ static int sh_net_init(void)
} }
#endif #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); typedef int (init_fnc_t) (void);
init_fnc_t *init_sequence[] = init_fnc_t *init_sequence[] =
...@@ -137,6 +146,9 @@ init_fnc_t *init_sequence[] = ...@@ -137,6 +146,9 @@ init_fnc_t *init_sequence[] =
#endif #endif
#if defined(CONFIG_CMD_NET) #if defined(CONFIG_CMD_NET)
sh_net_init, /* SH specific eth init */ sh_net_init, /* SH specific eth init */
#endif
#if defined(CONFIG_CMD_MMC)
sh_mmc_init,
#endif #endif
NULL /* Terminate this list */ NULL /* Terminate this list */
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment