On 27/03/2012 12:25, chang-ming.hu...@freescale.com wrote: > From: Jerry Huang <chang-ming.hu...@freescale.com> > > According to the card detection of p1/p2 paltform 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.hu...@freescale.com> > CC: Andy Fleming <aflem...@gmail.com> > ---
Hi Jerry, > 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(®s->sysctl, SYSCTL_PEREN); > + You add this setup to all architectures: PQIII, i.MX5, i.MX6. Is it what you really want ? 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: sba...@denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot