summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhupesh Sharma <bhupesh.sharma@freescale.com>2015-01-06 13:18:44 -0800
committerYork Sun <yorksun@freescale.com>2015-02-24 13:08:53 -0800
commit912cc40f767807fe87320b939cf4ce14aa01c1c4 (patch)
tree84f6060edc9acd4292fdec50429a65ca280228b0
parent32da3398b5199ae469ced423cfd7157934140e81 (diff)
downloadu-boot-imx-912cc40f767807fe87320b939cf4ce14aa01c1c4.zip
u-boot-imx-912cc40f767807fe87320b939cf4ce14aa01c1c4.tar.gz
u-boot-imx-912cc40f767807fe87320b939cf4ce14aa01c1c4.tar.bz2
armv8/fsl-lsch3: Add fdt-fixup for clock frequency of the DUART nodes
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>
-rw-r--r--arch/arm/cpu/armv8/fsl-lsch3/fdt.c5
1 files changed, 5 insertions, 0 deletions
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
}