summaryrefslogtreecommitdiff
path: root/arch/sh/lib/board.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2011-07-05 17:18:38 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2011-08-22 13:16:09 +0900
commitfe0ddffac1ce63de71fe8e6398c4784937b52c84 (patch)
treeaa1d96a5a2f57f19f081dad20c3c67cf8c665b53 /arch/sh/lib/board.c
parentd61cd3708e5961fecec8c98fbb3ed787f54e723e (diff)
downloadu-boot-imx-fe0ddffac1ce63de71fe8e6398c4784937b52c84.zip
u-boot-imx-fe0ddffac1ce63de71fe8e6398c4784937b52c84.tar.gz
u-boot-imx-fe0ddffac1ce63de71fe8e6398c4784937b52c84.tar.bz2
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 <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'arch/sh/lib/board.c')
-rw-r--r--arch/sh/lib/board.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sh/lib/board.c b/arch/sh/lib/board.c
index 90fe796..6148e6b 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[] =
@@ -138,6 +147,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 */
};