summaryrefslogtreecommitdiff
path: root/drivers/mmc/mmc.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2013-01-29 22:58:16 +0000
committerTom Rini <trini@ti.com>2013-04-17 10:58:51 -0400
commit1741c64d642a95c4bb88a2b03e96c6dc7ed5fe62 (patch)
tree84daf0f060365e85b80862436ba4488f93470bd4 /drivers/mmc/mmc.c
parent64f4a6192f0670de2d9af98900b750a3e7bf8ce6 (diff)
downloadu-boot-imx-1741c64d642a95c4bb88a2b03e96c6dc7ed5fe62.zip
u-boot-imx-1741c64d642a95c4bb88a2b03e96c6dc7ed5fe62.tar.gz
u-boot-imx-1741c64d642a95c4bb88a2b03e96c6dc7ed5fe62.tar.bz2
mmc: check the revision for sd3.0
Support to check whether the SD3.0 or not. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Tested-by: Rommel Custodio <sessyargc@gmail.com>
Diffstat (limited to 'drivers/mmc/mmc.c')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 72b7254..f65a7b0 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -784,6 +784,8 @@ retry_scr:
break;
case 2:
mmc->version = SD_VERSION_2;
+ if ((mmc->scr[0] >> 15) & 0x1)
+ mmc->version = SD_VERSION_3;
break;
default:
mmc->version = SD_VERSION_1_0;