From: Jagan Teki Date: Tue, 21 Nov 2017 00:02:17 +0530 Subject: [U-Boot] [PATCH v3 8/9] engicam: imx6q: Return mmc dev 0 for icore In-Reply-To: <1511202738-17448-1-git-send-email-jagan@amarulasolutions.com> References: <1511202738-17448-1-git-send-email-jagan@amarulasolutions.com> Message-ID: <1511202738-17448-9-git-send-email-jagan@amarulasolutions.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- board/engicam/imx6q/imx6q.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/engicam/imx6q/imx6q.c b/board/engicam/imx6q/imx6q.c index bb0c866..fe37088 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 -- 2.7.4