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.

U-Boot SD Card detect



I'm using the latest TI Linux SDK (03.01.00.06) on a custom board (booting up as a BBB). How do I remove SD card detect from u-boot (MMC0)? Right now, u-boot will load from the SD card, but will not continue to load Linux because 'mmc rescan' returns with no cards found unless I ground pin C15.

Thanks.

  • Hi,

    Have you tried to configure the mmc0_no_cd_pin_mux settings from:

      board/ti/am335x/mux.c:

         in enable_board_pin_mux(), where you choose the pinmux for your board, make sure you use the mmc0_no_cd_pin_mux[] settings.

      Also in drivers/mms/omap_hsmmc.c modify your code so that it uses:

           int cd_gpio;

    int wp_gpio;

      instead of

           struct gpio_desc cd_gpio; /* Change Detect GPIO */

    struct gpio_desc wp_gpio; /* Write Protect GPIO */

    This is done in the following fragment of the driver:

    /* simplify defines to OMAP_HSMMC_USE_GPIO */

    #if (defined(CONFIG_OMAP_GPIO) && !defined(CONFIG_SPL_BUILD)) || \

    (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_GPIO_SUPPORT))

    #define OMAP_HSMMC_USE_GPIO

    #else

    #undef OMAP_HSMMC_USE_GPIO

    #endif

    ...................................................

    #ifdef OMAP_HSMMC_USE_GPIO

    #ifdef CONFIG_DM_MMC

    struct gpio_desc cd_gpio; /* Change Detect GPIO */

    struct gpio_desc wp_gpio; /* Write Protect GPIO */

    bool cd_inverted;

    #else

    int cd_gpio;

    int wp_gpio;


    Hope this helps. 

    Best Regards, 
    Yordan