Skip to contentSkip to conversation

sh: add calling mmc_initialize in board.c

PATCH New Yoshihiro Shimoda 2 participants 2 messages Jul 5, 2011 – Jul 11, 2011 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

---
 arch/sh/lib/board.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
arch/sh/lib/board.c +12 -0
index ed91643..8540e40 100644
@@ -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 */
 };
 
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 sh: add calling mmc_initialize in board.c

Applied, thanks.

Best regards,
Nobuhiro

2011/7/5 Yoshihiro Shimoda <[email protected]>:

Quoted 41 lines

Some SH have MMC controller. So, if we need it, we have to call the mmc_initialize().

---
?arch/sh/lib/board.c | ? 12 ++++++++++++ ?1 files changed, 12 insertions(+), 0 deletions(-)

arch/sh/lib/board.c +0 -0
index ed91643..8540e40 100644
@@ -110,6 +110,15 @@ static int sh_net_init(void)
 ?}

?#endif

arch/sh/lib/board.c +9 -0
+#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[] =

arch/sh/lib/board.c +0 -0
@@ -141,6 +150,9 @@ init_fnc_t *init_sequence[] =
 ?#if defined(CONFIG_CMD_NET)

? ? ? ?sh_net_init, ? ? ? ? ? ?/* SH specific eth init */ ?#endif

arch/sh/lib/board.c +3 -0
+#if defined(CONFIG_CMD_MMC)
+ ? ? ? sh_mmc_init,
+#endif

? ? ? ?NULL ? ? ? ? ? ? ? ? ? ?/* Terminate this list */ ?};

--
1.7.1

Signature · 3 lines
Nobuhiro Iwamatsu
?? iwamatsu at {nigauri.org / debian.org}
?? GPG ID: 40AD1FA6