hsmmc-omap.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * MMC definitions for OMAP2
  4. *
  5. * Copyright (C) 2006 Nokia Corporation
  6. */
  7. /*
  8. * struct omap_hsmmc_dev_attr.flags possibilities
  9. *
  10. * OMAP_HSMMC_SUPPORTS_DUAL_VOLT: Some HSMMC controller instances can
  11. * operate with either 1.8Vdc or 3.0Vdc card voltages; this flag
  12. * should be set if this is the case. See for example Section 22.5.3
  13. * "MMC/SD/SDIO1 Bus Voltage Selection" of the OMAP34xx Multimedia
  14. * Device Silicon Revision 3.1.x Revision ZR (July 2011) (SWPU223R).
  15. *
  16. * OMAP_HSMMC_BROKEN_MULTIBLOCK_READ: Multiple-block read transfers
  17. * don't work correctly on some MMC controller instances on some
  18. * OMAP3 SoCs; this flag should be set if this is the case. See
  19. * for example Advisory 2.1.1.128 "MMC: Multiple Block Read
  20. * Operation Issue" in _OMAP3530/3525/3515/3503 Silicon Errata_
  21. * Revision F (October 2010) (SPRZ278F).
  22. */
  23. #define OMAP_HSMMC_SUPPORTS_DUAL_VOLT BIT(0)
  24. #define OMAP_HSMMC_BROKEN_MULTIBLOCK_READ BIT(1)
  25. #define OMAP_HSMMC_SWAKEUP_MISSING BIT(2)
  26. struct omap_hsmmc_dev_attr {
  27. u8 flags;
  28. };
  29. struct mmc_card;
  30. struct omap_hsmmc_platform_data {
  31. /* back-link to device */
  32. struct device *dev;
  33. /* set if your board has components or wiring that limits the
  34. * maximum frequency on the MMC bus */
  35. unsigned int max_freq;
  36. /* Integrating attributes from the omap_hwmod layer */
  37. u8 controller_flags;
  38. /* Register offset deviation */
  39. u16 reg_offset;
  40. /*
  41. * 4/8 wires and any additional host capabilities
  42. * need to OR'd all capabilities (ref. linux/mmc/host.h)
  43. */
  44. u32 caps; /* Used for the MMC driver on 2430 and later */
  45. u32 pm_caps; /* PM capabilities of the mmc */
  46. /* nonremovable e.g. eMMC */
  47. unsigned nonremovable:1;
  48. /* eMMC does not handle power off when not in sleep state */
  49. unsigned no_regulator_off_init:1;
  50. /* we can put the features above into this variable */
  51. #define HSMMC_HAS_PBIAS (1 << 0)
  52. #define HSMMC_HAS_UPDATED_RESET (1 << 1)
  53. #define HSMMC_HAS_HSPE_SUPPORT (1 << 2)
  54. unsigned features;
  55. /* string specifying a particular variant of hardware */
  56. char *version;
  57. const char *name;
  58. u32 ocr_mask;
  59. };