xref: /linux/drivers/clk/meson/Kconfig (revision 502d45774af09f1c681c754c4b7cdfb5d7f72fd9)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "Clock support for Amlogic platforms"
3	depends on ARCH_MESON || COMPILE_TEST
4
5config COMMON_CLK_MESON_REGMAP
6	tristate
7	select REGMAP
8	select MFD_SYSCON
9
10config COMMON_CLK_MESON_DUALDIV
11	tristate
12	select COMMON_CLK_MESON_REGMAP
13
14config COMMON_CLK_MESON_MPLL
15	tristate
16	select COMMON_CLK_MESON_REGMAP
17
18config COMMON_CLK_MESON_PHASE
19	tristate
20	select COMMON_CLK_MESON_REGMAP
21
22config COMMON_CLK_MESON_PLL
23	tristate
24	select COMMON_CLK_MESON_REGMAP
25
26config COMMON_CLK_MESON_SCLK_DIV
27	tristate
28	select COMMON_CLK_MESON_REGMAP
29
30config COMMON_CLK_MESON_VID_PLL_DIV
31	tristate
32	select COMMON_CLK_MESON_REGMAP
33
34config COMMON_CLK_MESON_VCLK
35	tristate
36	select COMMON_CLK_MESON_REGMAP
37
38config COMMON_CLK_MESON_CLKC_UTILS
39	select REGMAP
40	select MFD_SYSCON
41	tristate
42
43config COMMON_CLK_MESON_AO_CLKC
44	tristate
45	select COMMON_CLK_MESON_REGMAP
46	select COMMON_CLK_MESON_CLKC_UTILS
47	select RESET_CONTROLLER
48
49config COMMON_CLK_MESON_CPU_DYNDIV
50	tristate
51	select COMMON_CLK_MESON_REGMAP
52
53config COMMON_CLK_MESON8B
54	bool "Meson8 SoC Clock controller support"
55	depends on ARM
56	default ARCH_MESON
57	select COMMON_CLK_MESON_REGMAP
58	select COMMON_CLK_MESON_CLKC_UTILS
59	select COMMON_CLK_MESON_MPLL
60	select COMMON_CLK_MESON_PLL
61	select MFD_SYSCON
62	select RESET_CONTROLLER
63	help
64	  Support for the clock controller on AmLogic S802 (Meson8),
65	  S805 (Meson8b) and S812 (Meson8m2) devices. Say Y if you
66	  want peripherals and CPU frequency scaling to work.
67
68config COMMON_CLK_GXBB
69	tristate "GXBB and GXL SoC clock controllers support"
70	depends on ARM64
71	default ARCH_MESON
72	select COMMON_CLK_MESON_REGMAP
73	select COMMON_CLK_MESON_CLKC_UTILS
74	select COMMON_CLK_MESON_DUALDIV
75	select COMMON_CLK_MESON_VID_PLL_DIV
76	select COMMON_CLK_MESON_MPLL
77	select COMMON_CLK_MESON_PLL
78	select COMMON_CLK_MESON_AO_CLKC
79	select MFD_SYSCON
80	help
81	  Support for the clock controller on AmLogic S905 devices, aka gxbb.
82	  Say Y if you want peripherals and CPU frequency scaling to work.
83
84config COMMON_CLK_AXG
85	tristate "AXG SoC clock controllers support"
86	depends on ARM64
87	default ARCH_MESON
88	select COMMON_CLK_MESON_REGMAP
89	select COMMON_CLK_MESON_CLKC_UTILS
90	select COMMON_CLK_MESON_DUALDIV
91	select COMMON_CLK_MESON_MPLL
92	select COMMON_CLK_MESON_PLL
93	select COMMON_CLK_MESON_AO_CLKC
94	select MFD_SYSCON
95	help
96	  Support for the clock controller on AmLogic A113D devices, aka axg.
97	  Say Y if you want peripherals and CPU frequency scaling to work.
98
99config COMMON_CLK_AXG_AUDIO
100	tristate "Meson AXG Audio Clock Controller Driver"
101	depends on ARM64
102	select COMMON_CLK_MESON_REGMAP
103	select COMMON_CLK_MESON_PHASE
104	select COMMON_CLK_MESON_SCLK_DIV
105	select COMMON_CLK_MESON_CLKC_UTILS
106	select REGMAP_MMIO
107	select AUXILIARY_BUS
108	imply RESET_MESON_AUX
109	help
110	  Support for the audio clock controller on AmLogic A113D devices,
111	  aka axg, Say Y if you want audio subsystem to work.
112
113config COMMON_CLK_A1_PLL
114	tristate "Amlogic A1 SoC PLL controller support"
115	depends on ARM64
116	select COMMON_CLK_MESON_REGMAP
117	select COMMON_CLK_MESON_CLKC_UTILS
118	select COMMON_CLK_MESON_PLL
119	help
120	  Support for the PLL clock controller on Amlogic A113L based
121	  device, A1 SoC Family. Say Y if you want A1 PLL clock controller
122	  to work.
123
124config COMMON_CLK_A1_PERIPHERALS
125	tristate "Amlogic A1 SoC Peripherals clock controller support"
126	depends on ARM64
127	select COMMON_CLK_MESON_DUALDIV
128	select COMMON_CLK_MESON_REGMAP
129	select COMMON_CLK_MESON_CLKC_UTILS
130	help
131	  Support for the Peripherals clock controller on Amlogic A113L based
132	  device, A1 SoC Family. Say Y if you want A1 Peripherals clock
133	  controller to work.
134
135config COMMON_CLK_A9_PERIPHERALS
136	tristate "Amlogic A9 SoC peripherals clock controller support"
137	depends on ARM64 || COMPILE_TEST
138	default ARCH_MESON
139	select COMMON_CLK_MESON_REGMAP
140	select COMMON_CLK_MESON_CLKC_UTILS
141	select COMMON_CLK_MESON_DUALDIV
142	select COMMON_CLK_MESON_VID_PLL_DIV
143	imply COMMON_CLK_SCMI
144	help
145	  Support for the peripherals clock controller on Amlogic A311Y3 based
146	  device, AKA A9. Peripherals are required by most peripheral to operate.
147	  Say Y if you want A9 peripherals clock controller to work.
148
149config COMMON_CLK_A9_AO
150	tristate "Amlogic A9 SoC AO clock controller support"
151	depends on ARM64 || COMPILE_TEST
152	default ARCH_MESON
153	select COMMON_CLK_MESON_REGMAP
154	select COMMON_CLK_MESON_CLKC_UTILS
155	select COMMON_CLK_MESON_DUALDIV
156	imply COMMON_CLK_SCMI
157	help
158	  Support for the AO clock controller on Amlogic A311Y3 based
159	  device, AKA A9.
160	  Say Y if you want A9 AO clock controller to work.
161
162config COMMON_CLK_C3_PLL
163	tristate "Amlogic C3 PLL clock controller"
164	depends on ARM64
165	default ARCH_MESON
166	select COMMON_CLK_MESON_REGMAP
167	select COMMON_CLK_MESON_PLL
168	select COMMON_CLK_MESON_CLKC_UTILS
169	imply COMMON_CLK_SCMI
170	help
171	  Support for the PLL clock controller on Amlogic C302X and C308L devices,
172	  AKA C3. Say Y if you want the board to work, because PLLs are the parent
173	  of most peripherals.
174
175config COMMON_CLK_C3_PERIPHERALS
176	tristate "Amlogic C3 peripherals clock controller"
177	depends on ARM64
178	default ARCH_MESON
179	select COMMON_CLK_MESON_REGMAP
180	select COMMON_CLK_MESON_DUALDIV
181	select COMMON_CLK_MESON_CLKC_UTILS
182	imply COMMON_CLK_SCMI
183	imply COMMON_CLK_C3_PLL
184	help
185	  Support for the Peripherals clock controller on Amlogic C302X and
186	  C308L devices, AKA C3. Say Y if you want the peripherals clock to
187	  work.
188
189config COMMON_CLK_G12A
190	tristate "G12 and SM1 SoC clock controllers support"
191	depends on ARM64
192	default ARCH_MESON
193	select COMMON_CLK_MESON_REGMAP
194	select COMMON_CLK_MESON_CLKC_UTILS
195	select COMMON_CLK_MESON_DUALDIV
196	select COMMON_CLK_MESON_MPLL
197	select COMMON_CLK_MESON_PLL
198	select COMMON_CLK_MESON_AO_CLKC
199	select COMMON_CLK_MESON_CPU_DYNDIV
200	select COMMON_CLK_MESON_VID_PLL_DIV
201	select COMMON_CLK_MESON_VCLK
202	select MFD_SYSCON
203	help
204	  Support for the clock controller on Amlogic S905D2, S905X2 and S905Y2
205	  devices, aka g12a. Say Y if you want peripherals to work.
206
207config COMMON_CLK_S4_PLL
208	tristate "S4 SoC PLL clock controllers support"
209	depends on ARM64
210	default ARCH_MESON
211	select COMMON_CLK_MESON_CLKC_UTILS
212	select COMMON_CLK_MESON_MPLL
213	select COMMON_CLK_MESON_PLL
214	select COMMON_CLK_MESON_REGMAP
215	help
216	  Support for the PLL clock controller on Amlogic S805X2 and S905Y4 devices,
217	  AKA S4. Say Y if you want the board to work, because PLLs are the parent of
218	  most peripherals.
219
220config COMMON_CLK_S4_PERIPHERALS
221	tristate "S4 SoC peripherals clock controllers support"
222	depends on ARM64
223	default ARCH_MESON
224	select COMMON_CLK_MESON_CLKC_UTILS
225	select COMMON_CLK_MESON_REGMAP
226	select COMMON_CLK_MESON_DUALDIV
227	select COMMON_CLK_MESON_VID_PLL_DIV
228	help
229	  Support for the peripherals clock controller on Amlogic S805X2 and S905Y4
230	  devices, AKA S4. Say Y if you want S4 peripherals clock controller to work.
231
232config COMMON_CLK_T7_PLL
233	tristate "Amlogic T7 SoC PLL controller support"
234	depends on ARM64
235	default ARCH_MESON
236	select COMMON_CLK_MESON_REGMAP
237	select COMMON_CLK_MESON_CLKC_UTILS
238	select COMMON_CLK_MESON_MPLL
239	select COMMON_CLK_MESON_PLL
240	imply COMMON_CLK_SCMI
241	help
242	  Support for the PLL clock controller on Amlogic A311D2 based
243	  device, AKA T7. PLLs are required by most peripheral to operate.
244	  Say Y if you want T7 PLL clock controller to work.
245
246config COMMON_CLK_T7_PERIPHERALS
247	tristate "Amlogic T7 SoC peripherals clock controller support"
248	depends on ARM64
249	default ARCH_MESON
250	select COMMON_CLK_MESON_REGMAP
251	select COMMON_CLK_MESON_CLKC_UTILS
252	select COMMON_CLK_MESON_DUALDIV
253	imply COMMON_CLK_SCMI
254	imply COMMON_CLK_T7_PLL
255	help
256	  Support for the peripherals clock controller on Amlogic A311D2 based
257	  device, AKA T7. Peripherals are required by most peripheral to operate.
258	  Say Y if you want T7 peripherals clock controller to work.
259endmenu
260