summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnish Trivedi <anish@freescale.com>2011-09-09 14:01:24 -0500
committerAnish Trivedi <anish@freescale.com>2011-09-13 10:12:25 -0500
commite436525a70fe47623d346bc7d9f08f12ff8ad787 (patch)
treea267ee5afbf84e7b708af1749b0116e34c642f74 /include
parentecee97c3abeaf39c1d862c47cc6f0e9a55865ed0 (diff)
downloadu-boot-imx-e436525a70fe47623d346bc7d9f08f12ff8ad787.zip
u-boot-imx-e436525a70fe47623d346bc7d9f08f12ff8ad787.tar.gz
u-boot-imx-e436525a70fe47623d346bc7d9f08f12ff8ad787.tar.bz2
ENGR00156405 ESDHC: Add workaround for auto-clock gate errata ENGcm03648
The errata, not applicable to USDHC, causes ESDHC to shut off clock to the card when auto-clock gating is enabled for commands with busy signalling and no data phase. The card might require the clock to exit the busy state, so the workaround is to disable the auto-clock gate bits in SYSCTL register for such commands. The workaround also entails polling on DAT0 bit in the PRSSTAT register to learn when busy state is complete. Auto-clock gating is re-enabled at the end of busy state. Signed-off-by: Anish Trivedi <anish@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/fsl_esdhc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index fe62c01..df73e22 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -85,6 +85,7 @@
#define IRQSTATEN_CC (0x00000001)
#define PRSSTAT 0x0002e024
+#define PRSSTAT_DAT0 (0x01000000)
#define PRSSTAT_CLSL (0x00800000)
#define PRSSTAT_WPSPL (0x00080000)
#define PRSSTAT_CDPL (0x00040000)