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