[U-Boot] [PATCH v3 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor
Diego Santa Cruz
Diego.SantaCruz at spinetix.com
Mon Dec 15 10:27:09 CET 2014
Signed-off-by: Diego Santa Cruz <Diego.SantaCruz at spinetix.com>
---
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 7f5614e..62b945c 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1023,6 +1023,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;
}
--
1.7.1
More information about the U-Boot
mailing list