[U-Boot] [PATCH v1 06/24] armv8/fsl-lsch3: Add fdt-fixup for clock frequency of the DUART nodes
York Sun
yorksun at freescale.com
Tue Jan 6 22:18:44 CET 2015
From: Bhupesh Sharma <bhupesh.sharma at freescale.com>
This patch adds the fdt-fixup logic for the clock frequency of the
NS16550A related device tree nodes.
Signed-off-by: Bhupesh Sharma <bhupesh.sharma at freescale.com>
---
arch/arm/cpu/armv8/fsl-lsch3/fdt.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/cpu/armv8/fsl-lsch3/fdt.c b/arch/arm/cpu/armv8/fsl-lsch3/fdt.c
index 2287e26..7eb9b6a 100644
--- a/arch/arm/cpu/armv8/fsl-lsch3/fdt.c
+++ b/arch/arm/cpu/armv8/fsl-lsch3/fdt.c
@@ -60,4 +60,9 @@ void ft_cpu_setup(void *blob, bd_t *bd)
#ifdef CONFIG_MP
ft_fixup_cpu(blob);
#endif
+
+#ifdef CONFIG_SYS_NS16550
+ do_fixup_by_compat_u32(blob, "ns16550",
+ "clock-frequency", CONFIG_SYS_NS16550_CLK, 1);
+#endif
}
--
1.7.9.5
More information about the U-Boot
mailing list