summaryrefslogtreecommitdiff
path: root/drivers/mmc/sh_mmcif.h
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2014-12-03 17:57:48 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2014-12-05 11:16:22 +0900
commit9675f6107725a1002858df2246ebfb0cd3082e76 (patch)
tree238cc5343506413cf39a451d98a977c3915bb33b /drivers/mmc/sh_mmcif.h
parent7a7eb983a4cd7531843de875572bf5a1c96297ca (diff)
mmc: sh_mmcif: Add support rmobile
Renesas R-Mobile/R-Car ARM SoC of MMC has the same IP that are supported by sh_mmcif. This adds support R-Mobile/R-Car ARM SoC with the setting of the clock support. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers/mmc/sh_mmcif.h')
-rw-r--r--drivers/mmc/sh_mmcif.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/mmc/sh_mmcif.h b/drivers/mmc/sh_mmcif.h
index 70034e2576..4b6752f7f9 100644
--- a/drivers/mmc/sh_mmcif.h
+++ b/drivers/mmc/sh_mmcif.h
@@ -199,8 +199,13 @@ struct sh_mmcif_regs {
#define SOFT_RST_OFF (0 << 31)
#define CLKDEV_EMMC_DATA 52000000 /* 52MHz */
+#ifdef CONFIG_RMOBILE
+#define MMC_CLK_DIV_MIN(clk) (clk / (1 << 9))
+#define MMC_CLK_DIV_MAX(clk) (clk / (1 << 1))
+#else
#define MMC_CLK_DIV_MIN(clk) (clk / (1 << 8))
-#define MMC_CLK_DIV_MAX CLKDEV_EMMC_DATA
+#define MMC_CLK_DIV_MAX(clk) CLKDEV_EMMC_DATA
+#endif
#define MMC_BUS_WIDTH_1 0
#define MMC_BUS_WIDTH_4 2