imx: mx6: implement board_mmc_get_env_dev
authorPeng Fan <peng.fan@nxp.com>
Thu, 28 Jan 2016 08:51:27 +0000 (16:51 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 4 Feb 2016 09:13:53 +0000 (10:13 +0100)
commitfb0d042814e6ea3463ee335523222f91d891d084
tree795b3a845ef3c13ab138022ce28fdc09332ac047
parent216d286c7e3d3d83d4d8ccaf0415192e1b1040c0
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>
board/freescale/mx6qarm2/mx6qarm2.c
board/freescale/mx6sabresd/mx6sabresd.c
board/freescale/mx6slevk/mx6slevk.c
board/freescale/mx6sxsabresd/mx6sxsabresd.c