stm32mp1: board: add support of CONFIG_ENV_IS_IN_MMC
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 15 Jun 2020 09:18:22 +0000 (11:18 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Tue, 28 Jul 2020 15:21:37 +0000 (17:21 +0200)
commita9addcafd180abf4c51d02a5954c8d03ba747f26
tree4b070ff6435e23c09bcd5fd00449248603420fb9
parent43fe9d2fda24ea56a1ff35ecc02a6a93f795c1c0
stm32mp1: board: add support of CONFIG_ENV_IS_IN_MMC

Add support of CONFIG_ENV_IS_IN_MMC in env_get_location, used for
all mmc device (SD card and eMMC).
The 2 configs CONFIG_ENV_IS_IN_MMC and CONFIG_ENV_IS_IN_EXT4 are
incompatible.

Add the weak function mmc_get_env_dev to select the mmc boot instance.

Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
board/st/stm32mp1/stm32mp1.c