xref: /linux-6.15/include/linux/clk/renesas.h (revision b9fe9421)
1 /*
2  * Copyright 2013 Ideas On Board SPRL
3  * Copyright 2013, 2014 Horms Solutions Ltd.
4  *
5  * Contact: Laurent Pinchart <[email protected]>
6  * Contact: Simon Horman <[email protected]>
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 
14 #ifndef __LINUX_CLK_RENESAS_H_
15 #define __LINUX_CLK_RENESAS_H_
16 
17 #include <linux/types.h>
18 
19 struct device;
20 struct device_node;
21 struct generic_pm_domain;
22 
23 void rcar_gen2_clocks_init(u32 mode);
24 
25 void cpg_mstp_add_clk_domain(struct device_node *np);
26 #ifdef CONFIG_CLK_RENESAS_CPG_MSTP
27 int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev);
28 void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev);
29 #else
30 #define cpg_mstp_attach_dev	NULL
31 #define cpg_mstp_detach_dev	NULL
32 #endif
33 
34 #ifdef CONFIG_CLK_RENESAS_CPG_MSSR
35 int cpg_mssr_attach_dev(struct generic_pm_domain *unused, struct device *dev);
36 void cpg_mssr_detach_dev(struct generic_pm_domain *unused, struct device *dev);
37 #else
38 #define cpg_mssr_attach_dev	NULL
39 #define cpg_mssr_detach_dev	NULL
40 #endif
41 #endif
42