mmci.h 1022 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * include/linux/amba/mmci.h
  4. */
  5. #ifndef AMBA_MMCI_H
  6. #define AMBA_MMCI_H
  7. #include <linux/mmc/host.h>
  8. /**
  9. * struct mmci_platform_data - platform configuration for the MMCI
  10. * (also known as PL180) block.
  11. * @ocr_mask: available voltages on the 4 pins from the block, this
  12. * is ignored if a regulator is used, see the MMC_VDD_* masks in
  13. * mmc/host.h
  14. * @ios_handler: a callback function to act on specfic ios changes,
  15. * used for example to control a levelshifter
  16. * mask into a value to be binary (or set some other custom bits
  17. * in MMCIPWR) or:ed and written into the MMCIPWR register of the
  18. * block. May also control external power based on the power_mode.
  19. * @status: if no GPIO line was given to the block in this function will
  20. * be called to determine whether a card is present in the MMC slot or not
  21. */
  22. struct mmci_platform_data {
  23. unsigned int ocr_mask;
  24. int (*ios_handler)(struct device *, struct mmc_ios *);
  25. unsigned int (*status)(struct device *);
  26. };
  27. #endif