blob: ce1a7317308df9698fbdc78c1bb1e9a1c4b68d05 [file] [log] [blame]
Masahiro Yamada2a4fe4f2018-02-01 18:42:24 +09001/*
2 * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <arch_helpers.h>
8#include <platform.h>
9
10/*
11 * Placeholder functions which can be redefined by each platfrom.
12 */
13
14#pragma weak plat_error_handler
Masahiro Yamada43d20b32018-02-01 16:46:18 +090015#pragma weak bl1_plat_handle_pre_image_load
16#pragma weak bl1_plat_handle_post_image_load
Masahiro Yamada2a4fe4f2018-02-01 18:42:24 +090017#pragma weak bl2_plat_preload_setup
Masahiro Yamada02a0d3d2018-02-01 16:45:51 +090018#pragma weak bl2_plat_handle_pre_image_load
19#pragma weak bl2_plat_handle_post_image_load
Masahiro Yamada2a4fe4f2018-02-01 18:42:24 +090020#pragma weak plat_try_next_boot_source
21
22void __dead2 plat_error_handler(int err)
23{
24 while (1)
25 wfi();
26}
27
Masahiro Yamada43d20b32018-02-01 16:46:18 +090028int bl1_plat_handle_pre_image_load(void)
29{
30 return 0;
31}
32
33int bl1_plat_handle_post_image_load(void)
34{
35 return 0;
36}
37
Masahiro Yamada2a4fe4f2018-02-01 18:42:24 +090038void bl2_plat_preload_setup(void)
39{
40}
41
Masahiro Yamada02a0d3d2018-02-01 16:45:51 +090042int bl2_plat_handle_pre_image_load(unsigned int image_id)
43{
44 return 0;
45}
46
47int bl2_plat_handle_post_image_load(unsigned int image_id)
48{
49 return 0;
50}
51
Masahiro Yamada2a4fe4f2018-02-01 18:42:24 +090052int plat_try_next_boot_source(void)
53{
54 return 0;
55}