arm-trusted-firmware/include
Pali Rohár 0ee80f35a2 fix(plat/marvell/a3720/uart): do external reset during initialization
Sometimes when changing UART clock from TBG to XTAL, UART HW enters into
some broken state. It does not transit characters from TX FIFO anymore
and TX FIFO stays always empty. TX FIFO reset does not recover UART HW
from this broken state.

Experiments show that external reset can fix UART HW from this broken
state.

TF-A fatal error handler calls console_a3700_core_init() function to
initialize UART HW. This handler may be called anytime during CPU
runtime, also when kernel is running.

U-Boot or Linux kernel may change UART clock to TBG to achieve higher
baudrates. During initialization, console_a3700_core_init() resets UART
configuration to default settings, which means that it also changes
UART clock from TBG to XTAL.

Do an external reset of UART via North Bridge Peripheral reset register
to prevent this UART hangup.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I8990bce24d1a6fd8ccc47a2cd0a5ff932fcfcf14
2021-12-02 17:38:02 +01:00
..
arch feat(sme): enable SME functionality 2021-11-12 10:38:00 -06:00
bl1 Specify signed-ness of constants 2020-08-14 11:36:05 +00:00
bl2 BL2_AT_EL3: Enable pointer authentication support 2019-02-27 11:58:09 +00:00
bl2u Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
bl31 feat(rme): add ENABLE_RME build option and support for RMM image 2021-10-05 11:49:59 -05:00
bl32 spd: tlkd: support new TLK SMCs for RPMB service 2020-03-21 19:00:05 -07:00
common feat(libfdt): also allow changing base address 2021-11-04 15:58:34 +00:00
drivers fix(plat/marvell/a3720/uart): do external reset during initialization 2021-12-02 17:38:02 +01:00
dt-bindings feat(dt-bindings): add STM32MP1 TZC400 bindings 2021-09-07 09:14:05 +02:00
export feat(rme): add ENABLE_RME build option and support for RMM image 2021-10-05 11:49:59 -05:00
lib feat(sme): enable SME functionality 2021-11-12 10:38:00 -06:00
plat feat(plat/fvp): pass Event Log addr and size from BL1 to BL2 2021-10-12 17:53:48 +01:00
services Merge "Changing SMC code for transitioning Granule" into integration 2021-11-09 21:13:39 +01:00
tools_share feat(rme): add ENABLE_RME build option and support for RMM image 2021-10-05 11:49:59 -05:00