aboutsummaryrefslogtreecommitdiffstats
path: root/board/engicam
diff options
context:
space:
mode:
authorJagan Teki <jagannadh.teki@gmail.com>2017-11-21 00:02:15 +0530
committerStefano Babic <sbabic@denx.de>2017-11-27 10:36:40 +0100
commit539b1e228f0dda602e4b64ccbdf0d338988dec6c (patch)
tree1f71ff3ccae54dd157c35b2902fcc1f906c5c85f /board/engicam
parent152038ea1886782fff6f1c7ca5f3aaa2da9a66fb (diff)
downloadu-boot-midas-539b1e228f0dda602e4b64ccbdf0d338988dec6c.tar.gz
u-boot-midas-539b1e228f0dda602e4b64ccbdf0d338988dec6c.tar.bz2
u-boot-midas-539b1e228f0dda602e4b64ccbdf0d338988dec6c.zip
board: icore-rqs: Fix mmc get env device
As per USDHC boot eFUSE descriptions: USDHC3 => devno 2 USDHC4 => devno 3 Linux will detect mmc0, mmc1, mmc2 based on the status "okay" on usdhc so imx6qdl-icore-rqs.dtsi has enabled usdhc1, usdhc3 and usdhc4.But U-Boot can detect based on the aliases so add mmc1, mmc2 for usdhc3 and usdhc4 respectively and return the board_mmc_get_env_dev by subtracting -1 Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'board/engicam')
-rw-r--r--board/engicam/icorem6_rqs/icorem6_rqs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c b/board/engicam/icorem6_rqs/icorem6_rqs.c
index cd73dfa9ba..a55a754bc7 100644
--- a/board/engicam/icorem6_rqs/icorem6_rqs.c
+++ b/board/engicam/icorem6_rqs/icorem6_rqs.c
@@ -13,7 +13,7 @@ DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_ENV_IS_IN_MMC
int board_mmc_get_env_dev(int devno)
{
- return devno;
+ return devno - 1;
}
#endif