summaryrefslogtreecommitdiff
path: root/common/spl/spl_mmc.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-04-10 08:32:11 -0400
committerTom Rini <trini@konsulko.com>2023-04-10 08:32:11 -0400
commit11c25c6df0b56ee7eee2c4ddc7f075880daeb8c7 (patch)
treee4660057ce4770ebd72f05a365b01240b10a467c /common/spl/spl_mmc.c
parent7daa8dd59bc8455a43cdd2d0e34206e406e5cdcc (diff)
parentfbf368f176641029ac30843d4d3dbf26e384df38 (diff)
Merge https://source.denx.de/u-boot/custodians/u-boot-mmc
Diffstat (limited to 'common/spl/spl_mmc.c')
-rw-r--r--common/spl/spl_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index bd5e6adf1ea..a0722167044 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -378,7 +378,7 @@ int default_spl_mmc_emmc_boot_partition(struct mmc *mmc)
* 1 and 2 match up to boot0 / boot1 and 7 is user data
* which is the first physical partition (0).
*/
- part = (mmc->part_config >> 3) & PART_ACCESS_MASK;
+ part = EXT_CSD_EXTRACT_BOOT_PART(mmc->part_config);
if (part == 7)
part = 0;
#endif