1 /* 2 * Copyright (c) 2019-2025, Renesas Electronics Corporation. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <assert.h> 8 9 #include <drivers/console.h> 10 #include "scif.h" 11 12 #include "rcar_private.h" 13 14 /* RAS functions common to AArch64 ARM platforms */ 15 void plat_ea_handler(unsigned int ea_reason, uint64_t syndrome, void *cookie, 16 void *handle, uint64_t flags) 17 { 18 } 19 20 void rcar_console_boot_init(void) 21 { 22 static console_t rcar_boot_console = { 0 }; 23 int ret; 24 25 ret = console_rcar_register(0, 0, 0, &rcar_boot_console); 26 if (ret == 0) 27 panic(); 28 29 console_set_scope(&rcar_boot_console, CONSOLE_FLAG_BOOT); 30 } 31 32 void rcar_console_runtime_init(void) 33 { 34 static console_t rcar_runtime_console = { 0 }; 35 int ret; 36 37 ret = console_rcar_register(1, 0, 0, &rcar_runtime_console); 38 if (ret == 0) 39 panic(); 40 41 console_set_scope(&rcar_runtime_console, 42 CONSOLE_FLAG_BOOT | 43 CONSOLE_FLAG_RUNTIME | 44 CONSOLE_FLAG_CRASH); 45 } 46