xref: /openbmc/linux/drivers/clk/sunxi-ng/Kconfig (revision f36afd38)
1config SUNXI_CCU
2	bool "Clock support for Allwinner SoCs"
3	depends on ARCH_SUNXI || COMPILE_TEST
4	select RESET_CONTROLLER
5	default ARCH_SUNXI
6
7if SUNXI_CCU
8
9# Base clock types
10
11config SUNXI_CCU_DIV
12	bool
13	select SUNXI_CCU_MUX
14
15config SUNXI_CCU_FRAC
16	bool
17
18config SUNXI_CCU_GATE
19	def_bool y
20
21config SUNXI_CCU_MUX
22	bool
23
24config SUNXI_CCU_MULT
25	bool
26	select SUNXI_CCU_MUX
27
28config SUNXI_CCU_PHASE
29	bool
30
31# Multi-factor clocks
32
33config SUNXI_CCU_NK
34	bool
35	select SUNXI_CCU_GATE
36
37config SUNXI_CCU_NKM
38	bool
39	select SUNXI_CCU_GATE
40
41config SUNXI_CCU_NKMP
42	bool
43	select SUNXI_CCU_GATE
44
45config SUNXI_CCU_NM
46	bool
47	select SUNXI_CCU_FRAC
48	select SUNXI_CCU_GATE
49
50config SUNXI_CCU_MP
51	bool
52	select SUNXI_CCU_GATE
53	select SUNXI_CCU_MUX
54
55# SoC Drivers
56
57config SUN50I_A64_CCU
58	bool "Support for the Allwinner A64 CCU"
59	select SUNXI_CCU_DIV
60	select SUNXI_CCU_NK
61	select SUNXI_CCU_NKM
62	select SUNXI_CCU_NKMP
63	select SUNXI_CCU_NM
64	select SUNXI_CCU_MP
65	select SUNXI_CCU_PHASE
66	default ARM64 && ARCH_SUNXI
67	depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST
68
69config SUN5I_CCU
70	bool "Support for the Allwinner sun5i family CCM"
71	select SUNXI_CCU_DIV
72	select SUNXI_CCU_MULT
73	select SUNXI_CCU_NK
74	select SUNXI_CCU_NKM
75	select SUNXI_CCU_NM
76	select SUNXI_CCU_MP
77	select SUNXI_CCU_PHASE
78	default MACH_SUN5I
79	depends on MACH_SUN5I || COMPILE_TEST
80
81config SUN6I_A31_CCU
82	bool "Support for the Allwinner A31/A31s CCU"
83	select SUNXI_CCU_DIV
84	select SUNXI_CCU_NK
85	select SUNXI_CCU_NKM
86	select SUNXI_CCU_NKMP
87	select SUNXI_CCU_NM
88	select SUNXI_CCU_MP
89	select SUNXI_CCU_PHASE
90	default MACH_SUN6I
91	depends on MACH_SUN6I || COMPILE_TEST
92
93config SUN8I_A23_CCU
94	bool "Support for the Allwinner A23 CCU"
95	select SUNXI_CCU_DIV
96	select SUNXI_CCU_MULT
97	select SUNXI_CCU_NK
98	select SUNXI_CCU_NKM
99	select SUNXI_CCU_NKMP
100	select SUNXI_CCU_NM
101	select SUNXI_CCU_MP
102	select SUNXI_CCU_PHASE
103	default MACH_SUN8I
104	depends on MACH_SUN8I || COMPILE_TEST
105
106config SUN8I_A33_CCU
107	bool "Support for the Allwinner A33 CCU"
108	select SUNXI_CCU_DIV
109	select SUNXI_CCU_MULT
110	select SUNXI_CCU_NK
111	select SUNXI_CCU_NKM
112	select SUNXI_CCU_NKMP
113	select SUNXI_CCU_NM
114	select SUNXI_CCU_MP
115	select SUNXI_CCU_PHASE
116	default MACH_SUN8I
117	depends on MACH_SUN8I || COMPILE_TEST
118
119config SUN8I_H3_CCU
120	bool "Support for the Allwinner H3 CCU"
121	select SUNXI_CCU_DIV
122	select SUNXI_CCU_NK
123	select SUNXI_CCU_NKM
124	select SUNXI_CCU_NKMP
125	select SUNXI_CCU_NM
126	select SUNXI_CCU_MP
127	select SUNXI_CCU_PHASE
128	default MACH_SUN8I || (ARM64 && ARCH_SUNXI)
129	depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
130
131config SUN8I_V3S_CCU
132	bool "Support for the Allwinner V3s CCU"
133	select SUNXI_CCU_DIV
134	select SUNXI_CCU_NK
135	select SUNXI_CCU_NKM
136	select SUNXI_CCU_NKMP
137	select SUNXI_CCU_NM
138	select SUNXI_CCU_MP
139	select SUNXI_CCU_PHASE
140	default MACH_SUN8I
141	depends on MACH_SUN8I || COMPILE_TEST
142
143config SUN9I_A80_CCU
144	bool "Support for the Allwinner A80 CCU"
145	select SUNXI_CCU_DIV
146	select SUNXI_CCU_MULT
147	select SUNXI_CCU_GATE
148	select SUNXI_CCU_NKMP
149	select SUNXI_CCU_NM
150	select SUNXI_CCU_MP
151	select SUNXI_CCU_PHASE
152	default MACH_SUN9I
153	depends on MACH_SUN9I || COMPILE_TEST
154
155config SUN8I_R_CCU
156	bool "Support for Allwinner SoCs' PRCM CCUs"
157	select SUNXI_CCU_DIV
158	select SUNXI_CCU_GATE
159	select SUNXI_CCU_MP
160	default MACH_SUN8I || (ARCH_SUNXI && ARM64)
161
162endif
163