summaryrefslogtreecommitdiff
path: root/include/linux/mmc/sdhci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mmc/sdhci.h')
-rw-r--r--include/linux/mmc/sdhci.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/mmc/sdhci.h b/include/linux/mmc/sdhci.h
index a689528dd28b..e4cb7de6d877 100644
--- a/include/linux/mmc/sdhci.h
+++ b/include/linux/mmc/sdhci.h
@@ -113,6 +113,8 @@ struct sdhci_host {
#define SDHCI_QUIRK2_SUPPORT_64BIT_DMA (1<<9)
/* Use 64 BIT addressing */
#define SDHCI_QUIRK2_USE_64BIT_ADDR (1<<10)
+/* sdio delayed clock gate */
+#define SDHCI_QUIRK2_SDIO_DELAYED_CLK_GATE (1<<11)
int irq; /* Device IRQ */
void __iomem *ioaddr; /* Mapped address */
@@ -200,6 +202,14 @@ struct sdhci_host {
bool edp_support;
struct sysedp_consumer *sysedpc;
+ struct delayed_work delayed_clk_gate_wrk;
+ bool sdio_clk_gate_init_done;
+ bool is_clk_on;
+
unsigned long private[0] ____cacheline_aligned;
};
+
+/* callback is registered during init */
+void delayed_clk_gate_cb(struct work_struct *work);
+
#endif /* LINUX_MMC_SDHCI_H */