arm-trusted-firmware/include/drivers/marvell
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
..
mochi include/drivers/marvell/mochi: add detection of secure mode 2021-02-11 09:43:18 +00:00
uart fix(plat/marvell/a3720/uart): do external reset during initialization 2021-12-02 17:38:02 +01:00
addr_map.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
amb_adec.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
ap807_clocks_init.h ble: ap807: Switch to PLL mode and update CPU frequency 2018-12-04 14:09:44 +02:00
aro.h ble: ap807: clean-up PLL configuration sequence 2020-06-07 00:06:03 +02:00
cache_llc.h Remove deprecated macro from TF-A code 2020-10-12 10:40:22 +00:00
ccu.h plat: marvell: ap807: implement workaround for errata-id 3033912 2020-08-11 12:21:30 +02:00
gwin.h Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
i2c.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
io_win.h Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
iob.h Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
mci.h plat: marvell: mci: use more meaningful name for mci link tuning 2020-06-07 00:06:03 +02:00
thermal.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00