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 |
| 16 | #pragma weak plat_try_next_boot_source |
| 17 | |
| 18 | void __dead2 plat_error_handler(int err) |
| 19 | { |
| 20 | while (1) |
| 21 | wfi(); |
| 22 | } |
| 23 | |
| 24 | void bl2_plat_preload_setup(void) |
| 25 | { |
| 26 | } |
| 27 | |
| 28 | int plat_try_next_boot_source(void) |
| 29 | { |
| 30 | return 0; |
| 31 | } |