From: Dmitry Lifshitz Date: Thu, 31 Jul 2014 11:30:40 +0000 (+0300) Subject: cm-t54: fix eMMC boot mode check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e1c9895c8f903664f23e7ce061f2836f25840954;p=project%2Fbcm63xx%2Fu-boot.git 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: Dmitry Lifshitz --- diff --git a/board/compulab/cm_t54/cm_t54.c b/board/compulab/cm_t54/cm_t54.c index 306491b11b..944b7234d6 100644 --- a/board/compulab/cm_t54/cm_t54.c +++ b/board/compulab/cm_t54/cm_t54.c @@ -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;