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