1 # SPDX-License-Identifier: GPL-2.0-only
2 menu "Clock support for Amlogic platforms"
3 depends on ARCH_MESON || COMPILE_TEST
5 config COMMON_CLK_MESON_REGMAP
9 config COMMON_CLK_MESON_DUALDIV
11 select COMMON_CLK_MESON_REGMAP
13 config COMMON_CLK_MESON_MPLL
15 select COMMON_CLK_MESON_REGMAP
17 config COMMON_CLK_MESON_PHASE
19 select COMMON_CLK_MESON_REGMAP
21 config COMMON_CLK_MESON_PLL
23 select COMMON_CLK_MESON_REGMAP
25 config COMMON_CLK_MESON_SCLK_DIV
27 select COMMON_CLK_MESON_REGMAP
29 config COMMON_CLK_MESON_VID_PLL_DIV
31 select COMMON_CLK_MESON_REGMAP
33 config COMMON_CLK_MESON_VCLK
35 select COMMON_CLK_MESON_REGMAP
37 config COMMON_CLK_MESON_CLKC_UTILS
40 config COMMON_CLK_MESON_AO_CLKC
42 select COMMON_CLK_MESON_REGMAP
43 select COMMON_CLK_MESON_CLKC_UTILS
44 select RESET_CONTROLLER
46 config COMMON_CLK_MESON_EE_CLKC
48 select COMMON_CLK_MESON_REGMAP
49 select COMMON_CLK_MESON_CLKC_UTILS
51 config COMMON_CLK_MESON_CPU_DYNDIV
53 select COMMON_CLK_MESON_REGMAP
55 config COMMON_CLK_MESON8B
56 bool "Meson8 SoC Clock controller support"
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
64 select RESET_CONTROLLER
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.
70 config COMMON_CLK_GXBB
71 tristate "GXBB and GXL SoC clock controllers support"
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
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.
87 tristate "AXG SoC clock controllers support"
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
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.
101 config COMMON_CLK_AXG_AUDIO
102 tristate "Meson AXG Audio Clock Controller Driver"
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
109 depends on RESET_MESON_AUX
111 Support for the audio clock controller on AmLogic A113D devices,
112 aka axg, Say Y if you want audio subsystem to work.
114 config COMMON_CLK_A1_PLL
115 tristate "Amlogic A1 SoC PLL controller support"
117 select COMMON_CLK_MESON_REGMAP
118 select COMMON_CLK_MESON_CLKC_UTILS
119 select COMMON_CLK_MESON_PLL
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
125 config COMMON_CLK_A1_PERIPHERALS
126 tristate "Amlogic A1 SoC Peripherals clock controller support"
128 select COMMON_CLK_MESON_DUALDIV
129 select COMMON_CLK_MESON_REGMAP
130 select COMMON_CLK_MESON_CLKC_UTILS
132 Support for the Peripherals clock controller on Amlogic A113L based
133 device, A1 SoC Family. Say Y if you want A1 Peripherals clock
136 config COMMON_CLK_C3_PLL
137 tristate "Amlogic C3 PLL clock controller"
140 select COMMON_CLK_MESON_REGMAP
141 select COMMON_CLK_MESON_PLL
142 select COMMON_CLK_MESON_CLKC_UTILS
143 imply COMMON_CLK_SCMI
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
149 config COMMON_CLK_C3_PERIPHERALS
150 tristate "Amlogic C3 peripherals clock controller"
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
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
163 config COMMON_CLK_G12A
164 tristate "G12 and SM1 SoC clock controllers support"
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
178 Support for the clock controller on Amlogic S905D2, S905X2 and S905Y2
179 devices, aka g12a. Say Y if you want peripherals to work.
181 config COMMON_CLK_S4_PLL
182 tristate "S4 SoC PLL clock controllers support"
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
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
194 config COMMON_CLK_S4_PERIPHERALS
195 tristate "S4 SoC peripherals clock controllers support"
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
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.