blob: e8eca1fc31e98f33b8340aee8f4af1bf8156620c [file] [log] [blame]
Maxime Ripard1d80c142016-06-29 21:05:23 +02001config SUNXI_CCU
2 bool "Clock support for Allwinner SoCs"
Jean Delvared63a5e72016-09-08 23:28:29 +02003 depends on ARCH_SUNXI || COMPILE_TEST
Tobias Regneryaa013382017-03-27 11:57:53 +02004 select RESET_CONTROLLER
Maxime Ripard1d80c142016-06-29 21:05:23 +02005 default ARCH_SUNXI
Maxime Ripard89a3dfb2016-06-29 21:05:24 +02006
7if SUNXI_CCU
8
9# Base clock types
10
Maxime Riparde9b93212016-06-29 21:05:28 +020011config SUNXI_CCU_DIV
12 bool
13 select SUNXI_CCU_MUX
14
Maxime Ripard89a3dfb2016-06-29 21:05:24 +020015config SUNXI_CCU_FRAC
16 bool
17
Maxime Ripard1a7e7c32016-06-29 21:05:25 +020018config SUNXI_CCU_GATE
19 bool
20
Maxime Ripard2a65ed42016-06-29 21:05:26 +020021config SUNXI_CCU_MUX
22 bool
23
Maxime Ripardaa152332016-08-30 10:38:07 +020024config SUNXI_CCU_MULT
25 bool
26 select SUNXI_CCU_MUX
27
Maxime Ripard6f9f7f82016-06-29 21:05:27 +020028config SUNXI_CCU_PHASE
29 bool
30
Maxime Ripard2ab836d2016-06-29 21:05:29 +020031# Multi-factor clocks
32
Maxime Ripardadbfb002016-06-29 21:05:30 +020033config SUNXI_CCU_NK
34 bool
35 select SUNXI_CCU_GATE
36
Maxime Riparddf6561e2016-06-29 21:05:32 +020037config SUNXI_CCU_NKM
38 bool
Maxime Riparddf6561e2016-06-29 21:05:32 +020039 select SUNXI_CCU_GATE
40
Maxime Ripard4f728b52016-06-29 21:05:33 +020041config SUNXI_CCU_NKMP
42 bool
Maxime Ripard4f728b52016-06-29 21:05:33 +020043 select SUNXI_CCU_GATE
44
Maxime Ripard6174a1e2016-06-29 21:05:31 +020045config SUNXI_CCU_NM
46 bool
Maxime Ripard6174a1e2016-06-29 21:05:31 +020047 select SUNXI_CCU_FRAC
48 select SUNXI_CCU_GATE
49
Maxime Ripard2ab836d2016-06-29 21:05:29 +020050config SUNXI_CCU_MP
51 bool
52 select SUNXI_CCU_GATE
53 select SUNXI_CCU_MUX
54
Maxime Ripard0577e482016-06-29 21:05:34 +020055# SoC Drivers
56
Maxime Ripardc6a06372016-07-06 08:31:34 +020057config 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
Maxime Ripard5e737612016-10-04 10:09:58 +020068config SUN5I_CCU
69 bool "Support for the Allwinner sun5i family CCM"
70 select SUNXI_CCU_DIV
Arnd Bergmannf3f1ea32017-02-02 15:33:57 +010071 select SUNXI_CCU_MULT
Maxime Ripard5e737612016-10-04 10:09:58 +020072 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
Chen-Yu Tsaic6e6c962016-08-25 14:21:59 +080079config 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
Arnd Bergmann69c9ae52017-02-14 22:29:45 +010084 select SUNXI_CCU_NKMP
Chen-Yu Tsaic6e6c962016-08-25 14:21:59 +080085 select SUNXI_CCU_NM
86 select SUNXI_CCU_MP
87 select SUNXI_CCU_PHASE
88 default MACH_SUN6I
89
Maxime Ripard56908792016-08-31 16:55:00 +020090config 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
Maxime Ripardd05c7482016-08-24 14:10:15 +0200102config 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
Maxime Ripard0577e482016-06-29 21:05:34 +0200114config 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
Maxime Ripard5dc39162016-07-11 22:34:48 +0200123 default MACH_SUN8I
Maxime Ripard0577e482016-06-29 21:05:34 +0200124
Icenowy Zhengd0f11d12017-01-20 01:54:45 +0800125config 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
Chen-Yu Tsaib8eb71d2017-01-28 20:22:34 +0800136config SUN9I_A80_CCU
137 bool "Support for the Allwinner A80 CCU"
138 select SUNXI_CCU_DIV
139 select SUNXI_CCU_GATE
140 select SUNXI_CCU_NKMP
141 select SUNXI_CCU_NM
142 select SUNXI_CCU_MP
143 select SUNXI_CCU_PHASE
144 default MACH_SUN9I
145
Maxime Ripard89a3dfb2016-06-29 21:05:24 +0200146endif