diff options
author | Tom Rini <trini@ti.com> | 2015-02-23 16:18:06 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2015-02-23 16:18:06 -0500 |
commit | 38dac81b3d0e777f301ca98100bfbcab01d616c2 (patch) | |
tree | aeaeec6a0e430c22085350a25b4cd48e3aef6eff /common/cmd_mmc.c | |
parent | ded4bc3a8ba6e96811f761b358b4c628ec927ade (diff) | |
parent | f88a429f1179c9d9ab2883fba0ed0aa13c9bd72e (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-mmc
Diffstat (limited to 'common/cmd_mmc.c')
-rw-r--r-- | common/cmd_mmc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 4e28c9d7a4..1335e3d344 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -85,8 +85,12 @@ static void print_mmcinfo(struct mmc *mmc) printf("Tran Speed: %d\n", mmc->tran_speed); printf("Rd Block Len: %d\n", mmc->read_bl_len); - printf("%s version %d.%d\n", IS_SD(mmc) ? "SD" : "MMC", - (mmc->version >> 8) & 0xf, mmc->version & 0xff); + printf("%s version %d.%d", IS_SD(mmc) ? "SD" : "MMC", + EXTRACT_SDMMC_MAJOR_VERSION(mmc->version), + EXTRACT_SDMMC_MINOR_VERSION(mmc->version)); + if (EXTRACT_SDMMC_CHANGE_VERSION(mmc->version) != 0) + printf(".%d", EXTRACT_SDMMC_CHANGE_VERSION(mmc->version)); + printf("\n"); printf("High Capacity: %s\n", mmc->high_capacity ? "Yes" : "No"); puts("Capacity: "); |