diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-01-12 23:59:33 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-20 04:23:39 -0500 |
commit | 95a7dc364514b00a42e78ae98376d0b9f4429ac0 (patch) | |
tree | 642d25e9af5ec2ecc8aeda26ed61509116ae81d2 /drivers/mmc | |
parent | 010f4aa758f437647799b1fd677a5e2cf31714e9 (diff) |
mmc: sh_mobile_sdhi: tidyup mmc_data->bus_shift for latest SoC
Latest SDHI on Renesas has expand register mapping.
update mmc_data->bus_shift for 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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 48a3be804cc0..26eeeb690061 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -202,7 +202,10 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) | |||
202 | host->clk_disable = sh_mobile_sdhi_clk_disable; | 202 | host->clk_disable = sh_mobile_sdhi_clk_disable; |
203 | host->multi_io_quirk = sh_mobile_sdhi_multi_io_quirk; | 203 | host->multi_io_quirk = sh_mobile_sdhi_multi_io_quirk; |
204 | /* SD control register space size is 0x100, 0x200 for bus_shift=1 */ | 204 | /* SD control register space size is 0x100, 0x200 for bus_shift=1 */ |
205 | host->bus_shift = resource_size(res) >> 9; | 205 | if (resource_size(res) > 0x100) |
206 | host->bus_shift = 1; | ||
207 | else | ||
208 | host->bus_shift = 0; | ||
206 | 209 | ||
207 | mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED; | 210 | mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED; |
208 | if (p) { | 211 | if (p) { |