From: Jagan Teki Date: Fri, 24 Feb 2017 10:15:26 +0000 (+0530) Subject: i.MX6Q: isiot: Switch the mmc env based on devno X-Git-Tag: v2017.05-rc1~49^2~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ea79a98c49f91504fec64294331227329953c73;p=u-boot i.MX6Q: isiot: Switch the mmc env based on devno Add board_mmc_get_env_dev Switch the mmc env based on the mmc devno, instead of separately defining a config item in include/configs using board_mmc_get_env_dev - devno 0: sd/esd - devno 1: mmc/emmc Cc: Stefano Babic Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- diff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c b/board/engicam/icorem6_rqs/icorem6_rqs.c index 04fb0c2028..01380f1269 100644 --- a/board/engicam/icorem6_rqs/icorem6_rqs.c +++ b/board/engicam/icorem6_rqs/icorem6_rqs.c @@ -47,6 +47,12 @@ int board_init(void) } #ifdef CONFIG_ENV_IS_IN_MMC +int board_mmc_get_env_dev(int devno) +{ + /* dev 0 for SD/eSD, dev 1 for MMC/eMMC */ + return (devno == 3) ? 1 : 0; +} + static void mmc_late_init(void) { char cmd[32];