Searched hist:"422 b44fb56db7ca8b1a2f9f706733d7d4c2fdeb1" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/plat/arm/board/arm_fpga/ |
| H A D | fpga_bl31_setup.c | 422b44fb56db7ca8b1a2f9f706733d7d4c2fdeb1 Wed Sep 01 10:59:57 UTC 2021 Andre Przywara <andre.przywara@arm.com> 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>
|