platform_helpers_default.c 960 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <arch_helpers.h>
#include <platform.h>

/*
 * Placeholder functions which can be redefined by each platfrom.
 */

#pragma weak plat_error_handler
15
16
#pragma weak bl1_plat_handle_pre_image_load
#pragma weak bl1_plat_handle_post_image_load
17
#pragma weak bl2_plat_preload_setup
18
19
#pragma weak bl2_plat_handle_pre_image_load
#pragma weak bl2_plat_handle_post_image_load
20
21
22
23
24
25
26
27
#pragma weak plat_try_next_boot_source

void __dead2 plat_error_handler(int err)
{
	while (1)
		wfi();
}

28
29
30
31
32
33
34
35
36
37
int bl1_plat_handle_pre_image_load(void)
{
	return 0;
}

int bl1_plat_handle_post_image_load(void)
{
	return 0;
}

38
39
40
41
void bl2_plat_preload_setup(void)
{
}

42
43
44
45
46
47
48
49
50
51
int bl2_plat_handle_pre_image_load(unsigned int image_id)
{
	return 0;
}

int bl2_plat_handle_post_image_load(unsigned int image_id)
{
	return 0;
}

52
53
54
55
int plat_try_next_boot_source(void)
{
	return 0;
}