summaryrefslogtreecommitdiffstats
path: root/include/fsl_esdhc.h
diff options
context:
space:
mode:
authorPeng Fan <van.freenix@gmail.com>2016-06-15 10:53:00 +0800
committerYork Sun <york.sun@nxp.com>2016-06-28 12:08:53 -0700
commitf53225cce406058c09cf81456d9dc4956fef1b73 (patch)
tree005e441c99059d6894d419cb91982ca29d031ca7 /include/fsl_esdhc.h
parent68aaa980c488696fa6f71109e53e819b02455e33 (diff)
downloadtalos-obmc-uboot-f53225cce406058c09cf81456d9dc4956fef1b73.tar.gz
talos-obmc-uboot-f53225cce406058c09cf81456d9dc4956fef1b73.zip
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 <van.freenix@gmail.com> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Cc: York Sun <york.sun@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Tested-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/fsl_esdhc.h')
-rw-r--r--include/fsl_esdhc.h6
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