blob: 597a585064b028a3ba8537709a0132dd8c19726d [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
15#pragma weak bl2_plat_preload_setup
Masahiro Yamada02a0d3d2018-02-01 16:45:51 +090016#pragma weak bl2_plat_handle_pre_image_load
17#pragma weak bl2_plat_handle_post_image_load
Masahiro Yamada2a4fe4f2018-02-01 18:42:24 +090018#pragma weak plat_try_next_boot_source
19
20void __dead2 plat_error_handler(int err)
21{
22 while (1)
23 wfi();
24}
25
26void bl2_plat_preload_setup(void)
27{
28}
29
Masahiro Yamada02a0d3d2018-02-01 16:45:51 +090030int bl2_plat_handle_pre_image_load(unsigned int image_id)
31{
32 return 0;
33}
34
35int bl2_plat_handle_post_image_load(unsigned int image_id)
36{
37 return 0;
38}
39
Masahiro Yamada2a4fe4f2018-02-01 18:42:24 +090040int plat_try_next_boot_source(void)
41{
42 return 0;
43}