diff options
Diffstat (limited to 'drivers/mmc/core/host.h')
-rw-r--r-- | drivers/mmc/core/host.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/mmc/core/host.h b/drivers/mmc/core/host.h index 08a7852..df7d2cd 100644 --- a/drivers/mmc/core/host.h +++ b/drivers/mmc/core/host.h @@ -12,6 +12,26 @@ #define _MMC_CORE_HOST_H #include <linux/mmc/host.h> +#if defined(CONFIG_MMC_CLKGATE) +void mmc_host_clk_hold(struct mmc_host *host); +void mmc_host_clk_release(struct mmc_host *host); +unsigned int mmc_host_clk_rate(struct mmc_host *host); + +#else +static inline void mmc_host_clk_hold(struct mmc_host *host) +{ +} + +static inline void mmc_host_clk_release(struct mmc_host *host) +{ +} + +static inline unsigned int mmc_host_clk_rate(struct mmc_host *host) +{ + return host->ios.clock; +} +#endif + int mmc_register_host_class(void); void mmc_unregister_host_class(void); void mmc_host_deeper_disable(struct work_struct *work); |