mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue