diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-01-12 23:59:56 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-20 04:23:45 -0500 |
commit | 0c47f6aebaba68517692863cbdd88e98e2574b1a (patch) | |
tree | 0da67091cc4b50a2545b6b2de2a683bb516df2cd /drivers/mmc | |
parent | 169352500e0dc406e1d805edcb9d6d1b393d71c1 (diff) |
mmc: sh_mobile_sdhi: use .enable_dma
tmio_mmc_dma has .enable_dma callback now.
let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sh_mobile_sdhi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index bcdadb9503cf..40913299f3ba 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -158,6 +158,11 @@ static int sh_mobile_sdhi_multi_io_quirk(struct mmc_card *card, | |||
158 | return blk_size; | 158 | return blk_size; |
159 | } | 159 | } |
160 | 160 | ||
161 | static void sh_mobile_sdhi_enable_dma(struct tmio_mmc_host *host, bool enable) | ||
162 | { | ||
163 | sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? 2 : 0); | ||
164 | } | ||
165 | |||
161 | static int sh_mobile_sdhi_probe(struct platform_device *pdev) | 166 | static int sh_mobile_sdhi_probe(struct platform_device *pdev) |
162 | { | 167 | { |
163 | const struct of_device_id *of_id = | 168 | const struct of_device_id *of_id = |
@@ -230,6 +235,7 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) | |||
230 | } | 235 | } |
231 | } | 236 | } |
232 | dma_priv->filter = shdma_chan_filter; | 237 | dma_priv->filter = shdma_chan_filter; |
238 | dma_priv->enable = sh_mobile_sdhi_enable_dma; | ||
233 | 239 | ||
234 | mmc_data->alignment_shift = 1; /* 2-byte alignment */ | 240 | mmc_data->alignment_shift = 1; /* 2-byte alignment */ |
235 | 241 | ||