]> git.sur5r.net Git - u-boot/commitdiff
armv8/fsl-lsch3: Add fdt-fixup for clock frequency of the DUART nodes
authorBhupesh Sharma <bhupesh.sharma@freescale.com>
Tue, 6 Jan 2015 21:18:44 +0000 (13:18 -0800)
committerYork Sun <yorksun@freescale.com>
Tue, 24 Feb 2015 21:08:53 +0000 (13:08 -0800)
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@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv8/fsl-lsch3/fdt.c

index 2287e268a2ea2be1bd38cf7f2275c8a868729be7..7eb9b6aa4bb8c2a952ccddc433c9cec50d54a35c 100644 (file)
@@ -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
 }