aboutsummaryrefslogtreecommitdiff
path: root/include/fsl_esdhc.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2021-03-17 15:01:37 +0100
committerPeng Fan <peng.fan@nxp.com>2021-04-06 18:36:04 +0800
commitd3b745f7d00d07767a0ed85a6b139feeb8df9aaf (patch)
tree3acce1e9caed60d740445948f654d35f6445e731 /include/fsl_esdhc.h
parentbd7b8505f2c0c87785488a040ff7d2711465b401 (diff)
downloadu-boot-d3b745f7d00d07767a0ed85a6b139feeb8df9aaf.zip
u-boot-d3b745f7d00d07767a0ed85a6b139feeb8df9aaf.tar.gz
u-boot-d3b745f7d00d07767a0ed85a6b139feeb8df9aaf.tar.bz2
mmc: fsl_esdhc: add pulse width detection workaround
HS400 mode on the LS1028A SoC isn't reliable. The linux driver has a workaroung for the pulse width detection. Apply this workaround in u-boot, too. This will make HS400 mode work reliably on the LS1028A SoC. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/fsl_esdhc.h')
-rw-r--r--include/fsl_esdhc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index 850a304..f86afe5 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -190,6 +190,9 @@
#define DLL_RESET 0x40000000
#define DLL_FREQ_SEL 0x08000000
+/* DLL config 1 register */
+#define DLL_PD_PULSE_STRETCH_SEL 0x80000000
+
/* DLL status 0 register */
#define DLL_STS_SLV_LOCK 0x08000000