]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc/esdhc: Add 3.3v voltage support in esdhc capacity register
authorHaijun.Zhang <Haijun.Zhang@freescale.com>
Thu, 31 Oct 2013 01:38:19 +0000 (09:38 +0800)
committerPantelis Antoniou <panto@antoniou-consulting.com>
Thu, 31 Oct 2013 07:55:34 +0000 (09:55 +0200)
T4240QDS eSDHC host capabilities reigster should have VS33 bit define.
Add quirk CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 to deal with capacity
missing

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
drivers/mmc/fsl_esdhc.c
include/configs/T4240QDS.h

index 1f9c305131b4284b1585e0ac0d121d501fdac0e4..e3cd0c777e3e393ffed90b84998b7696399c5d10 100644 (file)
@@ -557,6 +557,12 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
        caps = caps & ~(ESDHC_HOSTCAPBLT_SRS |
                        ESDHC_HOSTCAPBLT_VS18 | ESDHC_HOSTCAPBLT_VS30);
 #endif
+
+/* T4240 host controller capabilities register should have VS33 bit */
+#ifdef CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
+       caps = caps | ESDHC_HOSTCAPBLT_VS33;
+#endif
+
        if (caps & ESDHC_HOSTCAPBLT_VS18)
                voltage_caps |= MMC_VDD_165_195;
        if (caps & ESDHC_HOSTCAPBLT_VS30)
index 590799cf59f50ad9e576bd4ad7adc42dc17677f4..3777ccb835d70fd8f83d620896ea927af2d58cd6 100644 (file)
@@ -463,6 +463,7 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_CMD_EXT2
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
+#define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
 #endif
 
 #define CONFIG_BOOTDELAY       10      /* -1 disables auto-boot */