sdhci-pltfm.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. /* migrate from sdhci_of_host */
  20. unsigned int clock;
  21. u16 xfer_mode_shadow;
  22. };
  23. extern struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
  24. struct sdhci_pltfm_data *pdata);
  25. extern void sdhci_pltfm_free(struct platform_device *pdev);
  26. extern int sdhci_pltfm_register(struct platform_device *pdev,
  27. struct sdhci_pltfm_data *pdata);
  28. extern int sdhci_pltfm_unregister(struct platform_device *pdev);
  29. #ifdef CONFIG_PM
  30. extern int sdhci_pltfm_suspend(struct platform_device *dev, pm_message_t state);
  31. extern int sdhci_pltfm_resume(struct platform_device *dev);
  32. #endif
  33. #endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */