blob: 61d21ab36e805a66061f3d1a7f456ea3f13428d7 [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
Roberto Vargasbc1ae1f2017-09-26 12:53:01 +010017 .weak bl2_plat_preload_setup
18 .weak plat_try_next_boot_source
Soby Mathew0d268dc2016-07-11 14:13:56 +010019
20 /* -----------------------------------------------------
Soby Mathew0d268dc2016-07-11 14:13:56 +010021 * Placeholder function which should be redefined by
22 * each platform.
23 * -----------------------------------------------------
24 */
Antonio Nino Diazd3ec5432017-02-17 17:11:27 +000025func 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 */
Soby Mathew0d268dc2016-07-11 14:13:56 +010054func plat_reset_handler
55 bx lr
56endfunc plat_reset_handler
57
Yatharth Kocharf528faf2016-06-28 16:58:26 +010058 /* -----------------------------------------------------
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
Soby Mathew0d268dc2016-07-11 14:13:56 +010067 /* ---------------------------------------------------------------------
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
Roberto Vargasbc1ae1f2017-09-26 12:53:01 +010084
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