renesas.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright 2013 Ideas On Board SPRL
  3. * Copyright 2013, 2014 Horms Solutions Ltd.
  4. *
  5. * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
  6. * Contact: Simon Horman <horms@verge.net.au>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. */
  13. #ifndef __LINUX_CLK_RENESAS_H_
  14. #define __LINUX_CLK_RENESAS_H_
  15. #include <linux/types.h>
  16. struct device;
  17. struct device_node;
  18. struct generic_pm_domain;
  19. void r8a7778_clocks_init(u32 mode);
  20. void r8a7779_clocks_init(u32 mode);
  21. void rcar_gen2_clocks_init(u32 mode);
  22. void cpg_mstp_add_clk_domain(struct device_node *np);
  23. #ifdef CONFIG_CLK_RENESAS_CPG_MSTP
  24. int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev);
  25. void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev);
  26. #else
  27. #define cpg_mstp_attach_dev NULL
  28. #define cpg_mstp_detach_dev NULL
  29. #endif
  30. #ifdef CONFIG_CLK_RENESAS_CPG_MSSR
  31. int cpg_mssr_attach_dev(struct generic_pm_domain *unused, struct device *dev);
  32. void cpg_mssr_detach_dev(struct generic_pm_domain *unused, struct device *dev);
  33. #else
  34. #define cpg_mssr_attach_dev NULL
  35. #define cpg_mssr_detach_dev NULL
  36. #endif
  37. #endif