hsmmc.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. struct mmc_card;
  9. struct omap2_hsmmc_info {
  10. u8 mmc; /* controller 1/2/3 */
  11. u32 caps; /* 4/8 wires and any additional host
  12. * capabilities OR'd (ref. linux/mmc/host.h) */
  13. u32 pm_caps; /* PM capabilities */
  14. bool transceiver; /* MMC-2 option */
  15. bool ext_clock; /* use external pin for input clock */
  16. bool cover_only; /* No card detect - just cover switch */
  17. bool nonremovable; /* Nonremovable e.g. eMMC */
  18. bool power_saving; /* Try to sleep or power off when possible */
  19. bool no_off; /* power_saving and power is not to go off */
  20. bool no_off_init; /* no power off when not in MMC sleep state */
  21. bool vcc_aux_disable_is_sleep; /* Regulator off remapped to sleep */
  22. bool deferred; /* mmc needs a deferred probe */
  23. int gpio_cd; /* or -EINVAL */
  24. int gpio_wp; /* or -EINVAL */
  25. char *name; /* or NULL for default */
  26. struct platform_device *pdev; /* mmc controller instance */
  27. int ocr_mask; /* temporary HACK */
  28. int max_freq; /* maximum clock, if constrained by external
  29. * circuitry, or 0 for default */
  30. /* Remux (pad configuration) when powering on/off */
  31. void (*remux)(struct device *dev, int slot, int power_on);
  32. /* init some special card */
  33. void (*init_card)(struct mmc_card *card);
  34. };
  35. #if defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE)
  36. void omap_hsmmc_init(struct omap2_hsmmc_info *);
  37. void omap_hsmmc_late_init(struct omap2_hsmmc_info *);
  38. #else
  39. static inline void omap_hsmmc_init(struct omap2_hsmmc_info *info)
  40. {
  41. }
  42. static inline void omap_hsmmc_late_init(struct omap2_hsmmc_info *info)
  43. {
  44. }
  45. #endif