sdhci-spear.h 889 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * include/linux/mmc/sdhci-spear.h
  3. *
  4. * SDHCI declarations specific to ST SPEAr platform
  5. *
  6. * Copyright (C) 2010 ST Microelectronics
  7. * Viresh Kumar <viresh.linux@gmail.com>
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #ifndef LINUX_MMC_SDHCI_SPEAR_H
  14. #define LINUX_MMC_SDHCI_SPEAR_H
  15. #include <linux/platform_device.h>
  16. /*
  17. * struct sdhci_plat_data: spear sdhci platform data structure
  18. *
  19. * card_int_gpio: gpio pin used for card detection
  20. */
  21. struct sdhci_plat_data {
  22. int card_int_gpio;
  23. };
  24. /* This function is used to set platform_data field of pdev->dev */
  25. static inline void
  26. sdhci_set_plat_data(struct platform_device *pdev, struct sdhci_plat_data *data)
  27. {
  28. pdev->dev.platform_data = data;
  29. }
  30. #endif /* LINUX_MMC_SDHCI_SPEAR_H */