u-boot/board/st/stm32mp1
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
..
extlinux.conf stm32mp1: add example files for FIT generation 2019-08-27 11:19:23 +02:00
fit_copro_kernel_dtb.its board: st: stm32mp1: update load address for FIT examples 2020-11-25 14:27:19 +01:00
fit_kernel_dtb.its board: st: stm32mp1: update load address for FIT examples 2020-11-25 14:27:19 +01:00
Kconfig stm32mp1: split board and SOC support for STM32MP15x family 2020-01-17 13:58:27 +01:00
MAINTAINERS Correct U-Boot upstream repository 2021-02-28 13:57:30 -05:00
Makefile board: stm32mp1: move the function board_debug_uart_init in spl.c 2020-07-07 16:01:23 +02:00
README doc: add board documentation for stm32mp1 2020-03-02 09:41:32 +01:00
spl.c board: stm32mp1: move the function board_debug_uart_init in spl.c 2020-07-07 16:01:23 +02:00
stm32mp1.c board: stm32mp1: use CONFIG_SYS_MMC_ENV_DEV when available 2021-03-11 18:02:51 +01:00

see doc/board/st/stm32mp1.rst