Masahiro Yamada | 2a4fe4f | 2018-02-01 18:42:24 +0900 | [diff] [blame] | 1 | /* |
| 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 Yamada | 43d20b3 | 2018-02-01 16:46:18 +0900 | [diff] [blame] | 15 | #pragma weak bl1_plat_handle_pre_image_load |
| 16 | #pragma weak bl1_plat_handle_post_image_load |
Masahiro Yamada | 2a4fe4f | 2018-02-01 18:42:24 +0900 | [diff] [blame] | 17 | #pragma weak bl2_plat_preload_setup |
Masahiro Yamada | 02a0d3d | 2018-02-01 16:45:51 +0900 | [diff] [blame] | 18 | #pragma weak bl2_plat_handle_pre_image_load |
| 19 | #pragma weak bl2_plat_handle_post_image_load |
Masahiro Yamada | 2a4fe4f | 2018-02-01 18:42:24 +0900 | [diff] [blame] | 20 | #pragma weak plat_try_next_boot_source |
| 21 | |
| 22 | void __dead2 plat_error_handler(int err) |
| 23 | { |
| 24 | while (1) |
| 25 | wfi(); |
| 26 | } |
| 27 | |
Masahiro Yamada | 43d20b3 | 2018-02-01 16:46:18 +0900 | [diff] [blame] | 28 | int bl1_plat_handle_pre_image_load(void) |
| 29 | { |
| 30 | return 0; |
| 31 | } |
| 32 | |
| 33 | int bl1_plat_handle_post_image_load(void) |
| 34 | { |
| 35 | return 0; |
| 36 | } |
| 37 | |
Masahiro Yamada | 2a4fe4f | 2018-02-01 18:42:24 +0900 | [diff] [blame] | 38 | void bl2_plat_preload_setup(void) |
| 39 | { |
| 40 | } |
| 41 | |
Masahiro Yamada | 02a0d3d | 2018-02-01 16:45:51 +0900 | [diff] [blame] | 42 | int bl2_plat_handle_pre_image_load(unsigned int image_id) |
| 43 | { |
| 44 | return 0; |
| 45 | } |
| 46 | |
| 47 | int bl2_plat_handle_post_image_load(unsigned int image_id) |
| 48 | { |
| 49 | return 0; |
| 50 | } |
| 51 | |
Masahiro Yamada | 2a4fe4f | 2018-02-01 18:42:24 +0900 | [diff] [blame] | 52 | int plat_try_next_boot_source(void) |
| 53 | { |
| 54 | return 0; |
| 55 | } |