summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorDmitry Lifshitz <lifshitz@compulab.co.il>2014-07-31 14:30:40 +0300
committerTom Rini <trini@ti.com>2014-08-25 10:48:13 -0400
commite1c9895c8f903664f23e7ce061f2836f25840954 (patch)
treebe38f2ff2b046486f3511cb506854e59b0e7bd4f /board
parent91c9885e6d80afe23040bcec743034018dfec91c (diff)
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 <lifshitz@compulab.co.il>
Diffstat (limited to 'board')
-rw-r--r--board/compulab/cm_t54/cm_t54.c2
1 files changed, 1 insertions, 1 deletions
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;