aboutsummaryrefslogtreecommitdiff
path: root/configs/stm32mp15_trusted_defconfig
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-03-01 13:17:56 +0100
committerPatrice Chotard <patrice.chotard@foss.st.com>2021-03-11 18:02:51 +0100
commit9f97193616f1fa2a9983ef3f846d5e5b42bc97a6 (patch)
tree496898009797e22819d4d1aecd7bce5d93256c71 /configs/stm32mp15_trusted_defconfig
parentc45f82bb2ee9c923a84b13f3eff8e151fbafa66b (diff)
downloadu-boot-9f97193616f1fa2a9983ef3f846d5e5b42bc97a6.zip
u-boot-9f97193616f1fa2a9983ef3f846d5e5b42bc97a6.tar.gz
u-boot-9f97193616f1fa2a9983ef3f846d5e5b42bc97a6.tar.bz2
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>
Diffstat (limited to 'configs/stm32mp15_trusted_defconfig')
-rw-r--r--configs/stm32mp15_trusted_defconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/stm32mp15_trusted_defconfig b/configs/stm32mp15_trusted_defconfig
index 7c32eb7..ba9a660 100644
--- a/configs/stm32mp15_trusted_defconfig
+++ b/configs/stm32mp15_trusted_defconfig
@@ -53,6 +53,7 @@ CONFIG_ENV_UBI_PART="UBI"
CONFIG_ENV_UBI_VOLUME="uboot_config"
CONFIG_ENV_UBI_VOLUME_REDUND="uboot_config_r"
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_SYS_MMC_ENV_DEV=-1
CONFIG_STM32_ADC=y
CONFIG_CLK_SCMI=y
CONFIG_SET_DFU_ALT_INFO=y