blob: 4123df38c0a7869f1fad46915d5d10d3dedf6f20 [file] [log] [blame]
Masahiro Yamada0fc50a82018-02-01 18:42:24 +09001/*
Soby Mathew566034f2018-02-08 17:45:12 +00002 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
Masahiro Yamada0fc50a82018-02-01 18:42:24 +09003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <arch_helpers.h>
Soby Mathew566034f2018-02-08 17:45:12 +00008#include <assert.h>
9#include <bl_common.h>
10#include <debug.h>
11#include <errno.h>
Masahiro Yamada0fc50a82018-02-01 18:42:24 +090012
13/*
Soby Mathew566034f2018-02-08 17:45:12 +000014 * The following platform functions are weakly defined. The Platforms
15 * may redefine with strong definition.
Masahiro Yamada0fc50a82018-02-01 18:42:24 +090016 */
Soby Mathew566034f2018-02-08 17:45:12 +000017#pragma weak bl2_el3_plat_prepare_exit
Masahiro Yamada0fc50a82018-02-01 18:42:24 +090018#pragma weak plat_error_handler
19#pragma weak bl2_plat_preload_setup
Masahiro Yamadaba68ef52018-02-01 16:45:51 +090020#pragma weak bl2_plat_handle_pre_image_load
21#pragma weak bl2_plat_handle_post_image_load
Masahiro Yamada0fc50a82018-02-01 18:42:24 +090022#pragma weak plat_try_next_boot_source
23
Soby Mathew566034f2018-02-08 17:45:12 +000024void bl2_el3_plat_prepare_exit(void)
25{
26}
27
Masahiro Yamada0fc50a82018-02-01 18:42:24 +090028void __dead2 plat_error_handler(int err)
29{
30 while (1)
31 wfi();
32}
33
34void bl2_plat_preload_setup(void)
35{
36}
37
Masahiro Yamadaba68ef52018-02-01 16:45:51 +090038int bl2_plat_handle_pre_image_load(unsigned int image_id)
39{
40 return 0;
41}
42
43int bl2_plat_handle_post_image_load(unsigned int image_id)
44{
45 return 0;
46}
47
Masahiro Yamada0fc50a82018-02-01 18:42:24 +090048int plat_try_next_boot_source(void)
49{
50 return 0;
51}