aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2021-09-01 11:59:57 +0100
committerAndre Przywara <andre.przywara@arm.com>2021-11-04 15:58:34 +0000
commit422b44fb56db7ca8b1a2f9f706733d7d4c2fdeb1 (patch)
tree678ecd9034a3f3153a2866ca7a7e4e939c186ee9 /lib
parentd850169c9c233c4bc413d8319196557b54683688 (diff)
downloadarm-trusted-firmware-422b44fb56db7ca8b1a2f9f706733d7d4c2fdeb1.tar.gz
feat(arm_fpga): write UART baud base clock frequency into DTB
Since we now autodetect the actual system frequency, which is also used as the base for the UART baudrate generation, we should update the value currently hard-coded in the DT. Otherwise Linux will reprogram the divider using a potentially wrong base rate, which breaks the UART output. Find the DT node referenced by the UART node as the clock rate, and set the "clock-frequency" property in that node to the detected system frequency. This will let Linux reprogram the divider to the same value, preserving the actual baudrate. Change-Id: Ib5a936849f2198577b86509f032751d5386ed2f8 Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions