xref: /linux/include/linux/clk/renesas.h (revision 95298d63c67673c654c08952672d016212b26054)
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 <laurent.pinchart@ideasonboard.com>
7  * Contact: Simon Horman <horms@verge.net.au>
8  */
9 
10 #ifndef __LINUX_CLK_RENESAS_H_
11 #define __LINUX_CLK_RENESAS_H_
12 
13 #include <linux/types.h>
14 
15 struct device;
16 struct device_node;
17 struct generic_pm_domain;
18 
19 void cpg_mstp_add_clk_domain(struct device_node *np);
20 #ifdef CONFIG_CLK_RENESAS_CPG_MSTP
21 int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev);
22 void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev);
23 #else
24 #define cpg_mstp_attach_dev	NULL
25 #define cpg_mstp_detach_dev	NULL
26 #endif
27 
28 #ifdef CONFIG_CLK_RENESAS_CPG_MSSR
29 int cpg_mssr_attach_dev(struct generic_pm_domain *unused, struct device *dev);
30 void cpg_mssr_detach_dev(struct generic_pm_domain *unused, struct device *dev);
31 #else
32 #define cpg_mssr_attach_dev	NULL
33 #define cpg_mssr_detach_dev	NULL
34 #endif
35 #endif
36