xref: /rk3399_ARM-atf/plat/common/aarch32/platform_helpers.S (revision 86e2683597ec145cb2b679be0fff6f8962ba9bfd)
1/*
2 * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <arch.h>
8#include <asm_macros.S>
9
10	.weak	plat_crash_console_init
11	.weak	plat_crash_console_putc
12	.weak	plat_crash_console_flush
13	.weak	plat_reset_handler
14	.weak	plat_disable_acp
15	.weak	platform_mem_init
16	.weak	plat_panic_handler
17	.weak	bl2_plat_preload_setup
18	.weak	plat_try_next_boot_source
19
20	/* -----------------------------------------------------
21	 * Placeholder function which should be redefined by
22	 * each platform.
23	 * -----------------------------------------------------
24	 */
25func plat_crash_console_init
26	mov	r0, #0
27	bx	lr
28endfunc plat_crash_console_init
29
30	/* -----------------------------------------------------
31	 * Placeholder function which should be redefined by
32	 * each platform.
33	 * -----------------------------------------------------
34	 */
35func plat_crash_console_putc
36	bx	lr
37endfunc plat_crash_console_putc
38
39	/* -----------------------------------------------------
40	 * Placeholder function which should be redefined by
41	 * each platform.
42	 * -----------------------------------------------------
43	 */
44func plat_crash_console_flush
45	mov	r0, #0
46	bx	lr
47endfunc plat_crash_console_flush
48
49	/* -----------------------------------------------------
50	 * Placeholder function which should be redefined by
51	 * each platform.
52	 * -----------------------------------------------------
53	 */
54func plat_reset_handler
55	bx	lr
56endfunc plat_reset_handler
57
58	/* -----------------------------------------------------
59	 * Placeholder function which should be redefined by
60	 * each platform.
61	 * -----------------------------------------------------
62	 */
63func plat_disable_acp
64	bx	lr
65endfunc plat_disable_acp
66
67	/* ---------------------------------------------------------------------
68	 * Placeholder function which should be redefined by
69	 * each platform.
70	 * ---------------------------------------------------------------------
71	 */
72func platform_mem_init
73	bx	lr
74endfunc platform_mem_init
75
76	/* -----------------------------------------------------
77	 * void plat_panic_handler(void) __dead2;
78	 * Endless loop by default.
79	 * -----------------------------------------------------
80	 */
81func plat_panic_handler
82	b	plat_panic_handler
83endfunc plat_panic_handler
84
85
86	/* -----------------------------------------------------
87	 * Placeholder function which should be redefined by
88	 * each platfrom.
89	 * -----------------------------------------------------
90	 */
91func bl2_plat_preload_setup
92	bx	lr
93endfunc bl2_plat_preload_setup
94
95	/* -----------------------------------------------------
96	 * Placeholder function which should be redefined by
97	 * each platfrom.
98	 * -----------------------------------------------------
99	 */
100func plat_try_next_boot_source
101	mov	r0, #0
102	bx	lr
103endfunc plat_try_next_boot_source
104