1 /* 2 * Copyright (c) 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 30 console_set_scope(&rcar_boot_console, CONSOLE_FLAG_BOOT); 31 } 32 33 void rcar_console_runtime_init(void) 34 { 35 static console_t rcar_runtime_console = {0}; 36 int ret; 37 38 ret = console_rcar_register(1, 0, 0, &rcar_runtime_console); 39 if (ret == 0) { 40 panic(); 41 } 42 43 console_set_scope(&rcar_runtime_console, 44 CONSOLE_FLAG_BOOT | 45 CONSOLE_FLAG_RUNTIME | 46 CONSOLE_FLAG_CRASH); 47 } 48