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.
Hi
I am using DM368 SDK V2.0 for Appro
I have the problem to access the mmc/sd1.
I cannot access the mmc/sd1.
MMC/SD0 works well
I modified the source code as follows:
include/asm-arm/arch-davinci/edma.h
#define DM365_DMACH2EVENT_MAP0 0x0C00000Cu => 0xCC00000Cu
arch/arm/mach-davinci/board-dm368-ipnc.c
static struct resource mmc1_resources[] = {
[0] = { /* registers */
.start = DM365_MMC_SD1_BASE,
.end = DM365_MMC_SD1_BASE + SZ_1K - 1,
.flags = IORESOURCE_MEM,
},
[1] = { /* interrupt */
.start = IRQ_DM3XX_MMCINT1,
.end = IRQ_DM3XX_MMCINT1,
.flags = IORESOURCE_IRQ,
},
[2] = { /* dma rx */
.start = DM365_DMA_MMC1RXEVT,
.end = DM365_DMA_MMC1RXEVT,
.flags = IORESOURCE_DMA | IORESOURCE_DMA_RX_CHAN,
},
[3] = { /* dma tx */
.start = DM365_DMA_MMC1TXEVT,
.end = DM365_DMA_MMC1TXEVT,
.flags = IORESOURCE_DMA | IORESOURCE_DMA_TX_CHAN,
},
[4] = { /* event queue */
.start = EVENTQ_3,
.end = EVENTQ_3,
.flags = IORESOURCE_DMA | IORESOURCE_DMA_EVENT_Q,
},
};
static struct davinci_mmc_platform_data mmc1_platform_data = {
.mmc_clk = "MMCSDCLK1",
.rw_threshold = 64,
.use_4bit_mode = 1,
.use_8bit_mode = 0,
.max_frq = 50000000,
.pio_set_dmatrig = 1,
};
static struct platform_device mmc1_device = {
.name = "davinci-mmc",
.id = 1,
.dev = {
.platform_data = &mmc1_platform_data,
},
.num_resources = ARRAY_SIZE(mmc1_resources),
.resource = mmc1_resources,
};
....
static struct platform_device *dm365_ipnc_devices[] __initdata = {
&serial_device,
&mmc0_device,
&mmc1_device,
&nand_device,
&rtc_device,
};
I need your help to resolve the problem.
thank you.