1 // SPDX-License-Identifier: BSD-2-Clause 2 /* 3 * Copyright 2022 NXP 4 */ 5 6 #include <console.h> 7 #include <platform_config.h> 8 9 #include "drivers/htif.h" 10 11 static struct htif_console_data console_data __nex_bss; 12 13 void console_init(void) 14 { 15 #ifdef HTIF_BASE 16 htif_console_init(&console_data, HTIF_BASE); 17 register_serial_console(&console_data.chip); 18 #endif 19 } 20