[U-Boot] [PATCH 1/2 v2] FSL/eSDHC: enable the peripheral clock to detect the card

Huang Changming-R66093 r66093 at freescale.com
Fri Apr 6 10:04:53 CEST 2012


Hi,
Do you have any comment about this patch?
It can be merged into next version?

Best Regards
Jerry Huang


> -----Original Message-----
> From: Huang Changming-R66093
> Sent: Thursday, March 29, 2012 10:11 AM
> To: u-boot at lists.denx.de
> Cc: Huang Changming-R66093; Andy Fleming
> Subject: [PATCH 1/2 v2] FSL/eSDHC: enable the peripheral clock to detect
> the card
> 
> From: Jerry Huang <Chang-Ming.Huang at freescale.com>
> 
> According to the card detection of p1/p2 platform RM,
> we should set SYSCTL[PEREN] to enable the clock.
> Otherwise, after booting the u-boot, and then inserting the SD card,
> the SD card can't be detected.
> 
> Signed-off-by: Jerry Huang <Chang-Ming.Huang at freescale.com>
> CC: Andy Fleming <afleming at gmail.com>
> ---
> changes for v2:
> 	- correct the typo
> 
>  drivers/mmc/fsl_esdhc.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
> index a2f35e3..1682a79 100644
> --- a/drivers/mmc/fsl_esdhc.c
> +++ b/drivers/mmc/fsl_esdhc.c
> @@ -491,6 +491,8 @@ int fsl_esdhc_initialize(bd_t *bis, struct
> fsl_esdhc_cfg *cfg)
>  	/* First reset the eSDHC controller */
>  	esdhc_reset(regs);
> 
> +	esdhc_write32(&regs->sysctl, SYSCTL_PEREN);
> +
>  	mmc->priv = cfg;
>  	mmc->send_cmd = esdhc_send_cmd;
>  	mmc->set_ios = esdhc_set_ios;
> --
> 1.7.5.4




More information about the U-Boot mailing list