blob: d61853942b077a643483bf8ab3737684f902b674 [file] [log] [blame]
Soby Mathew0d268dc2016-07-11 14:13:56 +01001/*
Masahiro Yamada2a4fe4f2018-02-01 18:42:24 +09002 * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
Soby Mathew0d268dc2016-07-11 14:13:56 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Soby Mathew0d268dc2016-07-11 14:13:56 +01005 */
6
7#include <arch.h>
8#include <asm_macros.S>
9
Etienne Carriere953395a2017-11-05 22:57:20 +010010 .weak plat_report_exception
Antonio Nino Diazd3ec5432017-02-17 17:11:27 +000011 .weak plat_crash_console_init
12 .weak plat_crash_console_putc
13 .weak plat_crash_console_flush
Soby Mathew0d268dc2016-07-11 14:13:56 +010014 .weak plat_reset_handler
Yatharth Kocharf528faf2016-06-28 16:58:26 +010015 .weak plat_disable_acp
Etienne Carriere953395a2017-11-05 22:57:20 +010016 .weak bl1_plat_prepare_exit
Soby Mathew0d268dc2016-07-11 14:13:56 +010017 .weak platform_mem_init
18 .weak plat_panic_handler
19
20 /* -----------------------------------------------------
Soby Mathew0d268dc2016-07-11 14:13:56 +010021 * Placeholder function which should be redefined by
22 * each platform.
23 * -----------------------------------------------------
24 */
Etienne Carriere953395a2017-11-05 22:57:20 +010025func plat_report_exception
26 bx lr
27endfunc plat_report_exception
28
29 /* -----------------------------------------------------
30 * Placeholder function which should be redefined by
31 * each platform.
32 * -----------------------------------------------------
33 */
Antonio Nino Diazd3ec5432017-02-17 17:11:27 +000034func plat_crash_console_init
35 mov r0, #0
36 bx lr
37endfunc plat_crash_console_init
38
39 /* -----------------------------------------------------
40 * Placeholder function which should be redefined by
41 * each platform.
42 * -----------------------------------------------------
43 */
44func plat_crash_console_putc
45 bx lr
46endfunc plat_crash_console_putc
47
48 /* -----------------------------------------------------
49 * Placeholder function which should be redefined by
50 * each platform.
51 * -----------------------------------------------------
52 */
53func plat_crash_console_flush
54 mov r0, #0
55 bx lr
56endfunc plat_crash_console_flush
57
58 /* -----------------------------------------------------
59 * Placeholder function which should be redefined by
60 * each platform.
61 * -----------------------------------------------------
62 */
Soby Mathew0d268dc2016-07-11 14:13:56 +010063func plat_reset_handler
64 bx lr
65endfunc plat_reset_handler
66
Yatharth Kocharf528faf2016-06-28 16:58:26 +010067 /* -----------------------------------------------------
68 * Placeholder function which should be redefined by
69 * each platform.
70 * -----------------------------------------------------
71 */
72func plat_disable_acp
73 bx lr
74endfunc plat_disable_acp
75
Soby Mathew0d268dc2016-07-11 14:13:56 +010076 /* ---------------------------------------------------------------------
77 * Placeholder function which should be redefined by
78 * each platform.
79 * ---------------------------------------------------------------------
80 */
81func platform_mem_init
82 bx lr
83endfunc platform_mem_init
84
85 /* -----------------------------------------------------
Etienne Carriere953395a2017-11-05 22:57:20 +010086 * void bl1_plat_prepare_exit(entry_point_info_t *ep_info);
87 * Called before exiting BL1. Default: do nothing
88 * -----------------------------------------------------
89 */
90func bl1_plat_prepare_exit
91 bx lr
92endfunc bl1_plat_prepare_exit
93
94 /* -----------------------------------------------------
Soby Mathew0d268dc2016-07-11 14:13:56 +010095 * void plat_panic_handler(void) __dead2;
96 * Endless loop by default.
97 * -----------------------------------------------------
98 */
99func plat_panic_handler
100 b plat_panic_handler
101endfunc plat_panic_handler