plat: rpi4: Skip UART initialisation
So far we have seen two different clock setups for the Raspberry Pi 4
board, with the VPU clock divider being different. This was handled by
reading the divider register and adjusting the base clock rate
accordingly.
Recently a new GPU firmware version appeared that changed the clock rate
*again*, though this time at a higher level, so the VPU rate (and the
apparent PLLC parent clock) did not seem to change, judging by reading
the clock registers.
So rather than playing cat and mouse with the GPU firmware or going
further down the rabbit hole of exploring the whole clock tree, let's
just skip the baud rate programming altogether. This works because the
GPU firmware actually sets up and programs the debug UART already, so
we can just use it.

Pass 0 as the base clock rate to let the console driver skip the setup,
also remove the no longer needed clock code.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Change-Id: Ica88a3f3c9c11059357c1e6dd8f7a4d9b1f98fd7
1 parent cd50ffd commit 0eda713b9bd65222155900aacf3a67805351f88f
@Andre Przywara Andre Przywara authored on 12 Dec 2019
Manish Pandey committed on 30 Dec 2019
Showing 3 changed files
View
plat/rpi/rpi4/aarch64/plat_helpers.S
View
plat/rpi/rpi4/include/rpi_hw.h
View
plat/rpi/rpi4/rpi4_bl31_setup.c