summaryrefslogtreecommitdiff
path: root/common/cmd_mmc.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2013-01-29 19:31:16 +0000
committerTom Rini <trini@ti.com>2013-04-17 10:58:51 -0400
commit64f4a6192f0670de2d9af98900b750a3e7bf8ce6 (patch)
tree59af4410495640014040b626c9f9ccea219ca38b /common/cmd_mmc.c
parent22a4a6c5c2ea4c5998b98e6358b351848f2b765f (diff)
downloadu-boot-imx-64f4a6192f0670de2d9af98900b750a3e7bf8ce6.zip
u-boot-imx-64f4a6192f0670de2d9af98900b750a3e7bf8ce6.tar.gz
u-boot-imx-64f4a6192f0670de2d9af98900b750a3e7bf8ce6.tar.bz2
mmc: support the correct card version for eMMC
eMMC vesrion is supported up to v4.5. But bootloader isn't saw the exact eMMC version. After applied this patch, if use the mmcinfo command, then can see the exactly mmc version. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Rommel Custodio <sessyargc@gmail.com>
Diffstat (limited to 'common/cmd_mmc.c')
-rw-r--r--common/cmd_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index 9f3d6c5..7d82469 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -106,7 +106,7 @@ static void print_mmcinfo(struct mmc *mmc)
printf("Rd Block Len: %d\n", mmc->read_bl_len);
printf("%s version %d.%d\n", IS_SD(mmc) ? "SD" : "MMC",
- (mmc->version >> 4) & 0xf, mmc->version & 0xf);
+ (mmc->version >> 8) & 0xf, mmc->version & 0xff);
printf("High Capacity: %s\n", mmc->high_capacity ? "Yes" : "No");
puts("Capacity: ");