From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] sh: add calling mmc_initialize in board.c
Date: Tue, 05 Jul 2011 17:18:38 +0900 [thread overview]
Message-ID: <4E12C8DE.7040908@renesas.com> (raw)
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
next reply other threads:[~2011-07-05 8:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-05 8:18 Yoshihiro Shimoda [this message]
2011-07-11 1:34 ` [U-Boot] [PATCH] sh: add calling mmc_initialize in board.c Nobuhiro Iwamatsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E12C8DE.7040908@renesas.com \
--to=yoshihiro.shimoda.uh@renesas.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox