renesas.h 1001 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0+
  2. *
  3. * Copyright 2013 Ideas On Board SPRL
  4. * Copyright 2013, 2014 Horms Solutions Ltd.
  5. *
  6. * Contact: Laurent Pinchart <[email protected]>
  7. * Contact: Simon Horman <[email protected]>
  8. */
  9. #ifndef __LINUX_CLK_RENESAS_H_
  10. #define __LINUX_CLK_RENESAS_H_
  11. #include <linux/types.h>
  12. struct device;
  13. struct device_node;
  14. struct generic_pm_domain;
  15. void cpg_mstp_add_clk_domain(struct device_node *np);
  16. #ifdef CONFIG_CLK_RENESAS_CPG_MSTP
  17. int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev);
  18. void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev);
  19. #else
  20. #define cpg_mstp_attach_dev NULL
  21. #define cpg_mstp_detach_dev NULL
  22. #endif
  23. #ifdef CONFIG_CLK_RENESAS_CPG_MSSR
  24. int cpg_mssr_attach_dev(struct generic_pm_domain *unused, struct device *dev);
  25. void cpg_mssr_detach_dev(struct generic_pm_domain *unused, struct device *dev);
  26. #else
  27. #define cpg_mssr_attach_dev NULL
  28. #define cpg_mssr_detach_dev NULL
  29. #endif
  30. #endif