u-boot/arch/arm/mach-stm32mp
Patrick Delaunay 3c1057c548 stm32mp: use device sequence number in boot_instance variable
Use the device sequence number in boot_instance variable
and no more the SDMMC instance provided by ROM code/TF-A.

After this patch we don't need to define the mmc alias in
device tree, for example:
  mmc0 = &sdmmc1;
  mmc1 = &sdmmc2;
  mmc2 = &sdmmc3;
to have a correct mapping between the ROM code boot device =
"${boot_device}${boot_instance}" and the MMC device in U-Boot.

With this patch the 'mmc0' device (used in mmc commands) is
always used when only one instance sdmmc is activated in device
tree, even if it is only the sdmmc2 or sdmmc3.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2021-07-16 09:28:46 +02:00
..
cmd_stm32prog stm32mp: stm32prog: use defines for virtual partition size 2021-07-16 09:28:46 +02:00
include/mach stm32mp: use device sequence number in boot_instance variable 2021-07-16 09:28:46 +02:00
boot_params.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bsec.c stm32mp: bsec: manage clock when present in device tree 2021-03-11 17:50:10 +01:00
cmd_stm32key.c stm32mp: cmd_stm32key: add subcommand close 2021-07-16 09:28:46 +02:00
config.mk Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
cpu.c stm32mp: use device sequence number in boot_instance variable 2021-07-16 09:28:46 +02:00
dram_init.c stm32mp: Increase the reserved memory in board_get_usable_ram_top 2021-06-07 10:48:40 -04:00
fdt.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Kconfig stm32mp: configs: activate the command stm32key only for ST boards 2021-07-16 09:28:46 +02:00
Makefile stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
psci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pwr_regulator.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
spl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
syscon.c stm32mp: syscon: manage clock when present in device tree 2021-07-16 09:28:46 +02:00