On Tue, 15 Apr 2025 at 09:30, Bruno Leite <brunosampaiole...@gmail.com> wrote:
> From: Bruno Leite <br...@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 <br...@prevas.dk> > Reviewed-by: Peter Robinson <pbrobin...@gmail.com> Tested-by: Peter Robinson <pbrobin...@gmail.com> > > --- > > 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@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 > >