18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_cimenu "Clock support for Amlogic platforms"
38c2ecf20Sopenharmony_ci	depends on ARCH_MESON || COMPILE_TEST
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_REGMAP
68c2ecf20Sopenharmony_ci	tristate
78c2ecf20Sopenharmony_ci	select REGMAP
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_DUALDIV
108c2ecf20Sopenharmony_ci	tristate
118c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_MPLL
148c2ecf20Sopenharmony_ci	tristate
158c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_PHASE
188c2ecf20Sopenharmony_ci	tristate
198c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_PLL
228c2ecf20Sopenharmony_ci	tristate
238c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_SCLK_DIV
268c2ecf20Sopenharmony_ci	tristate
278c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_VID_PLL_DIV
308c2ecf20Sopenharmony_ci	tristate
318c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_AO_CLKC
348c2ecf20Sopenharmony_ci	tristate
358c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
368c2ecf20Sopenharmony_ci	select RESET_CONTROLLER
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_EE_CLKC
398c2ecf20Sopenharmony_ci	tristate
408c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON_CPU_DYNDIV
438c2ecf20Sopenharmony_ci	tristate
448c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ciconfig COMMON_CLK_MESON8B
478c2ecf20Sopenharmony_ci	bool "Meson8 SoC Clock controller support"
488c2ecf20Sopenharmony_ci	depends on ARM
498c2ecf20Sopenharmony_ci	default y
508c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
518c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_MPLL
528c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_PLL
538c2ecf20Sopenharmony_ci	select MFD_SYSCON
548c2ecf20Sopenharmony_ci	select RESET_CONTROLLER
558c2ecf20Sopenharmony_ci	help
568c2ecf20Sopenharmony_ci	  Support for the clock controller on AmLogic S802 (Meson8),
578c2ecf20Sopenharmony_ci	  S805 (Meson8b) and S812 (Meson8m2) devices. Say Y if you
588c2ecf20Sopenharmony_ci	  want peripherals and CPU frequency scaling to work.
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciconfig COMMON_CLK_GXBB
618c2ecf20Sopenharmony_ci	bool "GXBB and GXL SoC clock controllers support"
628c2ecf20Sopenharmony_ci	depends on ARM64
638c2ecf20Sopenharmony_ci	default y
648c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
658c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_DUALDIV
668c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_VID_PLL_DIV
678c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_MPLL
688c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_PLL
698c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_AO_CLKC
708c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_EE_CLKC
718c2ecf20Sopenharmony_ci	select MFD_SYSCON
728c2ecf20Sopenharmony_ci	help
738c2ecf20Sopenharmony_ci	  Support for the clock controller on AmLogic S905 devices, aka gxbb.
748c2ecf20Sopenharmony_ci	  Say Y if you want peripherals and CPU frequency scaling to work.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ciconfig COMMON_CLK_AXG
778c2ecf20Sopenharmony_ci	bool "AXG SoC clock controllers support"
788c2ecf20Sopenharmony_ci	depends on ARM64
798c2ecf20Sopenharmony_ci	default y
808c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
818c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_DUALDIV
828c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_MPLL
838c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_PLL
848c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_AO_CLKC
858c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_EE_CLKC
868c2ecf20Sopenharmony_ci	select MFD_SYSCON
878c2ecf20Sopenharmony_ci	help
888c2ecf20Sopenharmony_ci	  Support for the clock controller on AmLogic A113D devices, aka axg.
898c2ecf20Sopenharmony_ci	  Say Y if you want peripherals and CPU frequency scaling to work.
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ciconfig COMMON_CLK_AXG_AUDIO
928c2ecf20Sopenharmony_ci	tristate "Meson AXG Audio Clock Controller Driver"
938c2ecf20Sopenharmony_ci	depends on ARM64
948c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
958c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_PHASE
968c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_SCLK_DIV
978c2ecf20Sopenharmony_ci	select REGMAP_MMIO
988c2ecf20Sopenharmony_ci	help
998c2ecf20Sopenharmony_ci	  Support for the audio clock controller on AmLogic A113D devices,
1008c2ecf20Sopenharmony_ci	  aka axg, Say Y if you want audio subsystem to work.
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ciconfig COMMON_CLK_G12A
1038c2ecf20Sopenharmony_ci	bool "G12 and SM1 SoC clock controllers support"
1048c2ecf20Sopenharmony_ci	depends on ARM64
1058c2ecf20Sopenharmony_ci	default y
1068c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_REGMAP
1078c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_DUALDIV
1088c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_MPLL
1098c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_PLL
1108c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_AO_CLKC
1118c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_EE_CLKC
1128c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_CPU_DYNDIV
1138c2ecf20Sopenharmony_ci	select COMMON_CLK_MESON_VID_PLL_DIV
1148c2ecf20Sopenharmony_ci	select MFD_SYSCON
1158c2ecf20Sopenharmony_ci	help
1168c2ecf20Sopenharmony_ci	  Support for the clock controller on Amlogic S905D2, S905X2 and S905Y2
1178c2ecf20Sopenharmony_ci	  devices, aka g12a. Say Y if you want peripherals to work.
1188c2ecf20Sopenharmony_ciendmenu
119