]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sh: add calling mmc_initialize in board.c
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 5 Jul 2011 08:18:38 +0000 (17:18 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 22 Aug 2011 04:16:09 +0000 (13:16 +0900)
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>
arch/sh/lib/board.c

index 90fe796ef30ed509f9b4acb766001657fc3b5df9..6148e6baff5e99ec015e10f35ac3f18e81008e54 100644 (file)
@@ -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 */
 };