diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-mx6/mx6_pins.h | 4 | ||||
-rw-r--r-- | include/configs/mx6q_sabreauto.h | 2 | ||||
-rw-r--r-- | include/fsl_esdhc.h | 16 |
3 files changed, 16 insertions, 6 deletions
diff --git a/include/asm-arm/arch-mx6/mx6_pins.h b/include/asm-arm/arch-mx6/mx6_pins.h index 2cc7114..f64473a 100644 --- a/include/asm-arm/arch-mx6/mx6_pins.h +++ b/include/asm-arm/arch-mx6/mx6_pins.h @@ -48,8 +48,8 @@ typedef enum iomux_config { PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS) #define MX6Q_USDHC_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ - PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | \ - PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS) + PAD_CTL_PUS_47K_UP | PAD_CTL_SPEED_LOW | \ + PAD_CTL_DSE_80ohm | PAD_CTL_SRE_FAST | PAD_CTL_HYS) #define MX6Q_ENET_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \ PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | \ diff --git a/include/configs/mx6q_sabreauto.h b/include/configs/mx6q_sabreauto.h index 34d53bc..32247c0 100644 --- a/include/configs/mx6q_sabreauto.h +++ b/include/configs/mx6q_sabreauto.h @@ -183,6 +183,8 @@ #define CONFIG_BOOT_PARTITION_ACCESS /* SD3 and SD4 are 8 bit */ #define CONFIG_MMC_8BIT_PORTS 0xC + /* Setup target delay in DDR mode for each SD port */ + #define CONFIG_GET_DDR_TARGET_DELAY #endif /* 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) |