i.MX6Q: isiot: Switch the mmc env based on devno
authorJagan Teki <jagan@amarulasolutions.com>
Fri, 24 Feb 2017 10:15:26 +0000 (15:45 +0530)
committerStefano Babic <sbabic@denx.de>
Fri, 17 Mar 2017 08:27:08 +0000 (09:27 +0100)
commit2ea79a98c49f91504fec64294331227329953c73
tree32d49a93095096013a8735b359e112cb80cbf6ee
parentd98fd1323c7e4ad687bfdc002a8a7e7d9e8ab144
i.MX6Q: isiot: Switch the mmc env based on devno

Add board_mmc_get_env_dev

Switch the mmc env based on the mmc devno, instead of separately
defining a config item in include/configs using board_mmc_get_env_dev
- devno 0: sd/esd
- devno 1: mmc/emmc

Cc: Stefano Babic <sbabic@denx.de>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
board/engicam/icorem6_rqs/icorem6_rqs.c