summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2023-04-10 08:32:11 -0400
committerTom Rini <[email protected]>2023-04-10 08:32:11 -0400
commit11c25c6df0b56ee7eee2c4ddc7f075880daeb8c7 (patch)
treee4660057ce4770ebd72f05a365b01240b10a467c /board
parent7daa8dd59bc8455a43cdd2d0e34206e406e5cdcc (diff)
parentfbf368f176641029ac30843d4d3dbf26e384df38 (diff)
Merge https://source.denx.de/u-boot/custodians/u-boot-mmc
Diffstat (limited to 'board')
-rw-r--r--board/purism/librem5/librem5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/purism/librem5/librem5.c b/board/purism/librem5/librem5.c
index caa02655fc4..386ed1b4fb2 100644
--- a/board/purism/librem5/librem5.c
+++ b/board/purism/librem5/librem5.c
@@ -41,7 +41,7 @@ int board_early_init_f(void)
#if IS_ENABLED(CONFIG_LOAD_ENV_FROM_MMC_BOOT_PARTITION)
uint board_mmc_get_env_part(struct mmc *mmc)
{
- uint part = (mmc->part_config >> 3) & PART_ACCESS_MASK;
+ uint part = EXT_CSD_EXTRACT_BOOT_PART(mmc->part_config);
if (part == 7)
part = 0;