From: Diego Santa Cruz Date: Tue, 23 Dec 2014 09:50:21 +0000 (+0100) Subject: mmc: computation of eMMC GP partition size was missing 512 KiB factor X-Git-Tag: v2015.04-rc1~69^2~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f8e89d67166bbcd34a3144b8001b3819b58d02c9;p=oweals%2Fu-boot.git mmc: computation of eMMC GP partition size was missing 512 KiB factor Signed-off-by: Diego Santa Cruz --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 5e9926cddf..86c4db9f6f 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1026,6 +1026,7 @@ static int mmc_startup(struct mmc *mmc) mmc->capacity_gp[i] *= ext_csd[EXT_CSD_HC_ERASE_GRP_SIZE]; mmc->capacity_gp[i] *= ext_csd[EXT_CSD_HC_WP_GRP_SIZE]; + mmc->capacity_gp[i] <<= 19; if (mmc->capacity_gp[i]) has_parts = true; }