meson_platform.c revision 1.1 1 1.1 jmcneill /* $NetBSD: meson_platform.c,v 1.1 2019/01/19 20:56:03 jmcneill Exp $ */
2 1.1 jmcneill
3 1.1 jmcneill /*-
4 1.1 jmcneill * Copyright (c) 2019 Jared McNeill <jmcneill (at) invisible.ca>
5 1.1 jmcneill * All rights reserved.
6 1.1 jmcneill *
7 1.1 jmcneill * Redistribution and use in source and binary forms, with or without
8 1.1 jmcneill * modification, are permitted provided that the following conditions
9 1.1 jmcneill * are met:
10 1.1 jmcneill * 1. Redistributions of source code must retain the above copyright
11 1.1 jmcneill * notice, this list of conditions and the following disclaimer.
12 1.1 jmcneill * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 jmcneill * notice, this list of conditions and the following disclaimer in the
14 1.1 jmcneill * documentation and/or other materials provided with the distribution.
15 1.1 jmcneill *
16 1.1 jmcneill * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 1.1 jmcneill * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 1.1 jmcneill * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 1.1 jmcneill * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 1.1 jmcneill * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 1.1 jmcneill * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 1.1 jmcneill * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 1.1 jmcneill * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 1.1 jmcneill * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 1.1 jmcneill * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 1.1 jmcneill * SUCH DAMAGE.
27 1.1 jmcneill */
28 1.1 jmcneill
29 1.1 jmcneill #include "opt_soc.h"
30 1.1 jmcneill #include "opt_multiprocessor.h"
31 1.1 jmcneill #include "opt_console.h"
32 1.1 jmcneill
33 1.1 jmcneill #include "arml2cc.h"
34 1.1 jmcneill
35 1.1 jmcneill #include <sys/cdefs.h>
36 1.1 jmcneill __KERNEL_RCSID(0, "$NetBSD: meson_platform.c,v 1.1 2019/01/19 20:56:03 jmcneill Exp $");
37 1.1 jmcneill
38 1.1 jmcneill #include <sys/param.h>
39 1.1 jmcneill #include <sys/bus.h>
40 1.1 jmcneill #include <sys/cpu.h>
41 1.1 jmcneill #include <sys/device.h>
42 1.1 jmcneill #include <sys/termios.h>
43 1.1 jmcneill
44 1.1 jmcneill #include <dev/fdt/fdtvar.h>
45 1.1 jmcneill #include <arm/fdt/arm_fdtvar.h>
46 1.1 jmcneill
47 1.1 jmcneill #include <uvm/uvm_extern.h>
48 1.1 jmcneill
49 1.1 jmcneill #include <machine/bootconfig.h>
50 1.1 jmcneill #include <arm/cpufunc.h>
51 1.1 jmcneill
52 1.1 jmcneill #include <arm/cortex/a9tmr_var.h>
53 1.1 jmcneill #include <arm/cortex/pl310_var.h>
54 1.1 jmcneill #include <arm/cortex/scu_reg.h>
55 1.1 jmcneill
56 1.1 jmcneill #include <arm/amlogic/meson_uart.h>
57 1.1 jmcneill
58 1.1 jmcneill #include <evbarm/fdt/platform.h>
59 1.1 jmcneill #include <evbarm/fdt/machdep.h>
60 1.1 jmcneill
61 1.1 jmcneill #include <libfdt.h>
62 1.1 jmcneill
63 1.1 jmcneill #define MESON_CORE_APB3_VBASE KERNEL_IO_VBASE
64 1.1 jmcneill #define MESON_CORE_APB3_PBASE 0xc0000000
65 1.1 jmcneill #define MESON_CORE_APB3_SIZE 0x01300000
66 1.1 jmcneill
67 1.1 jmcneill #define MESON_CBUS_OFFSET 0x01100000
68 1.1 jmcneill
69 1.1 jmcneill #define MESON_WATCHDOG_BASE 0xc1109900
70 1.1 jmcneill #define MESON_WATCHDOG_SIZE 0x8
71 1.1 jmcneill #define MESON_WATCHDOG_TC 0x00
72 1.1 jmcneill #define WATCHDOG_TC_CPUS __BITS(27,24)
73 1.1 jmcneill #define WATCHDOG_TC_ENABLE __BIT(19)
74 1.1 jmcneill #define WATCHDOG_TC_TCNT __BITS(15,0)
75 1.1 jmcneill #define MESON_WATCHDOG_RESET 0x04
76 1.1 jmcneill #define WATCHDOG_RESET_COUNT __BITS(15,0)
77 1.1 jmcneill
78 1.1 jmcneill #define MESON8B_ARM_VBASE (MESON_CORE_APB3_VBASE + MESON_CORE_APB3_SIZE)
79 1.1 jmcneill #define MESON8B_ARM_PBASE 0xc4200000
80 1.1 jmcneill #define MESON8B_ARM_SIZE 0x00200000
81 1.1 jmcneill #define MESON8B_ARM_PL310_BASE 0x00000000
82 1.1 jmcneill #define MESON8B_ARM_SCU_BASE 0x00100000
83 1.1 jmcneill
84 1.1 jmcneill #define MESON8B_AOBUS_VBASE (MESON8B_ARM_VBASE + MESON8B_ARM_SIZE)
85 1.1 jmcneill #define MESON8B_AOBUS_PBASE 0xc8100000
86 1.1 jmcneill #define MESON8B_AOBUS_SIZE 0x00100000
87 1.1 jmcneill
88 1.1 jmcneill #define MESON_AOBUS_PWR_CTRL0_REG 0xe0
89 1.1 jmcneill #define MESON_AOBUS_PWR_CTRL1_REG 0xe4
90 1.1 jmcneill #define MESON_AOBUS_PWR_MEM_PD0_REG 0xf4
91 1.1 jmcneill
92 1.1 jmcneill #define MESON_CBUS_CPU_CLK_CNTL_REG 0x419c
93 1.1 jmcneill
94 1.1 jmcneill
95 1.1 jmcneill #define MESON8B_SRAM_VBASE (MESON8B_AOBUS_VBASE + MESON8B_AOBUS_SIZE)
96 1.1 jmcneill #define MESON8B_SRAM_PBASE 0xd9000000
97 1.1 jmcneill #define MESON8B_SRAM_SIZE 0x00010000 /* 0x10000 rounded up */
98 1.1 jmcneill
99 1.1 jmcneill #define MESON8B_SRAM_CPUCONF_OFFSET 0x1ff80
100 1.1 jmcneill #define MESON8B_SRAM_CPUCONF_CTRL_REG 0x00
101 1.1 jmcneill #define MESON8B_SRAM_CPUCONF_CPU_ADDR_REG(n) (0x04 * (n))
102 1.1 jmcneill
103 1.1 jmcneill
104 1.1 jmcneill extern struct arm32_bus_dma_tag arm_generic_dma_tag;
105 1.1 jmcneill extern struct bus_space arm_generic_bs_tag;
106 1.1 jmcneill extern struct bus_space arm_generic_a4x_bs_tag;
107 1.1 jmcneill
108 1.1 jmcneill #define meson_dma_tag arm_generic_dma_tag
109 1.1 jmcneill #define meson_bs_tag arm_generic_bs_tag
110 1.1 jmcneill #define meson_a4x_bs_tag arm_generic_a4x_bs_tag
111 1.1 jmcneill
112 1.1 jmcneill static const struct pmap_devmap *
113 1.1 jmcneill meson_platform_devmap(void)
114 1.1 jmcneill {
115 1.1 jmcneill static const struct pmap_devmap devmap[] = {
116 1.1 jmcneill DEVMAP_ENTRY(MESON_CORE_APB3_VBASE,
117 1.1 jmcneill MESON_CORE_APB3_PBASE,
118 1.1 jmcneill MESON_CORE_APB3_SIZE),
119 1.1 jmcneill DEVMAP_ENTRY(MESON8B_ARM_VBASE,
120 1.1 jmcneill MESON8B_ARM_PBASE,
121 1.1 jmcneill MESON8B_ARM_SIZE),
122 1.1 jmcneill DEVMAP_ENTRY(MESON8B_AOBUS_VBASE,
123 1.1 jmcneill MESON8B_AOBUS_PBASE,
124 1.1 jmcneill MESON8B_AOBUS_SIZE),
125 1.1 jmcneill DEVMAP_ENTRY(MESON8B_SRAM_VBASE,
126 1.1 jmcneill MESON8B_SRAM_PBASE,
127 1.1 jmcneill MESON8B_SRAM_SIZE),
128 1.1 jmcneill DEVMAP_ENTRY_END
129 1.1 jmcneill };
130 1.1 jmcneill
131 1.1 jmcneill return devmap;
132 1.1 jmcneill }
133 1.1 jmcneill
134 1.1 jmcneill static void
135 1.1 jmcneill meson_platform_init_attach_args(struct fdt_attach_args *faa)
136 1.1 jmcneill {
137 1.1 jmcneill faa->faa_bst = &meson_bs_tag;
138 1.1 jmcneill faa->faa_a4x_bst = &meson_a4x_bs_tag;
139 1.1 jmcneill faa->faa_dmat = &meson_dma_tag;
140 1.1 jmcneill }
141 1.1 jmcneill
142 1.1 jmcneill void meson_platform_early_putchar(char);
143 1.1 jmcneill
144 1.1 jmcneill void
145 1.1 jmcneill meson_platform_early_putchar(char c)
146 1.1 jmcneill {
147 1.1 jmcneill #ifdef CONSADDR
148 1.1 jmcneill #define CONSADDR_VA ((CONSADDR - MESON8B_AOBUS_PBASE) + MESON8B_AOBUS_VBASE)
149 1.1 jmcneill volatile uint32_t *uartaddr = cpu_earlydevice_va_p() ?
150 1.1 jmcneill (volatile uint32_t *)CONSADDR_VA :
151 1.1 jmcneill (volatile uint32_t *)CONSADDR;
152 1.1 jmcneill int timo = 150000;
153 1.1 jmcneill
154 1.1 jmcneill while ((uartaddr[UART_STATUS_REG/4] & UART_STATUS_TX_EMPTY) == 0) {
155 1.1 jmcneill if (--timo == 0)
156 1.1 jmcneill break;
157 1.1 jmcneill }
158 1.1 jmcneill
159 1.1 jmcneill uartaddr[UART_WFIFO_REG/4] = c;
160 1.1 jmcneill
161 1.1 jmcneill while ((uartaddr[UART_STATUS_REG/4] & UART_STATUS_TX_EMPTY) == 0) {
162 1.1 jmcneill if (--timo == 0)
163 1.1 jmcneill break;
164 1.1 jmcneill }
165 1.1 jmcneill #endif
166 1.1 jmcneill }
167 1.1 jmcneill
168 1.1 jmcneill static void
169 1.1 jmcneill meson_platform_device_register(device_t self, void *aux)
170 1.1 jmcneill {
171 1.1 jmcneill }
172 1.1 jmcneill
173 1.1 jmcneill static u_int
174 1.1 jmcneill meson_platform_uart_freq(void)
175 1.1 jmcneill {
176 1.1 jmcneill return 0;
177 1.1 jmcneill }
178 1.1 jmcneill
179 1.1 jmcneill static void
180 1.1 jmcneill meson_platform_bootstrap(void)
181 1.1 jmcneill {
182 1.1 jmcneill arm_fdt_cpu_bootstrap();
183 1.1 jmcneill
184 1.1 jmcneill void *fdt_data = __UNCONST(fdtbus_get_data());
185 1.1 jmcneill const int chosen_off = fdt_path_offset(fdt_data, "/chosen");
186 1.1 jmcneill if (chosen_off < 0)
187 1.1 jmcneill return;
188 1.1 jmcneill
189 1.1 jmcneill if (match_bootconf_option(boot_args, "console", "fb")) {
190 1.1 jmcneill const int framebuffer_off =
191 1.1 jmcneill fdt_path_offset(fdt_data, "/chosen/framebuffer");
192 1.1 jmcneill if (framebuffer_off >= 0) {
193 1.1 jmcneill const char *status = fdt_getprop(fdt_data,
194 1.1 jmcneill framebuffer_off, "status", NULL);
195 1.1 jmcneill if (status == NULL || strncmp(status, "ok", 2) == 0) {
196 1.1 jmcneill fdt_setprop_string(fdt_data, chosen_off,
197 1.1 jmcneill "stdout-path", "/chosen/framebuffer");
198 1.1 jmcneill }
199 1.1 jmcneill }
200 1.1 jmcneill } else if (match_bootconf_option(boot_args, "console", "serial")) {
201 1.1 jmcneill fdt_setprop_string(fdt_data, chosen_off,
202 1.1 jmcneill "stdout-path", "serial0:115200n8");
203 1.1 jmcneill }
204 1.1 jmcneill }
205 1.1 jmcneill
206 1.1 jmcneill #if defined(SOC_MESON8B)
207 1.1 jmcneill static void
208 1.1 jmcneill meson8b_platform_bootstrap(void)
209 1.1 jmcneill {
210 1.1 jmcneill
211 1.1 jmcneill #if NARML2CC > 0
212 1.1 jmcneill const bus_space_handle_t pl310_bh = MESON8B_ARM_VBASE + MESON8B_ARM_PL310_BASE;
213 1.1 jmcneill arml2cc_init(&arm_generic_bs_tag, pl310_bh, 0);
214 1.1 jmcneill #endif
215 1.1 jmcneill
216 1.1 jmcneill meson_platform_bootstrap();
217 1.1 jmcneill }
218 1.1 jmcneill #endif
219 1.1 jmcneill
220 1.1 jmcneill static void
221 1.1 jmcneill meson_platform_reset(void)
222 1.1 jmcneill {
223 1.1 jmcneill bus_space_tag_t bst = &meson_bs_tag;
224 1.1 jmcneill bus_space_handle_t bsh;
225 1.1 jmcneill
226 1.1 jmcneill bus_space_map(bst, MESON_WATCHDOG_BASE, MESON_WATCHDOG_SIZE, 0, &bsh);
227 1.1 jmcneill
228 1.1 jmcneill bus_space_write_4(bst, bsh, MESON_WATCHDOG_TC,
229 1.1 jmcneill WATCHDOG_TC_CPUS | WATCHDOG_TC_ENABLE | __SHIFTIN(0xfff, WATCHDOG_TC_TCNT));
230 1.1 jmcneill bus_space_write_4(bst, bsh, MESON_WATCHDOG_RESET, 0);
231 1.1 jmcneill
232 1.1 jmcneill for (;;) {
233 1.1 jmcneill __asm("wfi");
234 1.1 jmcneill }
235 1.1 jmcneill }
236 1.1 jmcneill
237 1.1 jmcneill #if defined(MULTIPROCESSOR)
238 1.1 jmcneill static void
239 1.1 jmcneill meson8b_mpinit_delay(u_int n)
240 1.1 jmcneill {
241 1.1 jmcneill for (volatile int i = 0; i < n; i++)
242 1.1 jmcneill ;
243 1.1 jmcneill }
244 1.1 jmcneill
245 1.1 jmcneill static int
246 1.1 jmcneill cpu_enable_meson8b(int phandle)
247 1.1 jmcneill {
248 1.1 jmcneill const bus_addr_t cbar = armreg_cbar_read();
249 1.1 jmcneill bus_space_tag_t bst = &arm_generic_bs_tag;
250 1.1 jmcneill
251 1.1 jmcneill const bus_space_handle_t scu_bsh =
252 1.1 jmcneill cbar - MESON8B_ARM_PBASE + MESON8B_ARM_VBASE;
253 1.1 jmcneill const bus_space_handle_t cpuconf_bsh =
254 1.1 jmcneill MESON8B_SRAM_VBASE + MESON8B_SRAM_CPUCONF_OFFSET;
255 1.1 jmcneill const bus_space_handle_t ao_bsh =
256 1.1 jmcneill MESON8B_AOBUS_VBASE;
257 1.1 jmcneill const bus_space_handle_t cbus_bsh =
258 1.1 jmcneill MESON_CORE_APB3_VBASE + MESON_CBUS_OFFSET;
259 1.1 jmcneill uint32_t pwr_sts, pwr_cntl0, pwr_cntl1, cpuclk, mempd0;
260 1.1 jmcneill uint64_t mpidr;
261 1.1 jmcneill
262 1.1 jmcneill fdtbus_get_reg64(phandle, 0, &mpidr, NULL);
263 1.1 jmcneill
264 1.1 jmcneill const u_int cpuno = __SHIFTOUT(mpidr, MPIDR_AFF0);
265 1.1 jmcneill
266 1.1 jmcneill bus_space_write_4(bst, cpuconf_bsh, MESON8B_SRAM_CPUCONF_CPU_ADDR_REG(cpuno),
267 1.1 jmcneill KERN_VTOPHYS((vaddr_t)cpu_mpstart));
268 1.1 jmcneill
269 1.1 jmcneill pwr_sts = bus_space_read_4(bst, scu_bsh, SCU_CPU_PWR_STS);
270 1.1 jmcneill pwr_sts &= ~(3 << (8 * cpuno));
271 1.1 jmcneill bus_space_write_4(bst, scu_bsh, SCU_CPU_PWR_STS, pwr_sts);
272 1.1 jmcneill
273 1.1 jmcneill pwr_cntl0 = bus_space_read_4(bst, ao_bsh, MESON_AOBUS_PWR_CTRL0_REG);
274 1.1 jmcneill pwr_cntl0 &= ~((3 << 18) << ((cpuno - 1) * 2));
275 1.1 jmcneill bus_space_write_4(bst, ao_bsh, MESON_AOBUS_PWR_CTRL0_REG, pwr_cntl0);
276 1.1 jmcneill
277 1.1 jmcneill meson8b_mpinit_delay(5000);
278 1.1 jmcneill
279 1.1 jmcneill cpuclk = bus_space_read_4(bst, cbus_bsh, MESON_CBUS_CPU_CLK_CNTL_REG);
280 1.1 jmcneill cpuclk |= (1 << (24 + cpuno));
281 1.1 jmcneill bus_space_write_4(bst, cbus_bsh, MESON_CBUS_CPU_CLK_CNTL_REG, cpuclk);
282 1.1 jmcneill
283 1.1 jmcneill mempd0 = bus_space_read_4(bst, ao_bsh, MESON_AOBUS_PWR_MEM_PD0_REG);
284 1.1 jmcneill mempd0 &= ~((uint32_t)(0xf << 28) >> ((cpuno - 1) * 4));
285 1.1 jmcneill bus_space_write_4(bst, ao_bsh, MESON_AOBUS_PWR_MEM_PD0_REG, mempd0);
286 1.1 jmcneill
287 1.1 jmcneill pwr_cntl1 = bus_space_read_4(bst, ao_bsh, MESON_AOBUS_PWR_CTRL1_REG);
288 1.1 jmcneill pwr_cntl1 &= ~((3 << 4) << ((cpuno - 1) * 2));
289 1.1 jmcneill bus_space_write_4(bst, ao_bsh, MESON_AOBUS_PWR_CTRL1_REG, pwr_cntl1);
290 1.1 jmcneill
291 1.1 jmcneill meson8b_mpinit_delay(10000);
292 1.1 jmcneill
293 1.1 jmcneill for (;;) {
294 1.1 jmcneill pwr_cntl1 = bus_space_read_4(bst, ao_bsh,
295 1.1 jmcneill MESON_AOBUS_PWR_CTRL1_REG) & ((1 << 17) << (cpuno - 1));
296 1.1 jmcneill if (pwr_cntl1)
297 1.1 jmcneill break;
298 1.1 jmcneill meson8b_mpinit_delay(10000);
299 1.1 jmcneill }
300 1.1 jmcneill
301 1.1 jmcneill pwr_cntl0 = bus_space_read_4(bst, ao_bsh, MESON_AOBUS_PWR_CTRL0_REG);
302 1.1 jmcneill pwr_cntl0 &= ~(1 << cpuno);
303 1.1 jmcneill bus_space_write_4(bst, ao_bsh, MESON_AOBUS_PWR_CTRL0_REG, pwr_cntl0);
304 1.1 jmcneill
305 1.1 jmcneill cpuclk = bus_space_read_4(bst, cbus_bsh, MESON_CBUS_CPU_CLK_CNTL_REG);
306 1.1 jmcneill cpuclk &= ~(1 << (24 + cpuno));
307 1.1 jmcneill bus_space_write_4(bst, cbus_bsh, MESON_CBUS_CPU_CLK_CNTL_REG, cpuclk);
308 1.1 jmcneill
309 1.1 jmcneill bus_space_write_4(bst, cpuconf_bsh, MESON8B_SRAM_CPUCONF_CPU_ADDR_REG(cpuno),
310 1.1 jmcneill KERN_VTOPHYS((vaddr_t)cpu_mpstart));
311 1.1 jmcneill
312 1.1 jmcneill uint32_t ctrl = bus_space_read_4(bst, cpuconf_bsh, MESON8B_SRAM_CPUCONF_CTRL_REG);
313 1.1 jmcneill ctrl |= __BITS(cpuno,0);
314 1.1 jmcneill bus_space_write_4(bst, cpuconf_bsh, MESON8B_SRAM_CPUCONF_CTRL_REG, ctrl);
315 1.1 jmcneill
316 1.1 jmcneill return 0;
317 1.1 jmcneill }
318 1.1 jmcneill
319 1.1 jmcneill ARM_CPU_METHOD(meson8b, "amlogic,meson8b-smp", cpu_enable_meson8b);
320 1.1 jmcneill #endif
321 1.1 jmcneill
322 1.1 jmcneill static void
323 1.1 jmcneill meson_mpstart(void)
324 1.1 jmcneill {
325 1.1 jmcneill #ifdef MULTIPROCESSOR
326 1.1 jmcneill const bus_addr_t cbar = armreg_cbar_read();
327 1.1 jmcneill bus_space_tag_t bst = &arm_generic_bs_tag;
328 1.1 jmcneill
329 1.1 jmcneill if (cbar == 0)
330 1.1 jmcneill return;
331 1.1 jmcneill
332 1.1 jmcneill const bus_space_handle_t scu_bsh =
333 1.1 jmcneill cbar - MESON8B_ARM_PBASE + MESON8B_ARM_VBASE;
334 1.1 jmcneill
335 1.1 jmcneill const uint32_t scu_cfg = bus_space_read_4(bst, scu_bsh, SCU_CFG);
336 1.1 jmcneill const u_int ncpus = (scu_cfg & SCU_CFG_CPUMAX) + 1;
337 1.1 jmcneill
338 1.1 jmcneill if (ncpus < 2)
339 1.1 jmcneill return;
340 1.1 jmcneill
341 1.1 jmcneill /*
342 1.1 jmcneill * Invalidate all SCU cache tags. That is, for all cores (0-3)
343 1.1 jmcneill */
344 1.1 jmcneill bus_space_write_4(bst, scu_bsh, SCU_INV_ALL_REG, 0xffff);
345 1.1 jmcneill
346 1.1 jmcneill uint32_t scu_ctl = bus_space_read_4(bst, scu_bsh, SCU_CTL);
347 1.1 jmcneill scu_ctl |= SCU_CTL_SCU_ENA;
348 1.1 jmcneill bus_space_write_4(bst, scu_bsh, SCU_CTL, scu_ctl);
349 1.1 jmcneill
350 1.1 jmcneill armv7_dcache_wbinv_all();
351 1.1 jmcneill
352 1.1 jmcneill arm_fdt_cpu_mpstart();
353 1.1 jmcneill #endif
354 1.1 jmcneill }
355 1.1 jmcneill
356 1.1 jmcneill
357 1.1 jmcneill #if defined(SOC_MESON8B)
358 1.1 jmcneill static const struct arm_platform meson8b_platform = {
359 1.1 jmcneill .ap_devmap = meson_platform_devmap,
360 1.1 jmcneill .ap_bootstrap = meson8b_platform_bootstrap,
361 1.1 jmcneill .ap_init_attach_args = meson_platform_init_attach_args,
362 1.1 jmcneill .ap_device_register = meson_platform_device_register,
363 1.1 jmcneill .ap_reset = meson_platform_reset,
364 1.1 jmcneill .ap_delay = a9tmr_delay,
365 1.1 jmcneill .ap_uart_freq = meson_platform_uart_freq,
366 1.1 jmcneill .ap_mpstart = meson_mpstart,
367 1.1 jmcneill };
368 1.1 jmcneill
369 1.1 jmcneill ARM_PLATFORM(meson8b, "amlogic,meson8b", &meson8b_platform);
370 1.1 jmcneill #endif
371