2 * Copyright 2015 John Wehle <john@feith.com>
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 #ifndef _ARM_AMLOGIC_AML8726_CCM_H
30 #define _ARM_AMLOGIC_AML8726_CCM_H
33 struct aml8726_ccm_gate {
38 struct aml8726_ccm_function {
40 struct aml8726_ccm_gate *gates;
48 static struct aml8726_ccm_gate aml8726_m3_ethernet[] = {
53 static struct aml8726_ccm_gate aml8726_m3_i2c[] = {
58 static struct aml8726_ccm_gate aml8726_m3_rng[] = {
63 static struct aml8726_ccm_gate aml8726_m3_sdio[] = {
68 static struct aml8726_ccm_gate aml8726_m3_sdxc[] = {
73 static struct aml8726_ccm_gate aml8726_m3_uart_a[] = {
78 static struct aml8726_ccm_gate aml8726_m3_uart_b[] = {
83 static struct aml8726_ccm_gate aml8726_m3_uart_c[] = {
88 static struct aml8726_ccm_gate aml8726_m3_usb_a[] = {
93 static struct aml8726_ccm_gate aml8726_m3_usb_b[] = {
98 struct aml8726_ccm_function aml8726_m3_ccm[] = {
99 { "ethernet", aml8726_m3_ethernet },
100 { "i2c", aml8726_m3_i2c },
101 { "rng", aml8726_m3_rng },
102 { "sdio", aml8726_m3_sdio },
103 { "sdxc", aml8726_m3_sdxc },
104 { "uart-a", aml8726_m3_uart_a },
105 { "uart-b", aml8726_m3_uart_b },
106 { "uart-c", aml8726_m3_uart_c },
107 { "usb-a", aml8726_m3_usb_a },
108 { "usb-b", aml8726_m3_usb_b },
117 static struct aml8726_ccm_gate aml8726_m6_ethernet[] = {
122 static struct aml8726_ccm_gate aml8726_m6_i2c[] = {
127 static struct aml8726_ccm_gate aml8726_m6_rng[] = {
132 static struct aml8726_ccm_gate aml8726_m6_sdio[] = {
137 static struct aml8726_ccm_gate aml8726_m6_sdxc[] = {
142 static struct aml8726_ccm_gate aml8726_m6_uart_a[] = {
147 static struct aml8726_ccm_gate aml8726_m6_uart_b[] = {
152 static struct aml8726_ccm_gate aml8726_m6_uart_c[] = {
157 static struct aml8726_ccm_gate aml8726_m6_usb_a[] = {
162 static struct aml8726_ccm_gate aml8726_m6_usb_b[] = {
167 struct aml8726_ccm_function aml8726_m6_ccm[] = {
168 { "ethernet", aml8726_m6_ethernet },
169 { "i2c", aml8726_m6_i2c },
170 { "rng", aml8726_m6_rng },
171 { "sdio", aml8726_m6_sdio },
172 { "sdxc", aml8726_m6_sdxc },
173 { "uart-a", aml8726_m6_uart_a },
174 { "uart-b", aml8726_m6_uart_b },
175 { "uart-c", aml8726_m6_uart_c },
176 { "usb-a", aml8726_m6_usb_a },
177 { "usb-b", aml8726_m6_usb_b },
186 static struct aml8726_ccm_gate aml8726_m8_ethernet[] = {
191 static struct aml8726_ccm_gate aml8726_m8_i2c[] = {
196 static struct aml8726_ccm_gate aml8726_m8_rng[] = {
202 static struct aml8726_ccm_gate aml8726_m8_sdio[] = {
207 static struct aml8726_ccm_gate aml8726_m8_sdxc[] = {
212 static struct aml8726_ccm_gate aml8726_m8_uart_a[] = {
217 static struct aml8726_ccm_gate aml8726_m8_uart_b[] = {
222 static struct aml8726_ccm_gate aml8726_m8_uart_c[] = {
227 static struct aml8726_ccm_gate aml8726_m8_usb_a[] = {
233 static struct aml8726_ccm_gate aml8726_m8_usb_b[] = {
239 struct aml8726_ccm_function aml8726_m8_ccm[] = {
240 { "ethernet", aml8726_m8_ethernet },
241 { "i2c", aml8726_m8_i2c },
242 { "rng", aml8726_m8_rng },
243 { "sdio", aml8726_m8_sdio },
244 { "sdxc", aml8726_m8_sdxc },
245 { "uart-a", aml8726_m8_uart_a },
246 { "uart-b", aml8726_m8_uart_b },
247 { "uart-c", aml8726_m8_uart_c },
248 { "usb-a", aml8726_m8_usb_a },
249 { "usb-b", aml8726_m8_usb_b },
258 static struct aml8726_ccm_gate aml8726_m8b_ethernet[] = {
263 static struct aml8726_ccm_gate aml8726_m8b_i2c[] = {
268 static struct aml8726_ccm_gate aml8726_m8b_rng[] = {
274 static struct aml8726_ccm_gate aml8726_m8b_sdio[] = {
279 static struct aml8726_ccm_gate aml8726_m8b_sdxc[] = {
284 static struct aml8726_ccm_gate aml8726_m8b_uart_a[] = {
289 static struct aml8726_ccm_gate aml8726_m8b_uart_b[] = {
294 static struct aml8726_ccm_gate aml8726_m8b_uart_c[] = {
299 static struct aml8726_ccm_gate aml8726_m8b_usb_a[] = {
305 static struct aml8726_ccm_gate aml8726_m8b_usb_b[] = {
311 struct aml8726_ccm_function aml8726_m8b_ccm[] = {
312 { "ethernet", aml8726_m8b_ethernet },
313 { "i2c", aml8726_m8b_i2c },
314 { "rng", aml8726_m8b_rng },
315 { "sdio", aml8726_m8b_sdio },
316 { "sdxc", aml8726_m8b_sdxc },
317 { "uart-a", aml8726_m8b_uart_a },
318 { "uart-b", aml8726_m8b_uart_b },
319 { "uart-c", aml8726_m8b_uart_c },
320 { "usb-a", aml8726_m8b_usb_a },
321 { "usb-b", aml8726_m8b_usb_b },
325 #endif /* _ARM_AMLOGIC_AML8726_CCM_H */