SDMMC Q&A

Q: If a device supporting SDMMC protocol does not have a detect pin, how to enable it by default and keep it active?

  1. Modify slot-fakecdzs in infinity2m.dtsi under kernel to 1

  2. Open config under Uboot: CONFIG_SDMMC_FAKE_CDZ

Q2: How to set the SD card enable pin?

If you fail to detect the SD card in uboot or kernel, you can check whether the SD card pin level is correct.

SDIO_EN corresponds to PAD_GPIO0, low level is effective. The code in uboot and kernel pulls low by default, so the hardware design must also be active low.

  1. Configure GPIO in uboot's boot/drivers/mstar/sdmmc/src/hal_card_platform_iNF2m.c and pull the corresponding pin to low.

  2. Configure GPIO in kernel/arch/arm/boot/dts/infinity2m.dtsi.