diff options
author | Shinobu Uehara <shinobu.uehara.xc@renesas.com> | 2014-08-24 23:03:00 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-09 07:59:16 -0400 |
commit | da29fe2bf573f0ae56fdc2e790387cb73fc8c6f8 (patch) | |
tree | 9b23d1f9cffd10788e492ef4e5ecec452b7e4d7d /include/linux/mfd/tmio.h | |
parent | b30d6958a014812158d9729a3e0b6d448f6e8968 (diff) |
mmc: tmio: add actual clock support as option
Some controller is supporting actual clock on SD_CLK_CTRL :: DIV[7:0].
Renesas SH-Mobile SDHI doesn't support,
but, Renesas R-Car SDHI supports it.
This patch adds new TMIO_MMC_CLK_ACTUAL flag for it.
[Kuninori Morimoto: tidyuped for upstreaming]
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 'include/linux/mfd/tmio.h')
-rw-r--r-- | include/linux/mfd/tmio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h index adcb0cdb2fdb..90436d523e5e 100644 --- a/include/linux/mfd/tmio.h +++ b/include/linux/mfd/tmio.h | |||
@@ -99,6 +99,11 @@ | |||
99 | */ | 99 | */ |
100 | #define TMIO_MMC_HAVE_CTL_DMA_REG (1 << 9) | 100 | #define TMIO_MMC_HAVE_CTL_DMA_REG (1 << 9) |
101 | 101 | ||
102 | /* | ||
103 | * Some controllers allows to set SDx actual clock | ||
104 | */ | ||
105 | #define TMIO_MMC_CLK_ACTUAL (1 << 10) | ||
106 | |||
102 | int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base); | 107 | int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base); |
103 | int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base); | 108 | int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base); |
104 | void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state); | 109 | void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state); |