[U-Boot] [PATCH 11/51] powerpc: mpc83xx: Implement get_serial_clock()
Mario Six
mario.six at gdsys.cc
Fri Jul 14 12:54:57 UTC 2017
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.six at 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
More information about the U-Boot
mailing list