* [U-Boot] [PATCH] sh: add calling mmc_initialize in board.c
@ 2011-07-05 8:18 Yoshihiro Shimoda
2011-07-11 1:34 ` Nobuhiro Iwamatsu
0 siblings, 1 reply; 2+ messages in thread
From: Yoshihiro Shimoda @ 2011-07-05 8:18 UTC (permalink / raw)
To: u-boot
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>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] sh: add calling mmc_initialize in board.c
2011-07-05 8:18 [U-Boot] [PATCH] sh: add calling mmc_initialize in board.c Yoshihiro Shimoda
@ 2011-07-11 1:34 ` Nobuhiro Iwamatsu
0 siblings, 0 replies; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2011-07-11 1:34 UTC (permalink / raw)
To: u-boot
Applied, thanks.
Best regards,
Nobuhiro
2011/7/5 Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>:
> 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>
> ---
> ?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
>
--
Nobuhiro Iwamatsu
?? iwamatsu at {nigauri.org / debian.org}
?? GPG ID: 40AD1FA6
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-11 1:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-05 8:18 [U-Boot] [PATCH] sh: add calling mmc_initialize in board.c Yoshihiro Shimoda
2011-07-11 1:34 ` Nobuhiro Iwamatsu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox