提交 e1c9895c 编写于 作者: D Dmitry Lifshitz 提交者: Tom Rini

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: NDmitry Lifshitz <lifshitz@compulab.co.il>
上级 91c9885e
......@@ -89,7 +89,7 @@ uint mmc_get_env_part(struct mmc *mmc)
* If booted from eMMC boot partition then force eMMC
* FIRST boot partition to be env storage
*/
if (bootmode == BOOT_DEVICE_MMC2_2)
if (bootmode == BOOT_DEVICE_MMC2)
bootpart = 1;
return bootpart;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册