Searched hist:b9185c75f7ec2b600ebe0d49281e216a2456b764 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/drivers/marvell/uart/ |
| H A D | a3700_console.S | b9185c75f7ec2b600ebe0d49281e216a2456b764 Thu May 13 13:11:06 UTC 2021 Pali Rohár <pali@kernel.org> fix(plat/marvell/a3720/uart): fix configuring UART clock
When configuring the UART_BAUD_REG register, the function console_a3700_core_init() currently only changes the baud divisor field, leaving other fields to their previous value.
This is incorrect, because the baud divisor is computed with the assumption that the parent clock rate is 25 MHz, and since the other fields in this register configure the parent clock, which could have been changed by U-Boot or Linux.
Fix this function to also configure the other fields so that the UART parent clock is selected to be the xtal clock.
For example without this change TF-A prints only
ERROR: a3700_system_off needs to be implemented
followed by garbage after plat_crash_console_init() is called.
After applying this change instead of garbage it also print crash info:
PANIC at PC : 0x0000000004023800
Signed-off-by: Pali Rohár <pali@kernel.org> Change-Id: I72f338355cc60d939b8bb978d9c7fdd576416b81
|