Other Parts Discussed in Thread: DA8XX, OMAP-L138
Hi,
Currently we are writing SDIO driver for OMAP L138 for MMC 1 and MMC 2 controllers. We have tested SDIO interface over MMC 1 and it is working fine for me. When we are trying to test SDIO interface over MMC2 by changing the base address. We observe that we can not able to write to the controller registers.
Please find the code to get the MMC2 base address:
#define OMAP_HSMMC1_BASE 0x01C40000 /* MMC1 Controler base address */
#define OMAP_HSMMC2_BASE 0x01E1B000 /* MMC2 Controler base address */
mem = request_mem_region(OMAP_HSMMC2_BASE, SZ_4K, "davinci_mmc1");
g_drv.regBase = ioremap(mem->start, SZ_4K);
g_drv.clk = clk_get(&pdev->dev, "MMCSDCLK");
From Data sheet it seems that there is only one functional clock for MMC 1 and MMC 2. Please correct me if i am wrong.
Do i need to do any more configuration for MMC 2 controller over the MMC 1?
Best regards
Sanjay