summaryrefslogtreecommitdiff
path: root/board/freescale/mx6q_sabresd
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:23:07 +0800
commit78f8d830f76a64c0b856d6da1a419a518bf034f3 (patch)
tree75eaa969b3e02b5123315afcb1b15fe7e109ad22 /board/freescale/mx6q_sabresd
parente146335a86cb9fcc2c9bc3aa686754d7ad92c673 (diff)
downloadu-boot-imx-78f8d830f76a64c0b856d6da1a419a518bf034f3.zip
u-boot-imx-78f8d830f76a64c0b856d6da1a419a518bf034f3.tar.gz
u-boot-imx-78f8d830f76a64c0b856d6da1a419a518bf034f3.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>
Diffstat (limited to 'board/freescale/mx6q_sabresd')
-rw-r--r--board/freescale/mx6q_sabresd/mx6q_sabresd.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/board/freescale/mx6q_sabresd/mx6q_sabresd.c b/board/freescale/mx6q_sabresd/mx6q_sabresd.c
index b37b776..8caca4a 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;
}