summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Fuzhen <fuzhen.lin@freescale.com>2013-06-19 14:24:09 +0800
committerLin Fuzhen <fuzhen.lin@freescale.com>2013-06-19 15:22:03 +0800
commit3b76c5db3a8f703ab626d3f27fd7f445efa88ad8 (patch)
tree9b99a9844c2d07e21f2f301b9073f4bab3612774
parentd1b4e0f520584486691791a46485706409fc6e20 (diff)
downloadu-boot-imx-3b76c5db3a8f703ab626d3f27fd7f445efa88ad8.zip
u-boot-imx-3b76c5db3a8f703ab626d3f27fd7f445efa88ad8.tar.gz
u-boot-imx-3b76c5db3a8f703ab626d3f27fd7f445efa88ad8.tar.bz2
ENGR00266869-2 imx6x sabresd: correct the bootargs for android
The original design set the boot params default for eMMC on sabrsd This patch corrects env setting according boot device which is selected. Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
-rw-r--r--board/freescale/mx6q_sabresd/mx6q_sabresd.c19
-rw-r--r--include/configs/mx6dl_sabresd_android.h2
-rw-r--r--include/configs/mx6q_sabresd_android.h2
3 files changed, 17 insertions, 6 deletions
diff --git a/board/freescale/mx6q_sabresd/mx6q_sabresd.c b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
index 32f23ac..ca88080 100644
--- a/board/freescale/mx6q_sabresd/mx6q_sabresd.c
+++ b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
@@ -1775,13 +1775,28 @@ int check_recovery_cmd_file(void)
int board_late_init(void)
{
int ret = 0;
- #ifdef CONFIG_I2C_MXC
+#ifdef MX6Q_SABRESD_ANDROID_H
+ switch (get_boot_device()) {
+ case SD_BOOT:
+ setenv("fastboot_dev", "mmc2");
+ setenv("bootcmd", "booti mmc2");
+ break;
+ case MMC_BOOT:
+ setenv("fastboot_dev", "mmc3");
+ setenv("bootcmd", "booti mmc3");
+ break;
+ default:
+ printf("unsupported boot devices\n");
+ break;
+ }
+#endif
+#ifdef CONFIG_I2C_MXC
setup_i2c(CONFIG_SYS_I2C_PORT);
i2c_bus_recovery();
ret = setup_pmic_voltages();
if (ret)
return -1;
- #endif
+#endif
return 0;
}
diff --git a/include/configs/mx6dl_sabresd_android.h b/include/configs/mx6dl_sabresd_android.h
index f903e99..de8e5f1 100644
--- a/include/configs/mx6dl_sabresd_android.h
+++ b/include/configs/mx6dl_sabresd_android.h
@@ -76,8 +76,6 @@
#define CONFIG_EXTRA_ENV_SETTINGS \
"netdev=eth0\0" \
"ethprime=FEC0\0" \
- "fastboot_dev=mmc3\0" \
- "bootcmd=booti mmc3\0" \
"splashimage=0x30000000\0" \
"splashpos=m,m\0" \
"lvds_num=1\0"
diff --git a/include/configs/mx6q_sabresd_android.h b/include/configs/mx6q_sabresd_android.h
index 4094cbe..db92812 100644
--- a/include/configs/mx6q_sabresd_android.h
+++ b/include/configs/mx6q_sabresd_android.h
@@ -73,8 +73,6 @@
#define CONFIG_EXTRA_ENV_SETTINGS \
"netdev=eth0\0" \
"ethprime=FEC0\0" \
- "fastboot_dev=mmc3\0" \
- "bootcmd=booti mmc3\0" \
"splashimage=0x30000000\0" \
"splashpos=m,m\0" \
"lvds_num=1\0"