clk: sunxi-ng: add Allwinner H5 CCU support for H3 CCU driver
[linux-2.6/btrfs-unstable.git] / drivers / clk / sunxi-ng / Kconfig
bloba4b26640680d772b0a1472c97a49b9df63ef9f88
1 config SUNXI_CCU
2         bool "Clock support for Allwinner SoCs"
3         depends on ARCH_SUNXI || COMPILE_TEST
4         default ARCH_SUNXI
6 if SUNXI_CCU
8 # Base clock types
10 config SUNXI_CCU_DIV
11         bool
12         select SUNXI_CCU_MUX
14 config SUNXI_CCU_FRAC
15         bool
17 config SUNXI_CCU_GATE
18         bool
20 config SUNXI_CCU_MUX
21         bool
23 config SUNXI_CCU_MULT
24         bool
25         select SUNXI_CCU_MUX
27 config SUNXI_CCU_PHASE
28         bool
30 # Multi-factor clocks
32 config SUNXI_CCU_NK
33         bool
34         select SUNXI_CCU_GATE
36 config SUNXI_CCU_NKM
37         bool
38         select SUNXI_CCU_GATE
40 config SUNXI_CCU_NKMP
41         bool
42         select SUNXI_CCU_GATE
44 config SUNXI_CCU_NM
45         bool
46         select SUNXI_CCU_FRAC
47         select SUNXI_CCU_GATE
49 config SUNXI_CCU_MP
50         bool
51         select SUNXI_CCU_GATE
52         select SUNXI_CCU_MUX
54 # SoC Drivers
56 config 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
67 config SUN5I_CCU
68         bool "Support for the Allwinner sun5i family CCM"
69         select SUNXI_CCU_DIV
70         select SUNXI_CCU_MULT
71         select SUNXI_CCU_NK
72         select SUNXI_CCU_NKM
73         select SUNXI_CCU_NM
74         select SUNXI_CCU_MP
75         select SUNXI_CCU_PHASE
76         default MACH_SUN5I
78 config SUN6I_A31_CCU
79         bool "Support for the Allwinner A31/A31s CCU"
80         select SUNXI_CCU_DIV
81         select SUNXI_CCU_NK
82         select SUNXI_CCU_NKM
83         select SUNXI_CCU_NKMP
84         select SUNXI_CCU_NM
85         select SUNXI_CCU_MP
86         select SUNXI_CCU_PHASE
87         default MACH_SUN6I
89 config SUN8I_A23_CCU
90         bool "Support for the Allwinner A23 CCU"
91         select SUNXI_CCU_DIV
92         select SUNXI_CCU_MULT
93         select SUNXI_CCU_NK
94         select SUNXI_CCU_NKM
95         select SUNXI_CCU_NKMP
96         select SUNXI_CCU_NM
97         select SUNXI_CCU_MP
98         select SUNXI_CCU_PHASE
99         default MACH_SUN8I
101 config SUN8I_A33_CCU
102         bool "Support for the Allwinner A33 CCU"
103         select SUNXI_CCU_DIV
104         select SUNXI_CCU_MULT
105         select SUNXI_CCU_NK
106         select SUNXI_CCU_NKM
107         select SUNXI_CCU_NKMP
108         select SUNXI_CCU_NM
109         select SUNXI_CCU_MP
110         select SUNXI_CCU_PHASE
111         default MACH_SUN8I
113 config SUN8I_H3_CCU
114         bool "Support for the Allwinner H3 CCU"
115         select SUNXI_CCU_DIV
116         select SUNXI_CCU_NK
117         select SUNXI_CCU_NKM
118         select SUNXI_CCU_NKMP
119         select SUNXI_CCU_NM
120         select SUNXI_CCU_MP
121         select SUNXI_CCU_PHASE
122         default MACH_SUN8I || (ARM64 && ARCH_SUNXI)
124 config SUN8I_V3S_CCU
125         bool "Support for the Allwinner V3s CCU"
126         select SUNXI_CCU_DIV
127         select SUNXI_CCU_NK
128         select SUNXI_CCU_NKM
129         select SUNXI_CCU_NKMP
130         select SUNXI_CCU_NM
131         select SUNXI_CCU_MP
132         select SUNXI_CCU_PHASE
133         default MACH_SUN8I
135 config SUN9I_A80_CCU
136         bool "Support for the Allwinner A80 CCU"
137         select SUNXI_CCU_DIV
138         select SUNXI_CCU_GATE
139         select SUNXI_CCU_NKMP
140         select SUNXI_CCU_NM
141         select SUNXI_CCU_MP
142         select SUNXI_CCU_PHASE
143         default MACH_SUN9I
145 endif