xref: /openbmc/linux/drivers/clk/meson/Kconfig (revision 9659281c)
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_AO_CLKC
34	tristate
35	select COMMON_CLK_MESON_REGMAP
36	select RESET_CONTROLLER
37
38config COMMON_CLK_MESON_EE_CLKC
39	tristate
40	select COMMON_CLK_MESON_REGMAP
41
42config COMMON_CLK_MESON_CPU_DYNDIV
43	tristate
44	select COMMON_CLK_MESON_REGMAP
45
46config COMMON_CLK_MESON8B
47	bool "Meson8 SoC Clock controller support"
48	depends on ARM
49	default y
50	select COMMON_CLK_MESON_REGMAP
51	select COMMON_CLK_MESON_MPLL
52	select COMMON_CLK_MESON_PLL
53	select MFD_SYSCON
54	select RESET_CONTROLLER
55	help
56	  Support for the clock controller on AmLogic S802 (Meson8),
57	  S805 (Meson8b) and S812 (Meson8m2) devices. Say Y if you
58	  want peripherals and CPU frequency scaling to work.
59
60config COMMON_CLK_GXBB
61	tristate "GXBB and GXL SoC clock controllers support"
62	depends on ARM64
63	default y
64	select COMMON_CLK_MESON_REGMAP
65	select COMMON_CLK_MESON_DUALDIV
66	select COMMON_CLK_MESON_VID_PLL_DIV
67	select COMMON_CLK_MESON_MPLL
68	select COMMON_CLK_MESON_PLL
69	select COMMON_CLK_MESON_AO_CLKC
70	select COMMON_CLK_MESON_EE_CLKC
71	select MFD_SYSCON
72	help
73	  Support for the clock controller on AmLogic S905 devices, aka gxbb.
74	  Say Y if you want peripherals and CPU frequency scaling to work.
75
76config COMMON_CLK_AXG
77	tristate "AXG SoC clock controllers support"
78	depends on ARM64
79	default y
80	select COMMON_CLK_MESON_REGMAP
81	select COMMON_CLK_MESON_DUALDIV
82	select COMMON_CLK_MESON_MPLL
83	select COMMON_CLK_MESON_PLL
84	select COMMON_CLK_MESON_AO_CLKC
85	select COMMON_CLK_MESON_EE_CLKC
86	select MFD_SYSCON
87	help
88	  Support for the clock controller on AmLogic A113D devices, aka axg.
89	  Say Y if you want peripherals and CPU frequency scaling to work.
90
91config COMMON_CLK_AXG_AUDIO
92	tristate "Meson AXG Audio Clock Controller Driver"
93	depends on ARM64
94	select COMMON_CLK_MESON_REGMAP
95	select COMMON_CLK_MESON_PHASE
96	select COMMON_CLK_MESON_SCLK_DIV
97	select REGMAP_MMIO
98	help
99	  Support for the audio clock controller on AmLogic A113D devices,
100	  aka axg, Say Y if you want audio subsystem to work.
101
102config COMMON_CLK_G12A
103	tristate "G12 and SM1 SoC clock controllers support"
104	depends on ARM64
105	default y
106	select COMMON_CLK_MESON_REGMAP
107	select COMMON_CLK_MESON_DUALDIV
108	select COMMON_CLK_MESON_MPLL
109	select COMMON_CLK_MESON_PLL
110	select COMMON_CLK_MESON_AO_CLKC
111	select COMMON_CLK_MESON_EE_CLKC
112	select COMMON_CLK_MESON_CPU_DYNDIV
113	select COMMON_CLK_MESON_VID_PLL_DIV
114	select MFD_SYSCON
115	help
116	  Support for the clock controller on Amlogic S905D2, S905X2 and S905Y2
117	  devices, aka g12a. Say Y if you want peripherals to work.
118endmenu
119