Check SDMMC bus from u-boot
Here the output of some commands issued on our target at u-boot stage:
> STM32MP> mmc list
> STM32 SDMMC2: 0 (SD)
> STM32 SDMMC2: 1
>
> STM32MP> ls mmc 0:4
> <DIR> 1024 .
> <DIR> 1024 ..
> <DIR> 12288 lost+found
> 8192 uboot.env
> 6677056 uImage
> 71859 stm32mp151a-<myimage>-mx.dtb
> 583 boot.scr.uimg
>
> STM32MP> mmc list
> STM32 SDMMC2: 0 (SD)
> STM32 SDMMC2: 1 (eMMC)Two questions:
- why the eMMC is not enumerated before trying to list anything in the SD device?
- why both are referred to the SDMMC2 bus? I'm expecting the SD card on SDMMC2 and eMMC on SDMMC1... in other words, how to check if the MPU finds the right device when changing the boot dip-switches to eMMC?
