summaryrefslogtreecommitdiff
path: root/include/fsl_esdhc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fsl_esdhc.h')
-rw-r--r--include/fsl_esdhc.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index 08e62a5..fe62c01 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -151,10 +151,8 @@
#define ESDHC_HOSTVER_VVN_MASK 0x0000ff00
#define ESDHC_HOSTVER_VVN_SHIFT 8
-#define ESDHC_HOSTVER_DDR_SUPPORT 0x13
-#define USDHC_HOSTVER_VVN 0x0
-
-#define SDHC_IS_USDHC(x) (x == USDHC_HOSTVER_VVN)
+#define ESDHC_HOSTVER_SVN_MASK 0x000000ff
+#define ESDHC_HOSTVER_SVN_SHIFT 0
#define ESDHC_DLLCTRL_SLV_OVERRIDE_VAL 12
#define ESDHC_DLLCTRL_SLV_OVERRIDE_VAL_MASK 0x0000FC00
@@ -165,10 +163,20 @@
#define ESDHC_DLL_TARGET_DEFAULT_VAL 4
#define ESDHC_DLLSTS_SLV_LOCK_MASK 0x00000001
+#define USDHC_DLLCTRL_SLV_OVERRIDE_VAL_MASK 0x0000FE00
+#define USDHC_DLLCTRL_SLV_OVERRIDE_VAL_SHIFT 9
+#define USDHC_DLLCTRL_SLV_OVERRIDE 0x100
+#define USDHC_DLLCTRL_TARGET_MASK 0x00070078
+#define USDHC_DLLCTRL_TARGET_LOW_SHIFT 3
+#define USDHC_DLLCTRL_TARGET_HIGH_SHIFT 16
+#define USDHC_DLL_LOW_MASK 0xF
+#define USDHC_DLL_HIGH_SHIFT 4
+
struct fsl_esdhc_cfg {
u32 esdhc_base;
u32 no_snoop;
u32 clk_enable;
+ u32 is_usdhc;
};
#if defined(CONFIG_FSL_ESDHC) || defined(CONFIG_IMX_MMC)