blob: a1fdb78323a4b9a668812c9fe2dcc40758acfe24 [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{
Andre Przywara8b505252020-04-09 10:10:09 +010016 (void)console_pl011_register(PLAT_FPGA_BOOT_UART_BASE, 0, 0,
Oliver Swede8fed2fe2019-11-11 11:11:06 +000017 &console);
18
19 console_set_scope(&console, CONSOLE_FLAG_BOOT |
20 CONSOLE_FLAG_RUNTIME);
21}