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:
parent
0c453bb76c
commit
f8e89d6716
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue