diff mbox

[U-Boot,2/3] cm-t54: fix eMMC boot mode check

Message ID 1406806241-16813-3-git-send-email-lifshitz@compulab.co.il
State Awaiting Upstream
Delegated to: Tom Rini
Headers show

Commit Message

Dmitry Lifshitz July 31, 2014, 11:30 a.m. UTC
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>
---
 board/compulab/cm_t54/cm_t54.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Tom Rini Aug. 25, 2014, 7:17 p.m. UTC | #1
On Thu, Jul 31, 2014 at 02:30:40PM +0300, Dmitry Lifshitz wrote:

> 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>

Applied to u-boot-ti/master, thanks!
diff mbox

Patch

diff --git a/board/compulab/cm_t54/cm_t54.c b/board/compulab/cm_t54/cm_t54.c
index 306491b..944b723 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;