Linux-libre 4.19.123-gnu
[librecmc/linux-libre.git] / drivers / clk / renesas / Kconfig
1 config CLK_RENESAS
2         bool "Renesas SoC clock support" if COMPILE_TEST && !ARCH_RENESAS
3         default y if ARCH_RENESAS
4         select CLK_EMEV2 if ARCH_EMEV2
5         select CLK_RZA1 if ARCH_R7S72100
6         select CLK_R8A73A4 if ARCH_R8A73A4
7         select CLK_R8A7740 if ARCH_R8A7740
8         select CLK_R8A7743 if ARCH_R8A7743
9         select CLK_R8A7745 if ARCH_R8A7745
10         select CLK_R8A77470 if ARCH_R8A77470
11         select CLK_R8A7778 if ARCH_R8A7778
12         select CLK_R8A7779 if ARCH_R8A7779
13         select CLK_R8A7790 if ARCH_R8A7790
14         select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
15         select CLK_R8A7792 if ARCH_R8A7792
16         select CLK_R8A7794 if ARCH_R8A7794
17         select CLK_R8A7795 if ARCH_R8A7795
18         select CLK_R8A7796 if ARCH_R8A7796
19         select CLK_R8A77965 if ARCH_R8A77965
20         select CLK_R8A77970 if ARCH_R8A77970
21         select CLK_R8A77980 if ARCH_R8A77980
22         select CLK_R8A77990 if ARCH_R8A77990
23         select CLK_R8A77995 if ARCH_R8A77995
24         select CLK_R9A06G032 if ARCH_R9A06G032
25         select CLK_SH73A0 if ARCH_SH73A0
26
27 if CLK_RENESAS
28
29 config CLK_RENESAS_LEGACY
30         bool "Legacy DT clock support"
31         depends on CLK_R8A7790 || CLK_R8A7791 || CLK_R8A7792 || CLK_R8A7794
32         help
33           Enable backward compatibility with old device trees describing a
34           hierarchical representation of the various CPG and MSTP clocks.
35
36           Say Y if you want your kernel to work with old DTBs.
37           It is safe to say N if you use the DTS that is supplied with the
38           current kernel source tree.
39
40 # SoC
41 config CLK_EMEV2
42         bool "Emma Mobile EV2 clock support" if COMPILE_TEST
43
44 config CLK_RZA1
45         bool "RZ/A1H clock support" if COMPILE_TEST
46         select CLK_RENESAS_CPG_MSTP
47
48 config CLK_R8A73A4
49         bool "R-Mobile APE6 clock support" if COMPILE_TEST
50         select CLK_RENESAS_CPG_MSTP
51         select CLK_RENESAS_DIV6
52
53 config CLK_R8A7740
54         bool "R-Mobile A1 clock support" if COMPILE_TEST
55         select CLK_RENESAS_CPG_MSTP
56         select CLK_RENESAS_DIV6
57
58 config CLK_R8A7743
59         bool "RZ/G1M clock support" if COMPILE_TEST
60         select CLK_RCAR_GEN2_CPG
61
62 config CLK_R8A7745
63         bool "RZ/G1E clock support" if COMPILE_TEST
64         select CLK_RCAR_GEN2_CPG
65
66 config CLK_R8A77470
67         bool "RZ/G1C clock support" if COMPILE_TEST
68         select CLK_RCAR_GEN2_CPG
69
70 config CLK_R8A7778
71         bool "R-Car M1A clock support" if COMPILE_TEST
72         select CLK_RENESAS_CPG_MSTP
73
74 config CLK_R8A7779
75         bool "R-Car H1 clock support" if COMPILE_TEST
76         select CLK_RENESAS_CPG_MSTP
77
78 config CLK_R8A7790
79         bool "R-Car H2 clock support" if COMPILE_TEST
80         select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
81         select CLK_RCAR_GEN2_CPG
82         select CLK_RENESAS_DIV6
83
84 config CLK_R8A7791
85         bool "R-Car M2-W/N clock support" if COMPILE_TEST
86         select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
87         select CLK_RCAR_GEN2_CPG
88         select CLK_RENESAS_DIV6
89
90 config CLK_R8A7792
91         bool "R-Car V2H clock support" if COMPILE_TEST
92         select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
93         select CLK_RCAR_GEN2_CPG
94
95 config CLK_R8A7794
96         bool "R-Car E2 clock support" if COMPILE_TEST
97         select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
98         select CLK_RCAR_GEN2_CPG
99         select CLK_RENESAS_DIV6
100
101 config CLK_R8A7795
102         bool "R-Car H3 clock support" if COMPILE_TEST
103         select CLK_RCAR_GEN3_CPG
104
105 config CLK_R8A7796
106         bool "R-Car M3-W clock support" if COMPILE_TEST
107         select CLK_RCAR_GEN3_CPG
108
109 config CLK_R8A77965
110         bool "R-Car M3-N clock support" if COMPILE_TEST
111         select CLK_RCAR_GEN3_CPG
112
113 config CLK_R8A77970
114         bool "R-Car V3M clock support" if COMPILE_TEST
115         select CLK_RCAR_GEN3_CPG
116
117 config CLK_R8A77980
118         bool "R-Car V3H clock support" if COMPILE_TEST
119         select CLK_RCAR_GEN3_CPG
120
121 config CLK_R8A77990
122         bool "R-Car E3 clock support" if COMPILE_TEST
123         select CLK_RCAR_GEN3_CPG
124
125 config CLK_R8A77995
126         bool "R-Car D3 clock support" if COMPILE_TEST
127         select CLK_RCAR_GEN3_CPG
128
129 config CLK_R9A06G032
130         bool "Renesas R9A06G032 clock driver"
131         help
132           This is a driver for R9A06G032 clocks
133
134 config CLK_SH73A0
135         bool "SH-Mobile AG5 clock support" if COMPILE_TEST
136         select CLK_RENESAS_CPG_MSTP
137         select CLK_RENESAS_DIV6
138
139
140 # Family
141 config CLK_RCAR_GEN2
142         bool "R-Car Gen2 legacy clock support" if COMPILE_TEST
143         select CLK_RENESAS_CPG_MSTP
144         select CLK_RENESAS_DIV6
145
146 config CLK_RCAR_GEN2_CPG
147         bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
148         select CLK_RENESAS_CPG_MSSR
149
150 config CLK_RCAR_GEN3_CPG
151         bool "R-Car Gen3 CPG clock support" if COMPILE_TEST
152         select CLK_RENESAS_CPG_MSSR
153
154 config CLK_RCAR_USB2_CLOCK_SEL
155         bool "Renesas R-Car USB2 clock selector support"
156         depends on ARCH_RENESAS || COMPILE_TEST
157         help
158           This is a driver for R-Car USB2 clock selector
159
160 # Generic
161 config CLK_RENESAS_CPG_MSSR
162         bool "CPG/MSSR clock support" if COMPILE_TEST
163         select CLK_RENESAS_DIV6
164
165 config CLK_RENESAS_CPG_MSTP
166         bool "MSTP clock support" if COMPILE_TEST
167
168 config CLK_RENESAS_DIV6
169         bool "DIV6 clock support" if COMPILE_TEST
170
171 endif # CLK_RENESAS