now we use a 8 pin TF card connector, and with no MMC CD pin.
we test with no CD pin, it can not work well.
I want to know that is this pin is necessary?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
now we use a 8 pin TF card connector, and with no MMC CD pin.
we test with no CD pin, it can not work well.
I want to know that is this pin is necessary?
Hi,
You will probably need to modify your code so that the CD status is either ignored or interpreted as card present.
Would you like guide me which function should I focus on?
as I know,MMC could detect by DAT1 pin?
Hi,
Check mmc_detect() & mmc_init_card() functions in drivers/mmc/core/mmc.c AND mmc_sdio_detect() & mmc_sdio_init_card() fucntions in drivers/mmc/core/sdio.c
Amon Wu said:as I know,MMC could detect by DAT1 pin?
DAT1 pin can be used as IRQ and data pin, see Figre MMCHS Module SDIO Application, Figure MMCHS SD (4-bit) Card Application and Figure MMCHS Module MMC Application in AM335x TRM.
DAT3 pin however can be used as CD signal in mmchs sd (4-bit) card application
Hope this helps.
Best Regards,
Yordan
In the 3.2 kernel you should be able to edit the arch/arm/mach-omap2/board-am335xevm.c file and modify the am335x_mmc strucure and change gpio_cd and gpio_wp to -EINVAL:
212 static struct omap2_hsmmc_info am335x_mmc[] __initdata = {
213 {
214 .mmc = 1,
215 .caps = MMC_CAP_4_BIT_DATA,
216 .gpio_cd = -EINVAL,
217 .gpio_wp = -EINVAL,
218 .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, /* 3V3 */
219 },
Steve K.