mmc: computation of eMMC GP partition size was missing 512 KiB factor

Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
This commit is contained in:
Diego Santa Cruz 2014-12-23 10:50:21 +01:00 committed by Pantelis Antoniou
parent 0c453bb76c
commit f8e89d6716

View file

@ -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;
}