projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a06e665
)
powerpc: mpc83xx: Implement get_serial_clock()
author
Mario Six
<mario.six@gdsys.cc>
Mon, 21 Jan 2019 08:18:05 +0000
(09:18 +0100)
committer
Mario Six
<mario.six@gdsys.cc>
Tue, 21 May 2019 05:52:33 +0000
(07:52 +0200)
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@gdsys.cc>
arch/powerpc/cpu/mpc83xx/speed.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc83xx/speed.c
b/arch/powerpc/cpu/mpc83xx/speed.c
index e870a23103b68c62ce8bee4e9631a2fa642c70c5..e118a10fa8b439565e21f3c0a24bde062d659ce1 100644
(file)
--- a/
arch/powerpc/cpu/mpc83xx/speed.c
+++ b/
arch/powerpc/cpu/mpc83xx/speed.c
@@
-516,6
+516,11
@@
ulong get_ddr_freq(ulong dummy)
return gd->mem_clk;
}
+int get_serial_clock(void)
+{
+ return get_bus_freq(0);
+}
+
static int do_clocks(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
char buf[32];