aboutsummaryrefslogtreecommitdiff
path: root/board/freescale/mx6qarm2
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-01-28 16:51:27 +0800
committerStefano Babic <sbabic@denx.de>2016-02-04 10:13:53 +0100
commitfb0d042814e6ea3463ee335523222f91d891d084 (patch)
tree795b3a845ef3c13ab138022ce28fdc09332ac047 /board/freescale/mx6qarm2
parent216d286c7e3d3d83d4d8ccaf0415192e1b1040c0 (diff)
downloadu-boot-fb0d042814e6ea3463ee335523222f91d891d084.zip
u-boot-fb0d042814e6ea3463ee335523222f91d891d084.tar.gz
u-boot-fb0d042814e6ea3463ee335523222f91d891d084.tar.bz2
imx: mx6: implement board_mmc_get_env_dev
Implement board_mmc_get_env_dev for the boards. Following is examples: SD1/SD2/SD3: return devno; SD2/SD3: return devno - 1; SD2/SD4: if (devno == 2), return dev - 2; return dev - 1; Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/freescale/mx6qarm2')
-rw-r--r--board/freescale/mx6qarm2/mx6qarm2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c
index 98ccdb7..5aae721 100644
--- a/board/freescale/mx6qarm2/mx6qarm2.c
+++ b/board/freescale/mx6qarm2/mx6qarm2.c
@@ -110,6 +110,11 @@ struct fsl_esdhc_cfg usdhc_cfg[2] = {
{USDHC4_BASE_ADDR},
};
+int board_mmc_get_env_dev(int devno)
+{
+ return devno - 2;
+}
+
int board_mmc_getcd(struct mmc *mmc)
{
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;