u-boot/board/st
Patrick Delaunay 9f97193616 board: stm32mp1: use CONFIG_SYS_MMC_ENV_DEV when available
Check whether user has explicitly defined the mmc device to use
in mmc_get_env_dev() with CONFIG_SYS_MMC_ENV_DEV.

On STMicroelectronics boards the used mmc device for environment is
the instance of boot device provided by the ROM code; the mmc instance
is configured by alias in device tree. The used partition is defined in
device tree with u-boot,mmc-env-partition = "ssbl".

This patch allows to override this selection for the support of customer
boards without alias; for example when SDMMC1 is not used and ENV in
mmc0=SDMMC2, user can force the value: CONFIG_SYS_MMC_ENV_DEV = 0.

On STMicroelectronics boards, the current behavior is kept with
CONFIG_SYS_MMC_ENV_DEV = -1.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2021-03-11 18:02:51 +01:00
..
common stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
stih410-b2260 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32f429-discovery common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32f429-evaluation common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32f469-discovery common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32f746-disco common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32h743-disco common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32h743-eval common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32mp1 board: stm32mp1: use CONFIG_SYS_MMC_ENV_DEV when available 2021-03-11 18:02:51 +01:00
stv0991 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00