512
};
-enum msdc_mode drv_mode[4] = {
- MODE_DMA, /* using DMA always */
- MODE_DMA,
- MODE_DMA,
- MODE_DMA
-};
-
#if defined(MT6575_SD_DEBUG)
/* for driver profile */
#define TICKS_ONE_MS (13000)
seq_printf(s, "-> MSDC[2] Zone: 0x%.8x\n", sd_debug_zone[2]);
seq_printf(s, "-> MSDC[3] Zone: 0x%.8x\n", sd_debug_zone[3]);
- seq_puts(s, "Index<1> + ID:4|Mode:4 + DMA_SIZE\n");
- seq_puts(s, "-> 0)PIO 1)DMA 2)SIZE\n");
- seq_puts(s, "-> echo 1 22 0x200 >msdc_bebug -> host[2] size mode, dma when >= 512\n");
- seq_printf(s, "-> MSDC[0] mode<%d> size<%d>\n", drv_mode[0], dma_size[0]);
- seq_printf(s, "-> MSDC[1] mode<%d> size<%d>\n", drv_mode[1], dma_size[1]);
- seq_printf(s, "-> MSDC[2] mode<%d> size<%d>\n", drv_mode[2], dma_size[2]);
- seq_printf(s, "-> MSDC[3] mode<%d> size<%d>\n", drv_mode[3], dma_size[3]);
-
seq_puts(s, "Index<3> + SDIO_PROFILE + TIME\n");
seq_puts(s, "-> echo 3 1 0x1E >msdc_bebug -> enable sdio_profile, 30s\n");
seq_printf(s, "-> SDIO_PROFILE<%d> TIME<%ds>\n", sdio_pro_enable, sdio_pro_time);
host->blksz = data->blksz;
/* deside the transfer mode */
- if (drv_mode[host->id] == MODE_PIO)
- host->dma_xfer = 0;
- else if (drv_mode[host->id] == MODE_DMA)
- host->dma_xfer = 1;
- else if (drv_mode[host->id] == MODE_SIZE_DEP)
- host->dma_xfer = ((host->xfer_size >= dma_size[host->id]) ? 1 : 0);
+ host->dma_xfer = 1;
dma = host->dma_xfer;
if (read) {