Skip to content
Snippets Groups Projects
Commit e1c9895c authored by Dmitry Lifshitz's avatar Dmitry Lifshitz Committed by Tom Rini
Browse files

cm-t54: fix eMMC boot mode check


Boot from eMMC boot partition corresponds to BOOT_DEVICE_MMC2
omap_bootmode, while BOOT_DEVICE_MMC2_2 corresponds to the user
data partition boot.

Fix mmc_get_env_part() boot mode check to use a correct value.

Signed-off-by: default avatarDmitry Lifshitz <lifshitz@compulab.co.il>
parent 91c9885e
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ uint mmc_get_env_part(struct mmc *mmc) ...@@ -89,7 +89,7 @@ uint mmc_get_env_part(struct mmc *mmc)
* If booted from eMMC boot partition then force eMMC * If booted from eMMC boot partition then force eMMC
* FIRST boot partition to be env storage * FIRST boot partition to be env storage
*/ */
if (bootmode == BOOT_DEVICE_MMC2_2) if (bootmode == BOOT_DEVICE_MMC2)
bootpart = 1; bootpart = 1;
return bootpart; return bootpart;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment