[U-Boot] [PATCH v4 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor
Diego Santa Cruz
Diego.SantaCruz at spinetix.com
Tue Dec 23 10:50:21 CET 2014
Signed-off-by: Diego Santa Cruz <Diego.SantaCruz at spinetix.com>
---
drivers/mmc/mmc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 5e9926c..86c4db9 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;
}
--
2.2.1
More information about the U-Boot
mailing list