xref: /linux/drivers/clk/meson/Kconfig (revision ec16a3cdf37e507013062f9c4a2067eacdd12b62)
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
9config COMMON_CLK_MESON_DUALDIV
10	tristate
11	select COMMON_CLK_MESON_REGMAP
12
13config COMMON_CLK_MESON_MPLL
14	tristate
15	select COMMON_CLK_MESON_REGMAP
16
17config COMMON_CLK_MESON_PHASE
18	tristate
19	select COMMON_CLK_MESON_REGMAP
20
21config COMMON_CLK_MESON_PLL
22	tristate
23	select COMMON_CLK_MESON_REGMAP
24
25config COMMON_CLK_MESON_SCLK_DIV
26	tristate
27	select COMMON_CLK_MESON_REGMAP
28
29config COMMON_CLK_MESON_VID_PLL_DIV
30	tristate
31	select COMMON_CLK_MESON_REGMAP
32
33config COMMON_CLK_MESON_VCLK
34	tristate
35	select COMMON_CLK_MESON_REGMAP
36
37config COMMON_CLK_MESON_CLKC_UTILS
38	tristate
39
40config COMMON_CLK_MESON_AO_CLKC
41	tristate
42	select COMMON_CLK_MESON_REGMAP
43	select COMMON_CLK_MESON_CLKC_UTILS
44	select RESET_CONTROLLER
45
46config COMMON_CLK_MESON_EE_CLKC
47	tristate
48	select COMMON_CLK_MESON_REGMAP
49	select COMMON_CLK_MESON_CLKC_UTILS
50
51config COMMON_CLK_MESON_CPU_DYNDIV
52	tristate
53	select COMMON_CLK_MESON_REGMAP
54
55config COMMON_CLK_MESON8B
56	bool "Meson8 SoC Clock controller support"
57	depends on ARM
58	default y
59	select COMMON_CLK_MESON_REGMAP
60	select COMMON_CLK_MESON_CLKC_UTILS
61	select COMMON_CLK_MESON_MPLL
62	select COMMON_CLK_MESON_PLL
63	select MFD_SYSCON
64	select RESET_CONTROLLER
65	help
66	  Support for the clock controller on AmLogic S802 (Meson8),
67	  S805 (Meson8b) and S812 (Meson8m2) devices. Say Y if you
68	  want peripherals and CPU frequency scaling to work.
69
70config COMMON_CLK_GXBB
71	tristate "GXBB and GXL SoC clock controllers support"
72	depends on ARM64
73	default y
74	select COMMON_CLK_MESON_REGMAP
75	select COMMON_CLK_MESON_DUALDIV
76	select COMMON_CLK_MESON_VID_PLL_DIV
77	select COMMON_CLK_MESON_MPLL
78	select COMMON_CLK_MESON_PLL
79	select COMMON_CLK_MESON_AO_CLKC
80	select COMMON_CLK_MESON_EE_CLKC
81	select MFD_SYSCON
82	help
83	  Support for the clock controller on AmLogic S905 devices, aka gxbb.
84	  Say Y if you want peripherals and CPU frequency scaling to work.
85
86config COMMON_CLK_AXG
87	tristate "AXG SoC clock controllers support"
88	depends on ARM64
89	default y
90	select COMMON_CLK_MESON_REGMAP
91	select COMMON_CLK_MESON_DUALDIV
92	select COMMON_CLK_MESON_MPLL
93	select COMMON_CLK_MESON_PLL
94	select COMMON_CLK_MESON_AO_CLKC
95	select COMMON_CLK_MESON_EE_CLKC
96	select MFD_SYSCON
97	help
98	  Support for the clock controller on AmLogic A113D devices, aka axg.
99	  Say Y if you want peripherals and CPU frequency scaling to work.
100
101config COMMON_CLK_AXG_AUDIO
102	tristate "Meson AXG Audio Clock Controller Driver"
103	depends on ARM64
104	select COMMON_CLK_MESON_REGMAP
105	select COMMON_CLK_MESON_PHASE
106	select COMMON_CLK_MESON_SCLK_DIV
107	select COMMON_CLK_MESON_CLKC_UTILS
108	select REGMAP_MMIO
109	depends on RESET_MESON_AUX
110	help
111	  Support for the audio clock controller on AmLogic A113D devices,
112	  aka axg, Say Y if you want audio subsystem to work.
113
114config COMMON_CLK_A1_PLL
115	tristate "Amlogic A1 SoC PLL controller support"
116	depends on ARM64
117	select COMMON_CLK_MESON_REGMAP
118	select COMMON_CLK_MESON_CLKC_UTILS
119	select COMMON_CLK_MESON_PLL
120	help
121	  Support for the PLL clock controller on Amlogic A113L based
122	  device, A1 SoC Family. Say Y if you want A1 PLL clock controller
123	  to work.
124
125config COMMON_CLK_A1_PERIPHERALS
126	tristate "Amlogic A1 SoC Peripherals clock controller support"
127	depends on ARM64
128	select COMMON_CLK_MESON_DUALDIV
129	select COMMON_CLK_MESON_REGMAP
130	select COMMON_CLK_MESON_CLKC_UTILS
131	help
132	  Support for the Peripherals clock controller on Amlogic A113L based
133	  device, A1 SoC Family. Say Y if you want A1 Peripherals clock
134	  controller to work.
135
136config COMMON_CLK_C3_PLL
137	tristate "Amlogic C3 PLL clock controller"
138	depends on ARM64
139	default y
140	select COMMON_CLK_MESON_REGMAP
141	select COMMON_CLK_MESON_PLL
142	select COMMON_CLK_MESON_CLKC_UTILS
143	imply COMMON_CLK_SCMI
144	help
145	  Support for the PLL clock controller on Amlogic C302X and C308L devices,
146	  AKA C3. Say Y if you want the board to work, because PLLs are the parent
147	  of most peripherals.
148
149config COMMON_CLK_C3_PERIPHERALS
150	tristate "Amlogic C3 peripherals clock controller"
151	depends on ARM64
152	default y
153	select COMMON_CLK_MESON_REGMAP
154	select COMMON_CLK_MESON_DUALDIV
155	select COMMON_CLK_MESON_CLKC_UTILS
156	imply COMMON_CLK_SCMI
157	imply COMMON_CLK_C3_PLL
158	help
159	  Support for the Peripherals clock controller on Amlogic C302X and
160	  C308L devices, AKA C3. Say Y if you want the peripherals clock to
161	  work.
162
163config COMMON_CLK_G12A
164	tristate "G12 and SM1 SoC clock controllers support"
165	depends on ARM64
166	default y
167	select COMMON_CLK_MESON_REGMAP
168	select COMMON_CLK_MESON_DUALDIV
169	select COMMON_CLK_MESON_MPLL
170	select COMMON_CLK_MESON_PLL
171	select COMMON_CLK_MESON_AO_CLKC
172	select COMMON_CLK_MESON_EE_CLKC
173	select COMMON_CLK_MESON_CPU_DYNDIV
174	select COMMON_CLK_MESON_VID_PLL_DIV
175	select COMMON_CLK_MESON_VCLK
176	select MFD_SYSCON
177	help
178	  Support for the clock controller on Amlogic S905D2, S905X2 and S905Y2
179	  devices, aka g12a. Say Y if you want peripherals to work.
180
181config COMMON_CLK_S4_PLL
182	tristate "S4 SoC PLL clock controllers support"
183	depends on ARM64
184	default y
185	select COMMON_CLK_MESON_CLKC_UTILS
186	select COMMON_CLK_MESON_MPLL
187	select COMMON_CLK_MESON_PLL
188	select COMMON_CLK_MESON_REGMAP
189	help
190	  Support for the PLL clock controller on Amlogic S805X2 and S905Y4 devices,
191	  AKA S4. Say Y if you want the board to work, because PLLs are the parent of
192	  most peripherals.
193
194config COMMON_CLK_S4_PERIPHERALS
195	tristate "S4 SoC peripherals clock controllers support"
196	depends on ARM64
197	default y
198	select COMMON_CLK_MESON_CLKC_UTILS
199	select COMMON_CLK_MESON_REGMAP
200	select COMMON_CLK_MESON_DUALDIV
201	select COMMON_CLK_MESON_VID_PLL_DIV
202	help
203	  Support for the peripherals clock controller on Amlogic S805X2 and S905Y4
204	  devices, AKA S4. Say Y if you want S4 peripherals clock controller to work.
205endmenu
206