xref: /OK3568_Linux_fs/kernel/include/linux/clk/renesas.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+
2*4882a593Smuzhiyun  *
3*4882a593Smuzhiyun  * Copyright 2013 Ideas On Board SPRL
4*4882a593Smuzhiyun  * Copyright 2013, 2014 Horms Solutions Ltd.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
7*4882a593Smuzhiyun  * Contact: Simon Horman <horms@verge.net.au>
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #ifndef __LINUX_CLK_RENESAS_H_
11*4882a593Smuzhiyun #define __LINUX_CLK_RENESAS_H_
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #include <linux/types.h>
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun struct device;
16*4882a593Smuzhiyun struct device_node;
17*4882a593Smuzhiyun struct generic_pm_domain;
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun void cpg_mstp_add_clk_domain(struct device_node *np);
20*4882a593Smuzhiyun #ifdef CONFIG_CLK_RENESAS_CPG_MSTP
21*4882a593Smuzhiyun int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev);
22*4882a593Smuzhiyun void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev);
23*4882a593Smuzhiyun #else
24*4882a593Smuzhiyun #define cpg_mstp_attach_dev	NULL
25*4882a593Smuzhiyun #define cpg_mstp_detach_dev	NULL
26*4882a593Smuzhiyun #endif
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #ifdef CONFIG_CLK_RENESAS_CPG_MSSR
29*4882a593Smuzhiyun int cpg_mssr_attach_dev(struct generic_pm_domain *unused, struct device *dev);
30*4882a593Smuzhiyun void cpg_mssr_detach_dev(struct generic_pm_domain *unused, struct device *dev);
31*4882a593Smuzhiyun #else
32*4882a593Smuzhiyun #define cpg_mssr_attach_dev	NULL
33*4882a593Smuzhiyun #define cpg_mssr_detach_dev	NULL
34*4882a593Smuzhiyun #endif
35*4882a593Smuzhiyun #endif
36