board: st: stm32mp2: add mmc_get_env_dev()
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 22 Apr 2025 15:33:42 +0000 (17:33 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 25 Apr 2025 14:00:22 +0000 (16:00 +0200)
commita3be0ccc4746b64a6ed2f955b1238e9c53de8b16
tree2c1c6709e3ffc02bbd8f068be22afd3e084beac6
parent1b343e2603e46baca914a5adb49144f47fb5d39d
board: st: stm32mp2: add mmc_get_env_dev()

Use the boot instance to select the correct mmc device identifier,
this patch only to save the environment on eMMC = MMC(1) on
STMicroelectronics boards.

Set the CONFIG_SYS_MMC_ENV_DEV to -1 to select the mmc boot instance
by default.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
board/st/stm32mp2/stm32mp2.c
configs/stm32mp25_defconfig