xref: /openbmc/linux/drivers/clk/sunxi-ng/Kconfig (revision f3a8b664)
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 RATIONAL
39	select SUNXI_CCU_GATE
40
41config SUNXI_CCU_NKMP
42	bool
43	select RATIONAL
44	select SUNXI_CCU_GATE
45
46config SUNXI_CCU_NM
47	bool
48	select RATIONAL
49	select SUNXI_CCU_FRAC
50	select SUNXI_CCU_GATE
51
52config SUNXI_CCU_MP
53	bool
54	select SUNXI_CCU_GATE
55	select SUNXI_CCU_MUX
56
57# SoC Drivers
58
59config SUN6I_A31_CCU
60	bool "Support for the Allwinner A31/A31s CCU"
61	select SUNXI_CCU_DIV
62	select SUNXI_CCU_NK
63	select SUNXI_CCU_NKM
64	select SUNXI_CCU_NM
65	select SUNXI_CCU_MP
66	select SUNXI_CCU_PHASE
67	default MACH_SUN6I
68
69config SUN8I_A23_CCU
70	bool "Support for the Allwinner A23 CCU"
71	select SUNXI_CCU_DIV
72	select SUNXI_CCU_MULT
73	select SUNXI_CCU_NK
74	select SUNXI_CCU_NKM
75	select SUNXI_CCU_NKMP
76	select SUNXI_CCU_NM
77	select SUNXI_CCU_MP
78	select SUNXI_CCU_PHASE
79	default MACH_SUN8I
80
81config SUN8I_A33_CCU
82	bool "Support for the Allwinner A33 CCU"
83	select SUNXI_CCU_DIV
84	select SUNXI_CCU_MULT
85	select SUNXI_CCU_NK
86	select SUNXI_CCU_NKM
87	select SUNXI_CCU_NKMP
88	select SUNXI_CCU_NM
89	select SUNXI_CCU_MP
90	select SUNXI_CCU_PHASE
91	default MACH_SUN8I
92
93config SUN8I_H3_CCU
94	bool "Support for the Allwinner H3 CCU"
95	select SUNXI_CCU_DIV
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
104endif
105