projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
450acb0
)
MIPS: OCTEON: Set proper UART clock in internal device trees.
author
David Daney
<
[email protected]
>
Wed, 19 Jun 2013 20:37:26 +0000
(20:37 +0000)
committer
Ralf Baechle
<
[email protected]
>
Mon, 1 Jul 2013 13:10:54 +0000
(15:10 +0200)
Following patch to use generic 8250 drivers will need proper clock
information. So when using the internal device tree, populate the
"clock-frequency" property with the correct value.
Signed-off-by: David Daney <
[email protected]
>
Cc:
[email protected]
Cc: Jamie Iles <
[email protected]
>
Cc: Greg Kroah-Hartman <
[email protected]
>
Cc: Jiri Slaby <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/5515/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/cavium-octeon/octeon-platform.c
patch
|
blob
|
history
diff --git
a/arch/mips/cavium-octeon/octeon-platform.c
b/arch/mips/cavium-octeon/octeon-platform.c
index 389512e2abd6198d7ce16851f6ef7f0c6b36c127..7b746e7bf7a1aad7672986bb8b986b7a18716a12 100644
(file)
--- a/
arch/mips/cavium-octeon/octeon-platform.c
+++ b/
arch/mips/cavium-octeon/octeon-platform.c
@@
-490,8
+490,15
@@
int __init octeon_prune_device_tree(void)
if (alias_prop) {
uart = fdt_path_offset(initial_boot_params, alias_prop);
- if (uart_mask & (1 << i))
+ if (uart_mask & (1 << i)) {
+ __be32 f;
+
+ f = cpu_to_be32(octeon_get_io_clock_rate());
+ fdt_setprop_inplace(initial_boot_params,
+ uart, "clock-frequency",
+ &f, sizeof(f));
continue;
+ }
pr_debug("Deleting uart%d\n", i);
fdt_nop_node(initial_boot_params, uart);
fdt_nop_property(initial_boot_params, aliases,