aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/host.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mmc/host.h')
-rw-r--r--include/linux/mmc/host.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 0beba1e5e1ed..91924e8c642b 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -12,6 +12,7 @@
12 12
13#include <linux/leds.h> 13#include <linux/leds.h>
14#include <linux/sched.h> 14#include <linux/sched.h>
15#include <linux/device.h>
15#include <linux/fault-inject.h> 16#include <linux/fault-inject.h>
16 17
17#include <linux/mmc/core.h> 18#include <linux/mmc/core.h>
@@ -257,6 +258,7 @@ struct mmc_host {
257#define MMC_CAP2_HS200_1_2V_SDR (1 << 6) /* can support */ 258#define MMC_CAP2_HS200_1_2V_SDR (1 << 6) /* can support */
258#define MMC_CAP2_HS200 (MMC_CAP2_HS200_1_8V_SDR | \ 259#define MMC_CAP2_HS200 (MMC_CAP2_HS200_1_8V_SDR | \
259 MMC_CAP2_HS200_1_2V_SDR) 260 MMC_CAP2_HS200_1_2V_SDR)
261#define MMC_CAP2_BROKEN_VOLTAGE (1 << 7) /* Use the broken voltage */
260 262
261 mmc_pm_flag_t pm_caps; /* supported pm features */ 263 mmc_pm_flag_t pm_caps; /* supported pm features */
262 unsigned int power_notify_type; 264 unsigned int power_notify_type;
@@ -444,4 +446,23 @@ static inline int mmc_boot_partition_access(struct mmc_host *host)
444 return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC); 446 return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC);
445} 447}
446 448
449#ifdef CONFIG_MMC_CLKGATE
450void mmc_host_clk_hold(struct mmc_host *host);
451void mmc_host_clk_release(struct mmc_host *host);
452unsigned int mmc_host_clk_rate(struct mmc_host *host);
453
454#else
455static inline void mmc_host_clk_hold(struct mmc_host *host)
456{
457}
458
459static inline void mmc_host_clk_release(struct mmc_host *host)
460{
461}
462
463static inline unsigned int mmc_host_clk_rate(struct mmc_host *host)
464{
465 return host->ios.clock;
466}
467#endif
447#endif /* LINUX_MMC_HOST_H */ 468#endif /* LINUX_MMC_HOST_H */