xref: /optee_os/core/arch/arm/plat-rpi5/main.c (revision e1e6e2c6ffd64dc8a5ca649214c39cbad872c4d2)
1 // SPDX-License-Identifier: BSD-2-Clause
2 /*
3  * Copyright (c) 2024, EPAM Systems.
4  */
5 
6 #include <console.h>
7 #include <drivers/pl011.h>
8 #include <platform_config.h>
9 
10 register_phys_mem_pgdir(MEM_AREA_IO_NSEC,
11 			CONSOLE_UART_BASE, PL011_REG_SIZE);
12 
13 static struct pl011_data console_data __nex_bss;
14 
plat_console_init(void)15 void plat_console_init(void)
16 {
17 	pl011_init(&console_data, CONSOLE_UART_BASE, CONSOLE_UART_CLK_IN_HZ,
18 		   CONSOLE_BAUDRATE);
19 	register_serial_console(&console_data.chip);
20 }
21