1 // SPDX-License-Identifier: BSD-2-Clause 2 /* 3 * Copyright (c) 2015, Linaro Limited 4 * Copyright (c) 2022, Huawei Technologies Co., Ltd 5 */ 6 #include <console.h> 7 #include <drivers/lpc_uart.h> 8 #include <platform_config.h> 9 10 static struct lpc_uart_data console_data __nex_bss; 11 12 register_phys_mem_pgdir(MEM_AREA_IO_NSEC, LPC_BASE, LPC_SIZE); 13 console_init(void)14void console_init(void) 15 { 16 lpc_uart_init(&console_data, LPC_BASE, CONSOLE_UART_CLK_IN_HZ, 17 CONSOLE_BAUDRATE); 18 19 register_serial_console(&console_data.chip); 20 } 21