summaryrefslogtreecommitdiff
path: root/board/engicam
diff options
context:
space:
mode:
authorJagan Teki <jagannadh.teki@gmail.com>2017-11-21 00:02:17 +0530
committerStefano Babic <sbabic@denx.de>2017-11-27 10:36:40 +0100
commitb596df45672917bd18dd8a17e39bf1560fc25e0e (patch)
treefc930583967de947c3b0b5c197c1f30f435c3a07 /board/engicam
parent52aaddd6f415397bb2eae0d68a8cc1c5c4a98bb3 (diff)
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 <jagan@amarulasolutions.com>
Diffstat (limited to 'board/engicam')
-rw-r--r--board/engicam/imx6q/imx6q.c3
1 files changed, 2 insertions, 1 deletions
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