On 02/02/2017 15:56, Jagan Teki wrote: > From: Jagan Teki <ja...@amarulasolutions.com> > > 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 <sba...@denx.de> > Cc: Matteo Lisi <matteo.l...@engicam.com> > Cc: Michael Trimarchi <mich...@amarulasolutions.com> > Signed-off-by: Jagan Teki <ja...@amarulasolutions.com> > --- > board/engicam/icorem6_rqs/icorem6_rqs.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c > b/board/engicam/icorem6_rqs/icorem6_rqs.c > index f289e91..d2f9309 100644 > --- a/board/engicam/icorem6_rqs/icorem6_rqs.c > +++ b/board/engicam/icorem6_rqs/icorem6_rqs.c > @@ -47,6 +47,12 @@ int board_init(void) > } > > #ifdef CONFIG_ENV_IS_IN_MMC > +int board_mmc_get_env_dev(int devno) > +{ > + /* dev 0 for SD/eSD, dev 1 for MMC/eMMC */ > + return (devno == 3) ? 1 : 0; > +} > + > static void mmc_late_init(void) > { > char cmd[32]; >
IMHO just patch 1 has an issue - could you resubmit just that patch ? I will merge then the whole patchset. Thanks! Stefano -- Meet DENX at the Embedded World Trade Show 14 Mar - 16 Mar 2017, Nuremberg Trade Fair Centre, Hall 4, Booth 581 -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot