Newer
Older
arm-trusted-firmware / plat / arm / board / arm_fpga / fpga_console.c
@Andre Przywara Andre Przywara on 5 May 2020 424 bytes arm_fpga: Use Generic UART
/*
 * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <drivers/console.h>
#include <drivers/arm/pl011.h>

#include <platform_def.h>

static console_t console;

void fpga_console_init(void)
{
	(void)console_pl011_register(PLAT_FPGA_BOOT_UART_BASE, 0, 0,
		&console);

	console_set_scope(&console, CONSOLE_FLAG_BOOT |
		CONSOLE_FLAG_RUNTIME);
}