Hello,
I would like to use MMC1/SD1 on my DaVinci DM365 circuit but it seems that when the Linux is booting, the corresponding clock for MMC1 is disabled.
What can I do to activate it and activate all the MMC/SD1 module?
Thanks,
Mike
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.
Hello,
I would like to use MMC1/SD1 on my DaVinci DM365 circuit but it seems that when the Linux is booting, the corresponding clock for MMC1 is disabled.
What can I do to activate it and activate all the MMC/SD1 module?
Thanks,
Mike
Hi Mike,
Either you can call the clk_enable(&mmc_sd1_clk) from the function arch/arm/mach-davinci/dm365.c or you can use the devmem2 utility and enable the MMC/SD1 LPSC as given below.
devmem2 0x01C41a1c w 0x3 // Enable the LPSC for MMC/SD1 module
devmem2 0x01C41120 w 0x1 // GO command for the above to take effect
Now you should be able to access the MMC/SD1 module registers.
Regards,
N.sugumar
Hello,
Thanks for the hint.
Actually, I modified the function "dm365_leopard_init" in "arch/arm/mach-davinci/board-dm365-(evm|leopard).c" and it did work too. It seems it activates the clock and MMC1 and it is more high-level.
I juste wrote the following:
davinci_setup_mmc(0, &dm365leopard_mmc_config); // That was already there (MMC0)
davinci_setup_mmc(1, &dm365leopard_mmc_config); // I have added this one for MMC1
Mike