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 |
| 17 | |
| 18 | /* ----------------------------------------------------- |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 19 | * Placeholder function which should be redefined by |
| 20 | * each platform. |
| 21 | * ----------------------------------------------------- |
| 22 | */ |
Antonio Nino Diaz | d3ec543 | 2017-02-17 17:11:27 +0000 | [diff] [blame] | 23 | func plat_crash_console_init |
| 24 | mov r0, #0 |
| 25 | bx lr |
| 26 | endfunc plat_crash_console_init |
| 27 | |
| 28 | /* ----------------------------------------------------- |
| 29 | * Placeholder function which should be redefined by |
| 30 | * each platform. |
| 31 | * ----------------------------------------------------- |
| 32 | */ |
| 33 | func plat_crash_console_putc |
| 34 | bx lr |
| 35 | endfunc plat_crash_console_putc |
| 36 | |
| 37 | /* ----------------------------------------------------- |
| 38 | * Placeholder function which should be redefined by |
| 39 | * each platform. |
| 40 | * ----------------------------------------------------- |
| 41 | */ |
| 42 | func plat_crash_console_flush |
| 43 | mov r0, #0 |
| 44 | bx lr |
| 45 | endfunc plat_crash_console_flush |
| 46 | |
| 47 | /* ----------------------------------------------------- |
| 48 | * Placeholder function which should be redefined by |
| 49 | * each platform. |
| 50 | * ----------------------------------------------------- |
| 51 | */ |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 52 | func plat_reset_handler |
| 53 | bx lr |
| 54 | endfunc plat_reset_handler |
| 55 | |
Yatharth Kochar | f528faf | 2016-06-28 16:58:26 +0100 | [diff] [blame] | 56 | /* ----------------------------------------------------- |
| 57 | * Placeholder function which should be redefined by |
| 58 | * each platform. |
| 59 | * ----------------------------------------------------- |
| 60 | */ |
| 61 | func plat_disable_acp |
| 62 | bx lr |
| 63 | endfunc plat_disable_acp |
| 64 | |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 65 | /* --------------------------------------------------------------------- |
| 66 | * Placeholder function which should be redefined by |
| 67 | * each platform. |
| 68 | * --------------------------------------------------------------------- |
| 69 | */ |
| 70 | func platform_mem_init |
| 71 | bx lr |
| 72 | endfunc platform_mem_init |
| 73 | |
| 74 | /* ----------------------------------------------------- |
| 75 | * void plat_panic_handler(void) __dead2; |
| 76 | * Endless loop by default. |
| 77 | * ----------------------------------------------------- |
| 78 | */ |
| 79 | func plat_panic_handler |
| 80 | b plat_panic_handler |
| 81 | endfunc plat_panic_handler |