ARM: cpu topology: Add debugfs interface for cpu_power
[cmplus.git] / arch / arm / mach-omap2 / hsmmc.h
blob2cbe0f98c4503a9f172c6a20732a258b3e406baf
1 /*
2 * MMC definitions for OMAP2
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #include <asm/mach/mmc.h>
11 struct mmc_card;
13 typedef int (*mmc_card_detect_func)(struct device *dev, int slot);
15 struct omap2_hsmmc_info {
16 u8 mmc; /* controller 1/2/3 */
17 u32 caps; /* 4/8 wires and any additional host
18 * capabilities OR'd (ref. linux/mmc/host.h) */
19 bool transceiver; /* MMC-2 option */
20 bool ext_clock; /* use external pin for input clock */
21 bool cover_only; /* No card detect - just cover switch */
22 bool nonremovable; /* Nonremovable e.g. eMMC */
23 bool power_saving; /* Try to sleep or power off when possible */
24 bool no_off; /* power_saving and power is not to go off */
25 bool no_off_init; /* no power off when not in MMC sleep state */
26 bool vcc_aux_disable_is_sleep; /* Regulator off remapped to sleep */
27 int gpio_cd; /* or -EINVAL */
28 int gpio_wp; /* or -EINVAL */
29 char *name; /* or NULL for default */
30 struct device *dev; /* returned: pointer to mmc adapter */
31 int ocr_mask; /* temporary HACK */
32 struct mmc_platform_data *mmc_data;
33 /* Remux (pad configuration) when powering on/off */
34 void (*remux)(struct device *dev, int slot, int power_on);
35 /* init some special card */
36 void (*init_card)(struct mmc_card *card);
39 #if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
41 void omap2_hsmmc_init(struct omap2_hsmmc_info *);
43 #else
45 static inline void omap2_hsmmc_init(struct omap2_hsmmc_info *info)
49 #endif