Tool/software:
Dear Engineer Ti
We are using AM62P as SOC for our custom board and it supports booting from SD card or EMMC. When we use EMMC boot, there should be no need to insert the SD card, but when no SD card is inserted, the following error is printed in the kernel's boot log:
sdhci-am654 fa00000.mmc: Power on failed
By checking sdhci_am654.c in the kernel source code, I found out the possible cause: it goes to initialize the SD card every boot, even if no SD card is inserted.
I would like to ask for advice on how I should do to make the system check if there is an SD card inserted first every time it boots, and if not, skip the process of initializing the SD card.
Regards