xref: /rk3399_ARM-atf/plat/common/aarch32/platform_helpers.S (revision 82cb2c1ad9897473743f08437d0a3995bed561b9)
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
18	/* -----------------------------------------------------
19	 * Placeholder function which should be redefined by
20	 * each platform.
21	 * -----------------------------------------------------
22	 */
23func plat_crash_console_init
24	mov	r0, #0
25	bx	lr
26endfunc plat_crash_console_init
27
28	/* -----------------------------------------------------
29	 * Placeholder function which should be redefined by
30	 * each platform.
31	 * -----------------------------------------------------
32	 */
33func plat_crash_console_putc
34	bx	lr
35endfunc plat_crash_console_putc
36
37	/* -----------------------------------------------------
38	 * Placeholder function which should be redefined by
39	 * each platform.
40	 * -----------------------------------------------------
41	 */
42func plat_crash_console_flush
43	mov	r0, #0
44	bx	lr
45endfunc plat_crash_console_flush
46
47	/* -----------------------------------------------------
48	 * Placeholder function which should be redefined by
49	 * each platform.
50	 * -----------------------------------------------------
51	 */
52func plat_reset_handler
53	bx	lr
54endfunc plat_reset_handler
55
56	/* -----------------------------------------------------
57	 * Placeholder function which should be redefined by
58	 * each platform.
59	 * -----------------------------------------------------
60	 */
61func plat_disable_acp
62	bx	lr
63endfunc plat_disable_acp
64
65	/* ---------------------------------------------------------------------
66	 * Placeholder function which should be redefined by
67	 * each platform.
68	 * ---------------------------------------------------------------------
69	 */
70func platform_mem_init
71	bx	lr
72endfunc platform_mem_init
73
74	/* -----------------------------------------------------
75	 * void plat_panic_handler(void) __dead2;
76	 * Endless loop by default.
77	 * -----------------------------------------------------
78	 */
79func plat_panic_handler
80	b	plat_panic_handler
81endfunc plat_panic_handler
82