From: Jagan Teki Date: Mon, 20 Nov 2017 18:32:17 +0000 (+0530) Subject: engicam: imx6q: Return mmc dev 0 for icore X-Git-Tag: v2018.01-rc1~66^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b596df45672917bd18dd8a17e39bf1560fc25e0e;p=oweals%2Fu-boot.git engicam: imx6q: Return mmc dev 0 for icore icorem6 has sd on usdhci1 which is devno 0 so return proper devno from board_mmc_get_env_dev for icorem6 and icorem_6rqs Signed-off-by: Jagan Teki --- diff --git a/board/engicam/imx6q/imx6q.c b/board/engicam/imx6q/imx6q.c index bb0c866df6..fe37088b49 100644 --- a/board/engicam/imx6q/imx6q.c +++ b/board/engicam/imx6q/imx6q.c @@ -193,6 +193,7 @@ void setup_display(void) #ifdef CONFIG_ENV_IS_IN_MMC int board_mmc_get_env_dev(int devno) { - return devno - 1; + /* i.CoreM6 RQS has USDHC3 for SD and USDHC4 for eMMC */ + return (devno == 0) ? 0: (devno - 1); } #endif