diff options
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/host.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 0beba1e5e1ed..73e5ee8e9ca2 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
@@ -444,4 +444,23 @@ static inline int mmc_boot_partition_access(struct mmc_host *host) | |||
444 | return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC); | 444 | return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC); |
445 | } | 445 | } |
446 | 446 | ||
447 | #ifdef CONFIG_MMC_CLKGATE | ||
448 | void mmc_host_clk_hold(struct mmc_host *host); | ||
449 | void mmc_host_clk_release(struct mmc_host *host); | ||
450 | unsigned int mmc_host_clk_rate(struct mmc_host *host); | ||
451 | |||
452 | #else | ||
453 | static inline void mmc_host_clk_hold(struct mmc_host *host) | ||
454 | { | ||
455 | } | ||
456 | |||
457 | static inline void mmc_host_clk_release(struct mmc_host *host) | ||
458 | { | ||
459 | } | ||
460 | |||
461 | static inline unsigned int mmc_host_clk_rate(struct mmc_host *host) | ||
462 | { | ||
463 | return host->ios.clock; | ||
464 | } | ||
465 | #endif | ||
447 | #endif /* LINUX_MMC_HOST_H */ | 466 | #endif /* LINUX_MMC_HOST_H */ |