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

Detection of the UART in use and GPIO code only apply to RPi 3 and 4. RPi 5 has a dedicated PL011 debug port. Change-Id: Iddf8aea01278e2b79b4e7c476740f1add8c419f0 Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>
20 lines
512 B
C
20 lines
512 B
C
/*
|
|
* Copyright (c) 2015-2024, Arm Limited and Contributors. All rights reserved.
|
|
* Copyright (c) 2024, Mario Bălănică <mariobalanica02@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <drivers/arm/pl011.h>
|
|
#include <drivers/console.h>
|
|
#include <platform_def.h>
|
|
|
|
#include <rpi_shared.h>
|
|
|
|
int rpi3_register_used_uart(console_t *console)
|
|
{
|
|
return console_pl011_register(PLAT_RPI_PL011_UART_BASE,
|
|
PLAT_RPI_PL011_UART_CLOCK,
|
|
PLAT_RPI_UART_BAUDRATE,
|
|
console);
|
|
}
|