arm-trusted-firmware/plat/rpi/common
Andre Przywara 9cc3fa1b8a rpi: console: Autodetect Mini-UART vs. PL011 configuration
The Raspberry Pi has two different UART devices pin-muxed to GPIO 14&15:
One ARM PL011 one and the 8250 compatible "Mini-UART".
A dtoverlay parameter in config.txt will tell the firmware to switch
between the two: it will setup the right clocks and will configure the
pinmuxes accordingly.

To autodetect the user's choice, we read the pinmux register and check
its setting: ALT5 (0x2) means the Mini-UART is used, ALT0 (0x4) points
to the PL011.
Based on that we select the UART driver to initialise.

This will allow console output in any case.

Change-Id: I620d3ce68de6c6576599f2a405636020e1fd1376
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2020-03-17 13:44:55 +00:00
..
include rpi3: console: Use same "clock-less" setup scheme as RPi4 2020-03-17 12:44:09 +00:00
rpi3_common.c rpi: console: Autodetect Mini-UART vs. PL011 configuration 2020-03-17 13:44:55 +00:00
rpi3_image_load.c rpi3: Move shared rpi3 files into common directory 2019-09-13 16:54:21 +01:00
rpi3_io_storage.c rpi3: Move shared rpi3 files into common directory 2019-09-13 16:54:21 +01:00
rpi3_pm.c rpi3/4: Add support for offlining CPUs 2019-12-09 13:08:20 +01:00
rpi3_rotpk.S rpi3: Move shared rpi3 files into common directory 2019-09-13 16:54:21 +01:00
rpi3_stack_protector.c rpi3: Move shared rpi3 files into common directory 2019-09-13 16:54:21 +01:00
rpi3_topology.c rpi3: Move shared rpi3 files into common directory 2019-09-13 16:54:21 +01:00
rpi3_trusted_boot.c rpi3: Move shared rpi3 files into common directory 2019-09-13 16:54:21 +01:00