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