diff options
| author | Shinobu Uehara <[email protected]> | 2014-08-24 20:03:00 -0700 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2014-09-09 13:59:16 +0200 |
| commit | da29fe2bf573f0ae56fdc2e790387cb73fc8c6f8 (patch) | |
| tree | 9b23d1f9cffd10788e492ef4e5ecec452b7e4d7d /include/linux | |
| 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 <[email protected]>
Tested-by: Hiep Cao Minh <[email protected]>
Signed-off-by: Shinobu Uehara <[email protected]>
Signed-off-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'include/linux')
| -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 @@ */ #define TMIO_MMC_HAVE_CTL_DMA_REG (1 << 9) +/* + * Some controllers allows to set SDx actual clock + */ +#define TMIO_MMC_CLK_ACTUAL (1 << 10) + int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base); int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base); void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state); |