mmc-twl4030.h 757 B

1234567891011121314151617181920212223242526272829
  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 twl4030_hsmmc_info {
  9. u8 mmc; /* controller 1/2/3 */
  10. u8 wires; /* 1/4/8 wires */
  11. int gpio_cd; /* or -EINVAL */
  12. int gpio_wp; /* or -EINVAL */
  13. int ext_clock:1; /* use external pin for input clock */
  14. };
  15. #if defined(CONFIG_TWL4030_CORE) && \
  16. (defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE) || \
  17. defined(CONFIG_MMC_OMAP_HS) || defined(CONFIG_MMC_OMAP_HS_MODULE))
  18. void twl4030_mmc_init(struct twl4030_hsmmc_info *);
  19. #else
  20. static inline void twl4030_mmc_init(struct twl4030_hsmmc_info *info)
  21. {
  22. }
  23. #endif