diff options
author | Anish Trivedi <anish@freescale.com> | 2011-09-13 18:21:30 -0500 |
---|---|---|
committer | Anish Trivedi <anish@freescale.com> | 2011-09-13 18:32:07 -0500 |
commit | e2c4083c4b9afffdc64d6916ab69bd596ed10fc0 (patch) | |
tree | 930199d386852f4b274dcef7d0662ef075b2ae51 /common | |
parent | a77c6fec8596891be96b2cdbc742c9824844b92a (diff) | |
download | u-boot-imx-e2c4083c4b9afffdc64d6916ab69bd596ed10fc0.zip u-boot-imx-e2c4083c4b9afffdc64d6916ab69bd596ed10fc0.tar.gz u-boot-imx-e2c4083c4b9afffdc64d6916ab69bd596ed10fc0.tar.bz2 |
ENGR00156670-2 MMC: Fixed some bugs in common code
Need to send RCA when sending CMD13.
Cannot use print_size function when displaying card capacity
because it expects a 32 bit integer as input, while mmc->capacity
is a 64 bit integer. There is loss of information leading to incorrect
capacities being displayed for "mmcinfo" cmd. Changed it to simply
print the entire 64 bit integer, which is the number of bytes.
Signed-off-by: Tony Lin <tony.lin@freescale.com>
Signed-off-by: Anish Trivedi <anish@freescale.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index d82f2db..85f0200 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -113,7 +113,7 @@ static void print_mmcinfo(struct mmc *mmc) printf("High Capacity: %s\n", mmc->high_capacity ? "Yes" : "No"); puts("Capacity: "); - print_size(mmc->capacity, "\n"); + printf("%lld Bytes\n", mmc->capacity); printf("Bus Width: %d-bit %s\n", mmc->bus_width, (mmc->card_caps & EMMC_MODE_4BIT_DDR || |