summaryrefslogtreecommitdiff
path: root/include/fsl_esdhc.h
diff options
context:
space:
mode:
authorAnish Trivedi <anish@freescale.com>2011-10-19 13:51:30 -0500
committerAnish Trivedi <anish@freescale.com>2011-10-27 15:56:23 -0500
commitec10ca317794cd7e83e11df57e89085046ccd940 (patch)
treeb48157b44d03963573adf2b3fefc1721097a3645 /include/fsl_esdhc.h
parent1b69b48bbaacca9b355a56598ae5e7342442251f (diff)
downloadu-boot-imx-ec10ca317794cd7e83e11df57e89085046ccd940.zip
u-boot-imx-ec10ca317794cd7e83e11df57e89085046ccd940.tar.gz
u-boot-imx-ec10ca317794cd7e83e11df57e89085046ccd940.tar.bz2
ENGR00139221 USDHC Add SDXC UHS-I support
Modified MMC library for UHS-I command sequence Added support to USDHC driver for UHS-I Signed-off-by: Anish Trivedi <anish@freescale.com>
Diffstat (limited to 'include/fsl_esdhc.h')
-rw-r--r--include/fsl_esdhc.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index df73e22..da7e584 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -29,6 +29,11 @@
#include <asm/errno.h>
/* FSL eSDHC-specific constants */
+
+#define VENDORSPEC_VSELECT 0x00000002
+#define VENDORSPEC_FRC_SDCLK_ON 0x00000100
+#define VENDORSPEC_INIT 0x20007809
+
#define SYSCTL 0x0002e02c
#define SYSCTL_INITA 0x08000000
#define SYSCTL_TIMEOUT_MASK 0x000f0000
@@ -97,7 +102,7 @@
#define PRSSTAT_CIDHB (0x00000001)
#define PROCTL 0x0002e028
-#define PROCTL_INIT 0x00000020
+#define PROCTL_INIT 0x08800020
#define PROCTL_DTW_4 0x00000002
#define PROCTL_DTW_8 0x00000004
#define PROCTL_D3CD 0x00000008
@@ -173,11 +178,20 @@
#define USDHC_DLL_LOW_MASK 0xF
#define USDHC_DLL_HIGH_SHIFT 4
+#define USDHC_MIXCTRL_EXE_TUNE 0x00400000
+#define USDHC_MIXCTRL_SMPCLK_SEL 0x00800000
+#define USDHC_MIXCTRL_FBCLK_SEL 0x02000000
+
+#define USDHC_TUNE_CTRL_STEP 0x1
+#define USDHC_TUNE_CTRL_MIN 0x0
+#define USDHC_TUNE_CTRL_MAX ((1 << 7) - 1)
+
struct fsl_esdhc_cfg {
u32 esdhc_base;
u32 no_snoop;
u32 clk_enable;
u32 is_usdhc;
+ u32 port_supports_uhs18v;
};
#if defined(CONFIG_FSL_ESDHC) || defined(CONFIG_IMX_MMC)