All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Micron eMMC problem on sabre SD like card
@ 2013-05-25 15:32 jean-francois simon
  2013-06-06  9:38 ` jean-francois simon
  2013-06-06 13:34 ` Stefano Babic
  0 siblings, 2 replies; 6+ messages in thread
From: jean-francois simon @ 2013-05-25 15:32 UTC (permalink / raw)
  To: u-boot

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


We have based our u-boot on the official tree, not the Freescale 2009
tree. I can see that the mmc drivers are somewhat different.

This must be obvious since it happens on the first access, but I am
not sure where to look.

Thanks a lot,                      ;


-- 
_______________________________________
jean-francois simon  - www.themis.com
ph: +33 (0)4 76 14 77 85

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-06 16:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-25 15:32 [U-Boot] Micron eMMC problem on sabre SD like card jean-francois simon
2013-06-06  9:38 ` jean-francois simon
2013-06-06 13:34 ` Stefano Babic
2013-06-06 13:39   ` Fabio Estevam
2013-06-06 14:58     ` jean-francois simon
2013-06-06 16:47       ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.