blob: b5f41ffbf8c4694f79711e36d5cbb2ea693b2b71 [file] [log] [blame]
Soby Mathew0d268dc2016-07-11 14:13:56 +01001/*
Antonio Nino Diazd3ec5432017-02-17 17:11:27 +00002 * Copyright (c) 2016-2017, 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
Antonio Nino Diazd3ec5432017-02-17 17:11:27 +000010 .weak plat_crash_console_init
11 .weak plat_crash_console_putc
12 .weak plat_crash_console_flush
Soby Mathew0d268dc2016-07-11 14:13:56 +010013 .weak plat_reset_handler
Yatharth Kocharf528faf2016-06-28 16:58:26 +010014 .weak plat_disable_acp
Soby Mathew0d268dc2016-07-11 14:13:56 +010015 .weak platform_mem_init
16 .weak plat_panic_handler
17
18 /* -----------------------------------------------------
Soby Mathew0d268dc2016-07-11 14:13:56 +010019 * Placeholder function which should be redefined by
20 * each platform.
21 * -----------------------------------------------------
22 */
Antonio Nino Diazd3ec5432017-02-17 17:11:27 +000023func 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 */
Soby Mathew0d268dc2016-07-11 14:13:56 +010052func plat_reset_handler
53 bx lr
54endfunc plat_reset_handler
55
Yatharth Kocharf528faf2016-06-28 16:58:26 +010056 /* -----------------------------------------------------
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
Soby Mathew0d268dc2016-07-11 14:13:56 +010065 /* ---------------------------------------------------------------------
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