blob: 0f8a2e6ee284130f9a4ced41f445e1f51f5bdb2c [file] [log] [blame]
Tony Lindgren90c62bf2008-12-10 17:37:17 -08001/*
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
Grazvydas Ignotased199f72010-08-10 18:01:52 -07009struct mmc_card;
10
Adrian Hunter68ff0422010-02-15 10:03:34 -080011struct omap2_hsmmc_info {
Tony Lindgren90c62bf2008-12-10 17:37:17 -080012 u8 mmc; /* controller 1/2/3 */
13 u8 wires; /* 1/4/8 wires */
David Brownell0329c372009-03-23 18:23:47 -070014 bool transceiver; /* MMC-2 option */
15 bool ext_clock; /* use external pin for input clock */
Adrian Hunter8d75e982009-03-23 18:23:48 -070016 bool cover_only; /* No card detect - just cover switch */
Adrian Hunter23d99bb2009-09-22 16:44:48 -070017 bool nonremovable; /* Nonremovable e.g. eMMC */
Denis Karpovdd498ef2009-09-22 16:44:49 -070018 bool power_saving; /* Try to sleep or power off when possible */
Adrian Hunter1df58db2010-02-15 10:03:34 -080019 bool no_off; /* power_saving and power is not to go off */
Adrian Huntere0eb2422010-02-15 10:03:34 -080020 bool vcc_aux_disable_is_sleep; /* Regulator off remapped to sleep */
Tony Lindgren90c62bf2008-12-10 17:37:17 -080021 int gpio_cd; /* or -EINVAL */
22 int gpio_wp; /* or -EINVAL */
Adrian Huntere51151a2009-03-23 18:23:48 -070023 char *name; /* or NULL for default */
David Brownell01971f62009-03-23 18:23:47 -070024 struct device *dev; /* returned: pointer to mmc adapter */
David Brownellb583f262009-05-28 14:04:03 -070025 int ocr_mask; /* temporary HACK */
Thomas Weber0b1974d2010-09-23 11:46:48 +020026 /* Remux (pad configuration) when powering on/off */
Adrian Hunterce6f0012010-02-15 10:03:34 -080027 void (*remux)(struct device *dev, int slot, int power_on);
Grazvydas Ignotased199f72010-08-10 18:01:52 -070028 /* init some special card */
29 void (*init_card)(struct mmc_card *card);
Tony Lindgren90c62bf2008-12-10 17:37:17 -080030};
31
Adrian Hunterdb0fefc2010-02-15 10:03:34 -080032#if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
Tony Lindgren90c62bf2008-12-10 17:37:17 -080033
Adrian Hunter68ff0422010-02-15 10:03:34 -080034void omap2_hsmmc_init(struct omap2_hsmmc_info *);
Tony Lindgren90c62bf2008-12-10 17:37:17 -080035
36#else
37
Adrian Hunter68ff0422010-02-15 10:03:34 -080038static inline void omap2_hsmmc_init(struct omap2_hsmmc_info *info)
Tony Lindgren90c62bf2008-12-10 17:37:17 -080039{
40}
41
42#endif