diff options
author | Shinobu Uehara <shinobu.uehara.xc@renesas.com> | 2014-08-24 23:00:25 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-09 07:59:14 -0400 |
commit | b8d11962c2d83c984d5afd091e5b725ad2fd5607 (patch) | |
tree | e418779bef7c9c251698f7217940c3b76a77f2c2 /drivers/mmc/host/sh_mobile_sdhi.c | |
parent | f83bfa751babb521924f6d8c93055215d2eb33cc (diff) |
mmc: tmio: control multiple block transfer mode
Renesas SDHI has "Multiple Block Transfer Mode" settings
on SD_CMD register which controls CMD12 automatically.
This patch cares it, because
CMD12 is not needed when CMD53 (= SD_IO_RW_EXTENDED)
[Kuninori Morimoto: tidyuped for upstreaming
enabled this flags for all SH-Mobile/R-Car]
Tested-by: Nguyen Xuan Nui <nx-nui@jinso.co.jp>
Tested-by: Hiep Cao Minh <cm-hiep@jinso.co.jp>
Signed-off-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sh_mobile_sdhi.c')
-rw-r--r-- | drivers/mmc/host/sh_mobile_sdhi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index f0818cd0242c..4727586b063e 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -225,6 +225,11 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) | |||
225 | */ | 225 | */ |
226 | mmc_data->flags |= TMIO_MMC_SDIO_IRQ; | 226 | mmc_data->flags |= TMIO_MMC_SDIO_IRQ; |
227 | 227 | ||
228 | /* | ||
229 | * All SDHI have CMD12 controll bit | ||
230 | */ | ||
231 | mmc_data->flags |= TMIO_MMC_HAVE_CMD12_CTRL; | ||
232 | |||
228 | if (of_id && of_id->data) { | 233 | if (of_id && of_id->data) { |
229 | const struct sh_mobile_sdhi_of_data *of_data = of_id->data; | 234 | const struct sh_mobile_sdhi_of_data *of_data = of_id->data; |
230 | mmc_data->flags |= of_data->tmio_flags; | 235 | mmc_data->flags |= of_data->tmio_flags; |