From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 3 Jun 2009 01:09:56 +0200 Subject: [U-Boot] [PATCH 6/7] arm: add support for CONFIG_GENERIC_MMC In-Reply-To: <2acbd3e40905280856y68f7c9e1r9a9280c360f563b9@mail.gmail.com> References: <1242777361-6717-1-git-send-email-yanok@emcraft.com> <1242777361-6717-7-git-send-email-yanok@emcraft.com> <20090523002746.GC20889@game.jcrosoft.org> <2acbd3e40905280856y68f7c9e1r9a9280c360f563b9@mail.gmail.com> Message-ID: <20090602230956.GL6399@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10:56 Thu 28 May , Andy Fleming wrote: > On Fri, May 22, 2009 at 7:27 PM, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 03:56 Wed 20 May , Ilya Yanok wrote: > > Signed-off-by: Ilya Yanok > > --- > > lib_arm/board.c | 7 +++++++ > > 1 files changed, 7 insertions(+), 0 deletions(-) > > > > diff --git a/lib_arm/board.c b/lib_arm/board.c > > index 5d05d9b..268532f 100644 > > --- a/lib_arm/board.c > > +++ b/lib_arm/board.c > > @@ -48,6 +48,7 @@ > > #include > > #include > > #include > > +#include > > > > #ifdef CONFIG_DRIVER_SMC91111 > > #include "../drivers/net/smc91111.h" > > @@ -439,6 +440,12 @@ extern void davinci_eth_set_mac_addr (const > u_int8_t *addr); > > #ifdef BOARD_LATE_INIT > > board_late_init (); > > #endif > > + > > +#ifdef CONFIG_GENERIC_MMC > > + puts ("MMC: "); > > + mmc_initialize (gd->bd); > > +#endif > do you use a embedded mmc? > otherwise I'll prefer to not init the mmc at the board init but on need > > This is the same way ethernet is initialized. mmc_initialize should not > perform any SD/MMC transactions, but should set up the driver, and > register with the MMC subsystem. Without doing this, there's no way to > address the MMC device from the command line... ok Best Regards, J.