1 /* SPDX-License-Identifier: BSD-3-Clause */ 2 /* 3 * Copyright (C) 2024, Charleye <wangkart@aliyun.com> 4 * All rights reserved. 5 */ 6 7 #include <platform_def.h> 8 #include <lmt_def.h> 9 10 #include <drivers/console.h> 11 #include <drivers/ti/uart/uart_16550.h> 12 13 static console_t console; 14 15 void lmt_console_init(void) 16 { 17 (void)console_16550_register(PLAT_LMT_BOOT_UART_BASE, 18 PLAT_LMT_BOOT_UART_CLK_IN_HZ, 19 PLAT_LMT_CONSOLE_BAUDRATE, &console); 20 21 console_set_scope(&console, CONSOLE_FLAG_BOOT | 22 CONSOLE_FLAG_RUNTIME); 23 } 24