arm-trusted-firmware/plat
Andre Przywara 5e6d821cb3 rpi: Allow using PL011 UART for RPi3/RPi4
The Broadcom 283x SoCs feature multiple UARTs: the mostly used
"Mini-UART", which is an 8250 compatible IP, and at least one PL011.
While the 8250 is usually used for serial console purposes, it suffers
from a design flaw, where its clock depends on the VPU clock, which can
change at runtime. This will reliably mess up the baud rate.
To avoid this problem, people might choose to use the PL011 UART for
the serial console, which is pin-mux'ed to the very same GPIO pins.
This can be done by adding "miniuart-bt" to the "dtoverlay=" line in
config.txt.

To prepare for this situation, use the newly gained freedom of sharing
one console_t pointer across different UART drivers, to introduce the
option of choosing the PL011 for the console.

This is for now hard-coded to choose the Mini-UART by default.
A follow-up patch will introduce automatic detection.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Change-Id: I8cf2522151e09ff4ff94a6d396aec6fc4b091a05
2020-03-17 13:44:49 +00:00
..
allwinner Merge "allwinner: Implement PSCI system suspend using SCPI" into integration 2020-02-26 09:11:37 +00:00
amlogic meson: Use generic console_t data structure 2020-02-25 09:34:38 +00:00
arm Merge "TF-A GICv3 driver: Separate GICD and GICR accessor functions" into integration 2020-03-11 15:38:45 +00:00
common Merge "Fix crash dump for lower EL" into integration 2020-03-11 15:39:32 +00:00
hisilicon hikey960: Enable system power off callback 2020-03-02 22:34:21 +08:00
imx Merge "TF-A GICv3 driver: Separate GICD and GICR accessor functions" into integration 2020-03-11 15:38:45 +00:00
intel/soc Merge "intel: Enable EMAC PHY in Intel FPGA platform" into integration 2020-02-28 10:51:49 +00:00
layerscape LS 16550: Use generic console_t data structure 2020-02-25 09:34:38 +00:00
marvell TF-A GICv3 driver: Separate GICD and GICR accessor functions 2020-03-10 09:40:19 +00:00
mediatek Merge "TF-A GICv3 driver: Separate GICD and GICR accessor functions" into integration 2020-03-11 15:38:45 +00:00
nvidia/tegra Tegra186: store TZDRAM base/size to scratch registers 2020-03-09 15:25:16 -07:00
qemu TF-A GICv3 driver: Separate GICD and GICR accessor functions 2020-03-10 09:40:19 +00:00
renesas/rcar rcar: Use generic console_t data structure 2020-02-25 09:34:38 +00:00
rockchip TF-A GICv3 driver: Separate GICD and GICR accessor functions 2020-03-10 09:40:19 +00:00
rpi rpi: Allow using PL011 UART for RPi3/RPi4 2020-03-17 13:44:49 +00:00
socionext TF-A GICv3 driver: Separate GICD and GICR accessor functions 2020-03-10 09:40:19 +00:00
st Merge changes from topic "stm32mp1-multi-image" into integration 2020-03-11 10:03:17 +00:00
ti/k3 TF-A GICv3 driver: Separate GICD and GICR accessor functions 2020-03-10 09:40:19 +00:00
xilinx TF-A GICv3 driver: Separate GICD and GICR accessor functions 2020-03-10 09:40:19 +00:00