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.

Dual mode for SD/MMC/SDIO 1 on OMAP4430

Hello.

I have external SDIO card (for example Bluetooth SDIO card) and MMC card. Is it possible to use it on the same kernel (without recompilation) with one SD/MMC/SDIO 1 controller? Is it way to determinate what card inserted (SDIO or SD) by software?

  • Aleksander,

    Just to confirm - Do you mean that you have two separate cards (SDIO for BT/WLAN, and SD/MMC) and only one will plugged in to SDMMC1 at a time?  Or do you mean that you have a combined SDIO / SDMMC card? 

    Thanks,
    Gina 

  • Yes, I want use ONE of two cards at a time. OS - Android 4.x. kernel 3.0.x

  • Hello Aleksander,

    On our Panda reference HW, we use SDMMC2 (or McBSP2) for WLAN purpose and SDMMC1 for SD/MMC card. BT requires 4-wire UART, plus some control lines. I do not know what interface of OMAP4430 is used to talk to your WLAN and BT modules, but if you use different OMAP4430 ports to connect to MMC and WLAN/BT you will need to take this into account in SW.

    Regards,

    Shaheen

  • Aleksander,

    The SDMMC configuration is done in the kernel board file.  For Blaze Tablet, this is /arch/arm/mach-omap2/board-44xx-tablet.c.  The struct omap2_hsmmc_info mmc[] sets up the configuration for each mmc port.  The board file also handles the voltage config for vmmc5 and pinmuxing for sdmmc5 (WLAN on the Blaze Tablet).  The assumption in software is that the SD card, eMMC, and WLAN are all on separate and unchanging SDMMC ports.  The only ways I see it working to have the SD card and WLAN use the same SDMMC port are to:

    1) have an SD card and WLAN that require the same voltages, pinmuxing, and configuration (but I doubt that is possible)

    2) have a compile-time check, or

    3) have a run-time check before the SD card or WLAN needs to be accessed, which isn't dependent on first having the SDMMC configuration established

    This is just from the SW perspective; you would need to take into account the HW point that Shaheen mentioned as well.  This isn't an approach that we recommend or support in our current TI OMAP software releases, so you would need to do careful testing of any implementation to watch for any corner cases.

    Regards,
    Gina