summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx6q_sabresd/mx6q_sabresd.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/board/freescale/mx6q_sabresd/mx6q_sabresd.c b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
index 8caca4a..6f866aa 100644
--- a/board/freescale/mx6q_sabresd/mx6q_sabresd.c
+++ b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
@@ -1778,12 +1778,16 @@ int board_late_init(void)
#ifdef MX6Q_SABRESD_ANDROID_H
switch (get_boot_device()) {
case SD_BOOT:
- setenv("fastboot_dev", "mmc2");
- setenv("bootcmd", "booti mmc2");
+ if (!getenv("fastboot_dev"))
+ setenv("fastboot_dev", "mmc2");
+ if (!getenv("bootcmd"))
+ setenv("bootcmd", "booti mmc2");
break;
case MMC_BOOT:
- setenv("fastboot_dev", "mmc3");
- setenv("bootcmd", "booti mmc3");
+ if (!getenv("fastboot_dev"))
+ setenv("fastboot_dev", "mmc3");
+ if (!getenv("bootcmd"))
+ setenv("bootcmd", "booti mmc3");
break;
default:
printf("unsupported boot devices\n");