summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorAlagu Sankar <alagusankar@embwise.com>2010-05-12 15:08:24 +0530
committerAndy Fleming <afleming@freescale.com>2011-04-13 03:50:43 -0500
commitb44c70837a87bcd92b76a94e49b85d7656cb2a11 (patch)
treeacb94847132447c36f464c75724f2e0c473421d2 /drivers/mmc
parentb16aadf411280fc426d7488ddd8a5b2038b7194d (diff)
downloadu-boot-imx-b44c70837a87bcd92b76a94e49b85d7656cb2a11.zip
u-boot-imx-b44c70837a87bcd92b76a94e49b85d7656cb2a11.tar.gz
u-boot-imx-b44c70837a87bcd92b76a94e49b85d7656cb2a11.tar.bz2
SD1.00 wide-bus fix
Fixed a bug wherein SD version 1.0 cards were not configured for 4-bit mode Signed-off-by: Alagu Sankar <alagusankar@embwise.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 6805b33..9988cb1 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -512,6 +512,9 @@ retry_scr:
break;
}
+ if (mmc->scr[0] & SD_DATA_4BIT)
+ mmc->card_caps |= MMC_MODE_4BIT;
+
/* Version 1.0 doesn't support switching */
if (mmc->version == SD_VERSION_1_0)
return 0;
@@ -529,9 +532,6 @@ retry_scr:
break;
}
- if (mmc->scr[0] & SD_DATA_4BIT)
- mmc->card_caps |= MMC_MODE_4BIT;
-
/* If high-speed isn't supported, we return */
if (!(__be32_to_cpu(switch_status[3]) & SD_HIGHSPEED_SUPPORTED))
return 0;