path: root/include
diff options
authorPeng Fan <>2016-06-15 10:53:00 +0800
committerYork Sun <>2016-06-28 12:08:53 -0700
commitf53225cce406058c09cf81456d9dc4956fef1b73 (patch)
tree005e441c99059d6894d419cb91982ca29d031ca7 /include
parent68aaa980c488696fa6f71109e53e819b02455e33 (diff)
mmc: fsl: reset to normal boot mode when eMMC fast boot
When booting in eMMC fast boot, MMC host does not exit from boot mode after bootrom loading image. So the first command 'CMD0' sent in uboot will pull down the CMD line to low and cause errors. This patch cleans the MMC boot register in "mmc_init" to put the MMC host back to normal mode. Also clear DLL_CTRL delay line settings at USDHC initialization to eliminate the pre-settings from boot rom. Signed-off-by: Peng Fan <> Cc: Pantelis Antoniou <> Cc: York Sun <> Cc: Stefano Babic <> Cc: Fabio Estevam <> Tested-by: Fabio Estevam <> Reviewed-by: York Sun <>
Diffstat (limited to 'include')
1 files changed, 6 insertions, 0 deletions
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index fa760a57fb..78c67c880a 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -35,6 +35,12 @@
#define SYSCTL_RSTC 0x02000000
#define SYSCTL_RSTD 0x04000000
+#define VENDORSPEC_CKEN 0x00004000
+#define VENDORSPEC_PEREN 0x00002000
+#define VENDORSPEC_HCKEN 0x00001000
+#define VENDORSPEC_IPGEN 0x00000800
+#define VENDORSPEC_INIT 0x20007809
#define IRQSTAT 0x0002e030
#define IRQSTAT_DMAE (0x10000000)
#define IRQSTAT_AC12E (0x01000000)
OpenPOWER on IntegriCloud