xref: /openbmc/linux/drivers/clk/sunxi-ng/Kconfig (revision 36c02d0b)
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
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
79config SUN6I_A31_CCU
80	bool "Support for the Allwinner A31/A31s CCU"
81	select SUNXI_CCU_DIV
82	select SUNXI_CCU_NK
83	select SUNXI_CCU_NKM
84	select SUNXI_CCU_NKMP
85	select SUNXI_CCU_NM
86	select SUNXI_CCU_MP
87	select SUNXI_CCU_PHASE
88	default MACH_SUN6I
89
90config SUN8I_A23_CCU
91	bool "Support for the Allwinner A23 CCU"
92	select SUNXI_CCU_DIV
93	select SUNXI_CCU_MULT
94	select SUNXI_CCU_NK
95	select SUNXI_CCU_NKM
96	select SUNXI_CCU_NKMP
97	select SUNXI_CCU_NM
98	select SUNXI_CCU_MP
99	select SUNXI_CCU_PHASE
100	default MACH_SUN8I
101
102config SUN8I_A33_CCU
103	bool "Support for the Allwinner A33 CCU"
104	select SUNXI_CCU_DIV
105	select SUNXI_CCU_MULT
106	select SUNXI_CCU_NK
107	select SUNXI_CCU_NKM
108	select SUNXI_CCU_NKMP
109	select SUNXI_CCU_NM
110	select SUNXI_CCU_MP
111	select SUNXI_CCU_PHASE
112	default MACH_SUN8I
113
114config SUN8I_H3_CCU
115	bool "Support for the Allwinner H3 CCU"
116	select SUNXI_CCU_DIV
117	select SUNXI_CCU_NK
118	select SUNXI_CCU_NKM
119	select SUNXI_CCU_NKMP
120	select SUNXI_CCU_NM
121	select SUNXI_CCU_MP
122	select SUNXI_CCU_PHASE
123	default MACH_SUN8I
124
125config SUN8I_V3S_CCU
126	bool "Support for the Allwinner V3s CCU"
127	select SUNXI_CCU_DIV
128	select SUNXI_CCU_NK
129	select SUNXI_CCU_NKM
130	select SUNXI_CCU_NKMP
131	select SUNXI_CCU_NM
132	select SUNXI_CCU_MP
133	select SUNXI_CCU_PHASE
134	default MACH_SUN8I
135
136config SUN9I_A80_CCU
137	bool "Support for the Allwinner A80 CCU"
138	select SUNXI_CCU_DIV
139	select SUNXI_CCU_MULT
140	select SUNXI_CCU_GATE
141	select SUNXI_CCU_NKMP
142	select SUNXI_CCU_NM
143	select SUNXI_CCU_MP
144	select SUNXI_CCU_PHASE
145	default MACH_SUN9I
146
147endif
148