DM serial drivers on PowerPC determine their clock frequency via the get_serial_clock function. This function is not Implemented yet for MPC83xx.
This patch Implements the function so that DM serial drivers work on MPC83xx. Signed-off-by: Mario Six <mario....@gdsys.cc> --- arch/powerpc/cpu/mpc83xx/speed.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/cpu/mpc83xx/speed.c b/arch/powerpc/cpu/mpc83xx/speed.c index 5498c19e25..5864a4fb57 100644 --- a/arch/powerpc/cpu/mpc83xx/speed.c +++ b/arch/powerpc/cpu/mpc83xx/speed.c @@ -515,6 +515,13 @@ ulong get_ddr_freq(ulong dummy) return gd->mem_clk; } +#ifdef CONFIG_DM_SERIAL +int get_serial_clock(void) +{ + return get_bus_freq(0); +} +#endif + static int do_clocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { char buf[32]; -- 2.11.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot