aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaibo Chen <haibo.chen@nxp.com>2021-03-22 18:55:37 +0800
committerStefano Babic <sbabic@denx.de>2021-04-08 23:59:50 +0200
commit1e595a81d9bc0d6fd30e3ba17e3f8a9278a381f8 (patch)
tree0007088021154a9e2cac1542e75d357ba3d6cdb6
parentba7e5dbf383b7094a3e65241660864c4fe78e20d (diff)
downloadu-boot-1e595a81d9bc0d6fd30e3ba17e3f8a9278a381f8.zip
u-boot-1e595a81d9bc0d6fd30e3ba17e3f8a9278a381f8.tar.gz
u-boot-1e595a81d9bc0d6fd30e3ba17e3f8a9278a381f8.tar.bz2
mmc: fsl_esdhc_imx: remove redundant cmd11 related code.
Common code already handle the voltage switch sequence based on spec, so remove the redundant voltage switch code. Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
-rw-r--r--drivers/mmc/fsl_esdhc_imx.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index 420bd25..93fd934 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -521,15 +521,6 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc,
goto out;
}
- /* Switch voltage to 1.8V if CMD11 succeeded */
- if (cmd->cmdidx == SD_CMD_SWITCH_UHS18V) {
- esdhc_setbits32(&regs->vendorspec, ESDHC_VENDORSPEC_VSELECT);
-
- printf("Run CMD11 1.8V switch\n");
- /* Sleep for 5 ms - max time for card to switch to 1.8V */
- udelay(5000);
- }
-
/* Workaround for ESDHC errata ENGcm03648 */
if (!data && (cmd->resp_type & MMC_RSP_BUSY)) {
int timeout = 50000;