[PATCH 1/1] rpi: copy over uart clock-frequency in DT
Bruno Leite
brunosampaioleite at gmail.com
Tue Apr 15 10:30:14 CEST 2025
From: Bruno Leite <brule at prevas.dk>
rpi5 firmware sets uart_clk clock-frequency in
the firmware and patches it to the DT, copy it
over when loading a new DT.
Signed-off-by: Bruno Leite <brule at prevas.dk>
---
board/raspberrypi/rpi/rpi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 70d3c35499b..5c84c324c71 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -602,6 +602,9 @@ void update_fdt_from_fw(void *fdt, void *fw_fdt)
/* Bluetooth device address as provided by the firmware */
copy_property(fdt, fw_fdt, "/soc/serial at 7e201000/bluetooth", "local-bd-address");
+
+ /* copy uart clk as provided by the firmware */
+ copy_property(fdt, fw_fdt, "/clocks/clk-uart", "clock-frequency");
}
int ft_board_setup(void *blob, struct bd_info *bd)
--
2.45.2
More information about the U-Boot
mailing list