1 /* 2 * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <arch.h> 8 #include <asm_macros.S> 9 10 .weak plat_crash_console_init 11 .weak plat_crash_console_putc 12 .weak plat_crash_console_flush 13 .weak plat_reset_handler 14 .weak plat_disable_acp 15 .weak platform_mem_init 16 .weak plat_panic_handler 17 .weak bl2_plat_preload_setup 18 .weak plat_try_next_boot_source 19 20 /* ----------------------------------------------------- 21 * Placeholder function which should be redefined by 22 * each platform. 23 * ----------------------------------------------------- 24 */ 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 */ 54 func plat_reset_handler 55 bx lr 56 endfunc plat_reset_handler 57 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 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 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 104