[U-Boot] Micron eMMC problem on sabre SD like card

Stefano Babic sbabic at denx.de
Thu Jun 6 15:34:46 CEST 2013


Hi Jean-Francois,

On 25/05/2013 17:32, jean-francois simon wrote:
> Hi,
> We have a new design that is based on Freescale SABRE SD card.
> We see that accesses made to the eMMC (Micron MTFC64GJVDN-4M ) are not working.
> We have placed the eMMC on SD3 (SD4 on Sabre SD). We want to use it in
> 8bit bus width, DDR, fast speed.
> The very first command sent to the device hangs. The hang happens in
> this function, when the mmc driver is waiting for an interrupt to
> occur:
> 
> 
> drivers/mmc/fsl_esdhc.c::esdhc_send_cmd()
>         ......snip....
>        /* Send the command */
>         esdhc_write32(&regs->cmdarg, cmd->cmdarg);
>        #if defined(CONFIG_FSL_USDHC)
>         esdhc_write32(&regs->mixctrl,
>         (esdhc_read32(&regs->mixctrl) & 0xFFFFFF80) | (xfertyp & 0x7F));
>         esdhc_write32(&regs->xfertyp, xfertyp & 0xFFFF0000);
> #else
>         esdhc_write32(&regs->xfertyp, xfertyp);
> #endif
> 
>         /* Mask all irqs */
>         esdhc_write32(&regs->irqsigen, 0);
> 
>         /* Wait for the command to complete */
>         while (!(esdhc_read32(&regs->irqstat) & (IRQSTAT_CC |
> IRQSTAT_CTOE)))    <<<<<<<HANGS HERE>>>>>>>>>

Could be the same as the issue reported by Fabio at
http://patchwork.ozlabs.org/patch/246928/ ?

Patch is not yet mainline, so I assume that it does not work. You could
make a test using u-boot-imx (git.denx.de/u-boot-imx) instead of u-boot
TOT. Due to this issue I have not yet merged back the mainline tree.

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
=====================================================================


More information about the U-Boot mailing list