mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-20 19:44:23 +00:00

This commit change the plat/qemu directory structure into: `-- plat `-- qemu |-- common (files shared with all qemu subplatforms) |-- qemu (original qemu platform) |-- qemu_sbsa (new sqemu_sbsa platform) |-- subplat1 `-- subplat2 This opens the possibility of adding new qemu sub-platforms which reuse existing common platform code. The first platform which will leverage new structure will be SBSA platform. Signed-off-by: Radoslaw Biernacki <radoslaw.biernacki@linaro.org> Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com> Change-Id: Id0d8133e1fffc1b574b69aa2770ebc02bb837a9b
23 lines
518 B
C
23 lines
518 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_pl011_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, CONSOLE_FLAG_BOOT |
|
|
CONSOLE_FLAG_RUNTIME);
|
|
}
|
|
|