mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 06:50:10 +00:00

Since now the generic console_t structure holds the UART base address as well, let's use that generic location and drop the UART driver specific data structure at all. Change-Id: I7a23327394d142af4b293ea7ccd90b843c54587c Signed-off-by: Andre Przywara <andre.przywara@arm.com>
23 lines
504 B
C
23 lines
504 B
C
/*
|
|
* Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <platform_def.h>
|
|
|
|
#include <drivers/console.h>
|
|
#include <drivers/arm/pl011.h>
|
|
|
|
static console_t console;
|
|
|
|
void qemu_console_init(void)
|
|
{
|
|
(void)console_pl011_register(PLAT_QEMU_BOOT_UART_BASE,
|
|
PLAT_QEMU_BOOT_UART_CLK_IN_HZ,
|
|
PLAT_QEMU_CONSOLE_BAUDRATE, &console);
|
|
|
|
console_set_scope(&console, CONSOLE_FLAG_BOOT |
|
|
CONSOLE_FLAG_RUNTIME);
|
|
}
|
|
|