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