clk: sunxi-ng: Add A33 CCU support
[cascardo/linux.git] / drivers / clk / sunxi-ng / Kconfig
1 config SUNXI_CCU
2         bool "Clock support for Allwinner SoCs"
3         default ARCH_SUNXI
4
5 if SUNXI_CCU
6
7 # Base clock types
8
9 config SUNXI_CCU_DIV
10         bool
11         select SUNXI_CCU_MUX
12
13 config SUNXI_CCU_FRAC
14         bool
15
16 config SUNXI_CCU_GATE
17         bool
18
19 config SUNXI_CCU_MUX
20         bool
21
22 config SUNXI_CCU_MULT
23         bool
24         select SUNXI_CCU_MUX
25
26 config SUNXI_CCU_PHASE
27         bool
28
29 # Multi-factor clocks
30
31 config SUNXI_CCU_NK
32         bool
33         select SUNXI_CCU_GATE
34
35 config SUNXI_CCU_NKM
36         bool
37         select RATIONAL
38         select SUNXI_CCU_GATE
39
40 config SUNXI_CCU_NKMP
41         bool
42         select RATIONAL
43         select SUNXI_CCU_GATE
44
45 config SUNXI_CCU_NM
46         bool
47         select RATIONAL
48         select SUNXI_CCU_FRAC
49         select SUNXI_CCU_GATE
50
51 config SUNXI_CCU_MP
52         bool
53         select SUNXI_CCU_GATE
54         select SUNXI_CCU_MUX
55
56 # SoC Drivers
57
58 config SUN6I_A31_CCU
59         bool "Support for the Allwinner A31/A31s CCU"
60         select SUNXI_CCU_DIV
61         select SUNXI_CCU_NK
62         select SUNXI_CCU_NKM
63         select SUNXI_CCU_NM
64         select SUNXI_CCU_MP
65         select SUNXI_CCU_PHASE
66         default MACH_SUN6I
67
68 config SUN8I_A33_CCU
69         bool "Support for the Allwinner A33 CCU"
70         select SUNXI_CCU_DIV
71         select SUNXI_CCU_MULT
72         select SUNXI_CCU_NK
73         select SUNXI_CCU_NKM
74         select SUNXI_CCU_NKMP
75         select SUNXI_CCU_NM
76         select SUNXI_CCU_MP
77         select SUNXI_CCU_PHASE
78         default MACH_SUN8I
79
80 config SUN8I_H3_CCU
81         bool "Support for the Allwinner H3 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_SUN8I
90
91 endif