diff options
Diffstat (limited to 'board/freescale/mx6q_sabresd')
-rw-r--r-- | board/freescale/mx6q_sabresd/mx6q_sabresd.c | 19 |
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; } |