]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/arm/mach-omap2/hsmmc.h
mmc: omap_hsmmc: remove unused fields in platform_data
[mirror_ubuntu-artful-kernel.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 */
3b972bf0 20 bool deferred; /* mmc needs a deferred probe */
90c62bf0
TL
21 int gpio_cd; /* or -EINVAL */
22 int gpio_wp; /* or -EINVAL */
e51151a5 23 char *name; /* or NULL for default */
3b972bf0 24 struct platform_device *pdev; /* mmc controller instance */
b583f26d 25 int ocr_mask; /* temporary HACK */
0b1974de 26 /* Remux (pad configuration) when powering on/off */
ce6f0016 27 void (*remux)(struct device *dev, int slot, int power_on);
ed199f7e
GI
28 /* init some special card */
29 void (*init_card)(struct mmc_card *card);
90c62bf0
TL
30};
31
db0fefc5 32#if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
90c62bf0 33
3b972bf0
TL
34void omap_hsmmc_init(struct omap2_hsmmc_info *);
35void omap_hsmmc_late_init(struct omap2_hsmmc_info *);
90c62bf0
TL
36
37#else
38
3b972bf0
TL
39static inline void omap_hsmmc_init(struct omap2_hsmmc_info *info)
40{
41}
42
43static inline void omap_hsmmc_late_init(struct omap2_hsmmc_info *info)
90c62bf0
TL
44{
45}
46
47#endif