sdhci-pltfm.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright 2010 MontaVista Software, LLC.
  3. *
  4. * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef _DRIVERS_MMC_SDHCI_PLTFM_H
  11. #define _DRIVERS_MMC_SDHCI_PLTFM_H
  12. #include <linux/clk.h>
  13. #include <linux/types.h>
  14. #include <linux/platform_device.h>
  15. #include <linux/mmc/sdhci-pltfm.h>
  16. struct sdhci_pltfm_host {
  17. struct clk *clk;
  18. void *priv; /* to handle quirks across io-accessor calls */
  19. };
  20. extern struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
  21. struct sdhci_pltfm_data *pdata);
  22. extern void sdhci_pltfm_free(struct platform_device *pdev);
  23. extern int sdhci_pltfm_register(struct platform_device *pdev,
  24. struct sdhci_pltfm_data *pdata);
  25. extern int sdhci_pltfm_unregister(struct platform_device *pdev);
  26. #ifdef CONFIG_PM
  27. extern int sdhci_pltfm_suspend(struct platform_device *dev, pm_message_t state);
  28. extern int sdhci_pltfm_resume(struct platform_device *dev);
  29. #endif
  30. #endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */