diff options
author | Shinobu Uehara <shinobu.uehara.xc@renesas.com> | 2014-08-24 23:00:52 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-09 07:59:14 -0400 |
commit | 6b98757e53cb0e93b02db4067c14afcb32c90615 (patch) | |
tree | 689f24317299728fb89df119c278ebcf2d9171b6 /include/linux/mfd | |
parent | b8d11962c2d83c984d5afd091e5b725ad2fd5607 (diff) |
mmc: tmio: add TMIO_MMC_SDIO_STATUS_QUIRK
Renesas R-Car SDHI should set reserved bits
on CTL_SDIO_STATUS register when writing.
This patch adds new TMIO_MMC_SDIO_STATUS_QUIRK flags
for this purpose
[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 'include/linux/mfd')
-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 7432d95b08e2..a7493ae01b58 100644 --- a/include/linux/mfd/tmio.h +++ b/include/linux/mfd/tmio.h | |||
@@ -89,6 +89,11 @@ | |||
89 | */ | 89 | */ |
90 | #define TMIO_MMC_HAVE_CMD12_CTRL (1 << 7) | 90 | #define TMIO_MMC_HAVE_CMD12_CTRL (1 << 7) |
91 | 91 | ||
92 | /* | ||
93 | * Some controllers needs to set 1 on SDIO status reserved bits | ||
94 | */ | ||
95 | #define TMIO_MMC_SDIO_STATUS_QUIRK (1 << 8) | ||
96 | |||
92 | int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base); | 97 | int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base); |
93 | int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base); | 98 | int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base); |
94 | void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state); | 99 | void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state); |