|
@@ -28,10 +28,8 @@ void tmio_mmc_enable_dma(struct tmio_mmc_host *host, bool enable)
|
|
|
if (!host->chan_tx || !host->chan_rx)
|
|
|
return;
|
|
|
|
|
|
-#if defined(CONFIG_SUPERH) || defined(CONFIG_ARCH_SHMOBILE)
|
|
|
- /* Switch DMA mode on or off - SuperH specific? */
|
|
|
- sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? 2 : 0);
|
|
|
-#endif
|
|
|
+ if (host->pdata->flags & TMIO_MMC_HAVE_CTL_DMA_REG)
|
|
|
+ sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? 2 : 0);
|
|
|
}
|
|
|
|
|
|
void tmio_mmc_abort_dma(struct tmio_mmc_host *host)
|