diff options
author | Diego Santa Cruz <Diego.SantaCruz@spinetix.com> | 2014-12-23 10:50:21 +0100 |
---|---|---|
committer | Pantelis Antoniou <pantelis.antoniou@konsulko.com> | 2015-01-19 17:02:29 +0200 |
commit | f8e89d67166bbcd34a3144b8001b3819b58d02c9 (patch) | |
tree | 883664bbbe0209fff253435516562a74dd6acc10 /drivers/mmc | |
parent | 0c453bb76c9578139e1c43e4f0d7a5575fafce8e (diff) | |
download | talos-obmc-uboot-f8e89d67166bbcd34a3144b8001b3819b58d02c9.tar.gz talos-obmc-uboot-f8e89d67166bbcd34a3144b8001b3819b58d02c9.zip |
mmc: computation of eMMC GP partition size was missing 512 KiB factor
Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/mmc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |