blob: 148cd9b15499a4b11a5eef326c183168c3e82457 [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 */
Sukumar Ghorai3a638332010-09-15 14:49:23 +000013 u32 caps; /* 4/8 wires and any additional host
14 * capabilities OR'd (ref. linux/mmc/host.h) */
David Brownell0329c372009-03-23 18:23:47 -070015 bool transceiver; /* MMC-2 option */
16 bool ext_clock; /* use external pin for input clock */
Adrian Hunter8d75e982009-03-23 18:23:48 -070017 bool cover_only; /* No card detect - just cover switch */
Adrian Hunter23d99bb2009-09-22 16:44:48 -070018 bool nonremovable; /* Nonremovable e.g. eMMC */
Tony Lindgren3b972bf2012-02-20 09:43:29 -080019 bool deferred; /* mmc needs a deferred probe */
Tony Lindgren90c62bf2008-12-10 17:37:17 -080020 int gpio_cd; /* or -EINVAL */
21 int gpio_wp; /* or -EINVAL */
Adrian Huntere51151a2009-03-23 18:23:48 -070022 char *name; /* or NULL for default */
Tony Lindgren3b972bf2012-02-20 09:43:29 -080023 struct platform_device *pdev; /* mmc controller instance */
David Brownellb583f262009-05-28 14:04:03 -070024 int ocr_mask; /* temporary HACK */
Thomas Weber0b1974d2010-09-23 11:46:48 +020025 /* Remux (pad configuration) when powering on/off */
Andreas Fenkart80412ca2014-11-08 15:33:17 +010026 void (*remux)(struct device *dev, int power_on);
Grazvydas Ignotased199f72010-08-10 18:01:52 -070027 /* init some special card */
28 void (*init_card)(struct mmc_card *card);
Tony Lindgren90c62bf2008-12-10 17:37:17 -080029};
30
Adrian Hunterdb0fefc2010-02-15 10:03:34 -080031#if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
Tony Lindgren90c62bf2008-12-10 17:37:17 -080032
Tony Lindgren3b972bf2012-02-20 09:43:29 -080033void omap_hsmmc_init(struct omap2_hsmmc_info *);
34void omap_hsmmc_late_init(struct omap2_hsmmc_info *);
Tony Lindgren90c62bf2008-12-10 17:37:17 -080035
36#else
37
Tony Lindgren3b972bf2012-02-20 09:43:29 -080038static inline void omap_hsmmc_init(struct omap2_hsmmc_info *info)
39{
40}
41
42static inline void omap_hsmmc_late_init(struct omap2_hsmmc_info *info)
Tony Lindgren90c62bf2008-12-10 17:37:17 -080043{
44}
45
46#endif