GNU Linux-libre 4.14.290-gnu1
[releases.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_R8A7778 if ARCH_R8A7778
11         select CLK_R8A7779 if ARCH_R8A7779
12         select CLK_R8A7790 if ARCH_R8A7790
13         select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
14         select CLK_R8A7792 if ARCH_R8A7792
15         select CLK_R8A7794 if ARCH_R8A7794
16         select CLK_R8A7795 if ARCH_R8A7795
17         select CLK_R8A7796 if ARCH_R8A7796
18         select CLK_R8A77995 if ARCH_R8A77995
19         select CLK_SH73A0 if ARCH_SH73A0
20
21 if CLK_RENESAS
22
23 config CLK_RENESAS_LEGACY
24         bool "Legacy DT clock support"
25         depends on CLK_R8A7790 || CLK_R8A7791 || CLK_R8A7792 || CLK_R8A7794
26         default y
27         help
28           Enable backward compatibility with old device trees describing a
29           hierarchical representation of the various CPG and MSTP clocks.
30
31           Say Y if you want your kernel to work with old DTBs.
32
33 # SoC
34 config CLK_EMEV2
35         bool "Emma Mobile EV2 clock support" if COMPILE_TEST
36
37 config CLK_RZA1
38         bool "RZ/A1H clock support" if COMPILE_TEST
39         select CLK_RENESAS_CPG_MSTP
40
41 config CLK_R8A73A4
42         bool "R-Mobile APE6 clock support" if COMPILE_TEST
43         select CLK_RENESAS_CPG_MSTP
44         select CLK_RENESAS_DIV6
45
46 config CLK_R8A7740
47         bool "R-Mobile A1 clock support" if COMPILE_TEST
48         select CLK_RENESAS_CPG_MSTP
49         select CLK_RENESAS_DIV6
50
51 config CLK_R8A7743
52         bool "RZ/G1M clock support" if COMPILE_TEST
53         select CLK_RCAR_GEN2_CPG
54
55 config CLK_R8A7745
56         bool "RZ/G1E clock support" if COMPILE_TEST
57         select CLK_RCAR_GEN2_CPG
58
59 config CLK_R8A7778
60         bool "R-Car M1A clock support" if COMPILE_TEST
61         select CLK_RENESAS_CPG_MSTP
62
63 config CLK_R8A7779
64         bool "R-Car H1 clock support" if COMPILE_TEST
65         select CLK_RENESAS_CPG_MSTP
66
67 config CLK_R8A7790
68         bool "R-Car H2 clock support" if COMPILE_TEST
69         select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
70         select CLK_RCAR_GEN2_CPG
71         select CLK_RENESAS_DIV6
72
73 config CLK_R8A7791
74         bool "R-Car M2-W/N clock support" if COMPILE_TEST
75         select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
76         select CLK_RCAR_GEN2_CPG
77         select CLK_RENESAS_DIV6
78
79 config CLK_R8A7792
80         bool "R-Car V2H clock support" if COMPILE_TEST
81         select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
82         select CLK_RCAR_GEN2_CPG
83
84 config CLK_R8A7794
85         bool "R-Car E2 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_R8A7795
91         bool "R-Car H3 clock support" if COMPILE_TEST
92         select CLK_RCAR_GEN3_CPG
93
94 config CLK_R8A7796
95         bool "R-Car M3-W clock support" if COMPILE_TEST
96         select CLK_RCAR_GEN3_CPG
97
98 config CLK_R8A77995
99         bool "R-Car D3 clock support" if COMPILE_TEST
100         select CLK_RCAR_GEN3_CPG
101
102 config CLK_SH73A0
103         bool "SH-Mobile AG5 clock support" if COMPILE_TEST
104         select CLK_RENESAS_CPG_MSTP
105         select CLK_RENESAS_DIV6
106
107
108 # Family
109 config CLK_RCAR_GEN2
110         bool "R-Car Gen2 legacy clock support" if COMPILE_TEST
111         select CLK_RENESAS_CPG_MSTP
112         select CLK_RENESAS_DIV6
113
114 config CLK_RCAR_GEN2_CPG
115         bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
116         select CLK_RENESAS_CPG_MSSR
117
118 config CLK_RCAR_GEN3_CPG
119         bool "R-Car Gen3 CPG clock support" if COMPILE_TEST
120         select CLK_RENESAS_CPG_MSSR
121
122 config CLK_RCAR_USB2_CLOCK_SEL
123         bool "Renesas R-Car USB2 clock selector support"
124         depends on ARCH_RENESAS || COMPILE_TEST
125         help
126           This is a driver for R-Car USB2 clock selector
127
128 # Generic
129 config CLK_RENESAS_CPG_MSSR
130         bool "CPG/MSSR clock support" if COMPILE_TEST
131         select CLK_RENESAS_DIV6
132
133 config CLK_RENESAS_CPG_MSTP
134         bool "MSTP clock support" if COMPILE_TEST
135
136 config CLK_RENESAS_DIV6
137         bool "DIV6 clock support" if COMPILE_TEST
138
139 endif # CLK_RENESAS