blob: 5b9cb591460009ec333b6414adffdc7ebda7a6d0 [file] [log] [blame]
Soby Mathew0d268dc2016-07-11 14:13:56 +01001/*
Ambroise Vincent962109f2019-03-27 13:48:15 +00002 * Copyright (c) 2016-2019, 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
Soby Mathew0d268dc2016-07-11 14:13:56 +010011 .weak plat_reset_handler
Yatharth Kocharf528faf2016-06-28 16:58:26 +010012 .weak plat_disable_acp
Etienne Carriere953395a2017-11-05 22:57:20 +010013 .weak bl1_plat_prepare_exit
Soby Mathew0d268dc2016-07-11 14:13:56 +010014 .weak platform_mem_init
15 .weak plat_panic_handler
16
17 /* -----------------------------------------------------
Soby Mathew0d268dc2016-07-11 14:13:56 +010018 * Placeholder function which should be redefined by
19 * each platform.
20 * -----------------------------------------------------
21 */
Etienne Carriere953395a2017-11-05 22:57:20 +010022func plat_report_exception
23 bx lr
24endfunc plat_report_exception
25
Antonio Nino Diazd3ec5432017-02-17 17:11:27 +000026 /* -----------------------------------------------------
27 * Placeholder function which should be redefined by
28 * each platform.
29 * -----------------------------------------------------
30 */
Soby Mathew0d268dc2016-07-11 14:13:56 +010031func plat_reset_handler
32 bx lr
33endfunc plat_reset_handler
34
Yatharth Kocharf528faf2016-06-28 16:58:26 +010035 /* -----------------------------------------------------
36 * Placeholder function which should be redefined by
37 * each platform.
38 * -----------------------------------------------------
39 */
40func plat_disable_acp
41 bx lr
42endfunc plat_disable_acp
43
Soby Mathew0d268dc2016-07-11 14:13:56 +010044 /* ---------------------------------------------------------------------
45 * Placeholder function which should be redefined by
46 * each platform.
47 * ---------------------------------------------------------------------
48 */
49func platform_mem_init
50 bx lr
51endfunc platform_mem_init
52
53 /* -----------------------------------------------------
Etienne Carriere953395a2017-11-05 22:57:20 +010054 * void bl1_plat_prepare_exit(entry_point_info_t *ep_info);
55 * Called before exiting BL1. Default: do nothing
56 * -----------------------------------------------------
57 */
58func bl1_plat_prepare_exit
59 bx lr
60endfunc bl1_plat_prepare_exit
61
62 /* -----------------------------------------------------
Soby Mathew0d268dc2016-07-11 14:13:56 +010063 * void plat_panic_handler(void) __dead2;
64 * Endless loop by default.
65 * -----------------------------------------------------
66 */
67func plat_panic_handler
68 b plat_panic_handler
69endfunc plat_panic_handler