diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2012-03-19 12:12:06 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2012-05-08 18:02:22 -0500 |
commit | 25c719e2c3247ef0bab28ee562f978e2ce9211e3 (patch) | |
tree | 3f943876a3f1355615e5b435bd44a47f87ac4d2d /include/fsl_esdhc.h | |
parent | 15ceb1de81e282426d8988264469508fb5dbd192 (diff) | |
download | u-boot-25c719e2c3247ef0bab28ee562f978e2ce9211e3.zip u-boot-25c719e2c3247ef0bab28ee562f978e2ce9211e3.tar.gz u-boot-25c719e2c3247ef0bab28ee562f978e2ce9211e3.tar.bz2 |
mmc: omap: handle controller errors properly
According to OMAP3 TRM, when the controller reports certain errors,
driver must perform a software reset. This is done by setting a bit
in SYSCTL and waiting it to clear:
- SRC on command timeout (CTO)
- SRD on data errors (DTO, DCRC and DEB)
This fixes a problem seen on OMAP3 pandora board with some cards
that won't work with a message printed multiple times:
timedout waiting on cmd inhibit to clear
Code loosely based on Linux omap_hsmmc driver.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Tested-by: Tom Rini <trini@ti.com>
Tested-by: Pali Rohár <pali.rohar@gmail.com>
Diffstat (limited to 'include/fsl_esdhc.h')
0 files changed, 0 insertions, 0 deletions