xref: /arm-trusted-firmware/plat/hobot/sigi/sigi_console.c (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1 /*
2  * Copyright (c) 2023, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <platform_def.h>
8 #include <sigi_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 sigi_console_init(void)
16 {
17 	(void)console_16550_register(PLAT_SIGI_BOOT_UART_BASE,
18 			       PLAT_SIGI_BOOT_UART_CLK_IN_HZ,
19 			       PLAT_SIGI_CONSOLE_BAUDRATE, &console);
20 
21 	console_set_scope(&console, CONSOLE_FLAG_BOOT |
22 			  CONSOLE_FLAG_RUNTIME);
23 }
24