Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | d3ec543 | 2017-02-17 17:11:27 +0000 | [diff] [blame] | 2 | * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <arch.h> |
| 8 | #include <asm_macros.S> |
| 9 | |
Antonio Nino Diaz | d3ec543 | 2017-02-17 17:11:27 +0000 | [diff] [blame] | 10 | .weak plat_crash_console_init |
| 11 | .weak plat_crash_console_putc |
| 12 | .weak plat_crash_console_flush |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 13 | .weak plat_reset_handler |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 14 | .weak plat_disable_acp |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 15 | .weak platform_mem_init |
| 16 | .weak plat_panic_handler |
Roberto Vargas | bc1ae1f | 2017-09-26 12:53:01 +0100 | [diff] [blame^] | 17 | .weak bl2_plat_preload_setup |
| 18 | .weak plat_try_next_boot_source |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 19 | |
| 20 | /* ----------------------------------------------------- |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 21 | * Placeholder function which should be redefined by |
| 22 | * each platform. |
| 23 | * ----------------------------------------------------- |
| 24 | */ |
Antonio Nino Diaz | d3ec543 | 2017-02-17 17:11:27 +0000 | [diff] [blame] | 25 | func plat_crash_console_init |
| 26 | mov r0, #0 |
| 27 | bx lr |
| 28 | endfunc plat_crash_console_init |
| 29 | |
| 30 | /* ----------------------------------------------------- |
| 31 | * Placeholder function which should be redefined by |
| 32 | * each platform. |
| 33 | * ----------------------------------------------------- |
| 34 | */ |
| 35 | func plat_crash_console_putc |
| 36 | bx lr |
| 37 | endfunc plat_crash_console_putc |
| 38 | |
| 39 | /* ----------------------------------------------------- |
| 40 | * Placeholder function which should be redefined by |
| 41 | * each platform. |
| 42 | * ----------------------------------------------------- |
| 43 | */ |
| 44 | func plat_crash_console_flush |
| 45 | mov r0, #0 |
| 46 | bx lr |
| 47 | endfunc plat_crash_console_flush |
| 48 | |
| 49 | /* ----------------------------------------------------- |
| 50 | * Placeholder function which should be redefined by |
| 51 | * each platform. |
| 52 | * ----------------------------------------------------- |
| 53 | */ |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 54 | func plat_reset_handler |
| 55 | bx lr |
| 56 | endfunc plat_reset_handler |
| 57 | |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 58 | /* ----------------------------------------------------- |
| 59 | * Placeholder function which should be redefined by |
| 60 | * each platform. |
| 61 | * ----------------------------------------------------- |
| 62 | */ |
| 63 | func plat_disable_acp |
| 64 | bx lr |
| 65 | endfunc plat_disable_acp |
| 66 | |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 67 | /* --------------------------------------------------------------------- |
| 68 | * Placeholder function which should be redefined by |
| 69 | * each platform. |
| 70 | * --------------------------------------------------------------------- |
| 71 | */ |
| 72 | func platform_mem_init |
| 73 | bx lr |
| 74 | endfunc platform_mem_init |
| 75 | |
| 76 | /* ----------------------------------------------------- |
| 77 | * void plat_panic_handler(void) __dead2; |
| 78 | * Endless loop by default. |
| 79 | * ----------------------------------------------------- |
| 80 | */ |
| 81 | func plat_panic_handler |
| 82 | b plat_panic_handler |
| 83 | endfunc plat_panic_handler |
Roberto Vargas | bc1ae1f | 2017-09-26 12:53:01 +0100 | [diff] [blame^] | 84 | |
| 85 | |
| 86 | /* ----------------------------------------------------- |
| 87 | * Placeholder function which should be redefined by |
| 88 | * each platfrom. |
| 89 | * ----------------------------------------------------- |
| 90 | */ |
| 91 | func bl2_plat_preload_setup |
| 92 | bx lr |
| 93 | endfunc bl2_plat_preload_setup |
| 94 | |
| 95 | /* ----------------------------------------------------- |
| 96 | * Placeholder function which should be redefined by |
| 97 | * each platfrom. |
| 98 | * ----------------------------------------------------- |
| 99 | */ |
| 100 | func plat_try_next_boot_source |
| 101 | mov r0, #0 |
| 102 | bx lr |
| 103 | endfunc plat_try_next_boot_source |