blob: b4ebf3424d9ba71138f7da52f1738e366f341f63 [file] [log] [blame]
Oliver Swede8fed2fe2019-11-11 11:11:06 +00001/*
2 * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <drivers/console.h>
8#include <drivers/arm/pl011.h>
9
10#include <platform_def.h>
11
12static console_t console;
13
14void fpga_console_init(void)
15{
16 (void)console_pl011_register(PLAT_FPGA_BOOT_UART_BASE,
17 PLAT_FPGA_BOOT_UART_CLK_IN_HZ,
18 PLAT_FPGA_CONSOLE_BAUDRATE,
19 &console);
20
21 console_set_scope(&console, CONSOLE_FLAG_BOOT |
22 CONSOLE_FLAG_RUNTIME);
23}