From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 20 Aug 2012 10:01:14 +0200 Subject: [U-Boot] [PATCH v2 7/7] mx35: Add cpu_mmc_init() In-Reply-To: <361544628.2524200.1345236228147.JavaMail.root@advansee.com> References: <361544628.2524200.1345236228147.JavaMail.root@advansee.com> Message-ID: <5031EECA.70409@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 17/08/2012 22:43, Beno?t Th?baudeau wrote: > Add cpu_mmc_init() function to make it easy to init a single eSDHC instance. > > Signed-off-by: Beno?t Th?baudeau > Cc: Stefano Babic > --- > Changes for v2: > - Do not define cpu_mmc_init() if CONFIG_FSL_ESDHC is not defined. > > .../arch/arm/cpu/arm1136/mx35/generic.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > > diff --git u-boot-4d3c95f.orig/arch/arm/cpu/arm1136/mx35/generic.c u-boot-4d3c95f/arch/arm/cpu/arm1136/mx35/generic.c > index 15a0098..8f61069 100644 > --- u-boot-4d3c95f.orig/arch/arm/cpu/arm1136/mx35/generic.c > +++ u-boot-4d3c95f/arch/arm/cpu/arm1136/mx35/generic.c > @@ -31,6 +31,9 @@ > #include > #include > #include > +#ifdef CONFIG_FSL_ESDHC > +#include > +#endif > #include > > #define CLK_CODE(arm, ahb, sel) (((arm) << 16) + ((ahb) << 8) + (sel)) > @@ -458,7 +461,6 @@ int print_cpuinfo(void) > * Initializes on-chip ethernet controllers. > * to override, implement board_eth_init() > */ > - > int cpu_eth_init(bd_t *bis) > { > int rc = -ENODEV; > @@ -470,6 +472,17 @@ int cpu_eth_init(bd_t *bis) > return rc; > } > > +#ifdef CONFIG_FSL_ESDHC > +/* > + * Initializes on-chip MMC controllers. > + * to override, implement board_mmc_init() > + */ > +int cpu_mmc_init(bd_t *bis) > +{ > + return fsl_esdhc_mmc_init(bis); > +} > +#endif > + > int get_clocks(void) > { > #ifdef CONFIG_FSL_ESDHC > Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================