diff options
author | Yangbo Lu <yangbo.lu@freescale.com> | 2015-09-17 05:27:48 +0300 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-11-02 19:50:29 +0300 |
commit | bf50be835ed1c0e2875ff7672381944eeab8695d (patch) | |
tree | e8885c6d6d420278b1b51293069ba4ffbc461080 /drivers | |
parent | 12486f38419c54b36dc9b2707bc2912734e9fe2d (diff) | |
download | u-boot-bf50be835ed1c0e2875ff7672381944eeab8695d.tar.xz |
mmc: fsl_esdhc: enable EVDD automatic control for SD/MMC Legacy Adapter Card
When detecting SDHC Adapter Card Type 2(SD/MMC Legacy Adapter Card),
enable EVDD automatic control via SDHC_VS. This could support SD card
IO voltage switching for UHS-1 speed mode.
Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/fsl_esdhc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 5c20627c1c..c5054d66bd 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -753,6 +753,9 @@ void mmc_adapter_card_type_ident(void) QIXIS_WRITE(brdcfg[5], value); break; case QIXIS_ESDHC_ADAPTER_TYPE_SDMMC_LEGACY: + value = QIXIS_READ(pwr_ctl[1]); + value |= QIXIS_EVDD_BY_SDHC_VS; + QIXIS_WRITE(pwr_ctl[1], value); break; case QIXIS_ESDHC_ADAPTER_TYPE_EMMC44: value = QIXIS_READ(brdcfg[5]); |