Merge branch 'next/cross-platform' of git://git.linaro.org/people/arnd/arm-soc
[deliverable/linux.git] / arch / arm / mach-omap2 / hsmmc.h
CommitLineData
90c62bf0
TL
1/*
2 * MMC definitions for OMAP2
3 *
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 */
8
ed199f7e
GI
9struct mmc_card;
10
68ff0423 11struct omap2_hsmmc_info {
90c62bf0 12 u8 mmc; /* controller 1/2/3 */
3a63833e
SG
13 u32 caps; /* 4/8 wires and any additional host
14 * capabilities OR'd (ref. linux/mmc/host.h) */
0329c377
DB
15 bool transceiver; /* MMC-2 option */
16 bool ext_clock; /* use external pin for input clock */
8d75e98b 17 bool cover_only; /* No card detect - just cover switch */
23d99bb9 18 bool nonremovable; /* Nonremovable e.g. eMMC */
dd498eff 19 bool power_saving; /* Try to sleep or power off when possible */
1df58db8 20 bool no_off; /* power_saving and power is not to go off */
b1c1df7a 21 bool no_off_init; /* no power off when not in MMC sleep state */
e0eb2424 22 bool vcc_aux_disable_is_sleep; /* Regulator off remapped to sleep */
90c62bf0
TL
23 int gpio_cd; /* or -EINVAL */
24 int gpio_wp; /* or -EINVAL */
e51151a5 25 char *name; /* or NULL for default */
01971f65 26 struct device *dev; /* returned: pointer to mmc adapter */
b583f26d 27 int ocr_mask; /* temporary HACK */
0b1974de 28 /* Remux (pad configuration) when powering on/off */
ce6f0016 29 void (*remux)(struct device *dev, int slot, int power_on);
ed199f7e
GI
30 /* init some special card */
31 void (*init_card)(struct mmc_card *card);
90c62bf0
TL
32};
33
db0fefc5 34#if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
90c62bf0 35
68ff0423 36void omap2_hsmmc_init(struct omap2_hsmmc_info *);
90c62bf0
TL
37
38#else
39
68ff0423 40static inline void omap2_hsmmc_init(struct omap2_hsmmc_info *info)
90c62bf0
TL
41{
42}
43
44#endif
This page took 0.230378 seconds and 5 git commands to generate.