armv8: fsl-lsch3: fixup SYSCLK frequency in device tree
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Thu, 24 Dec 2015 11:55:06 +0000 (17:25 +0530)
committerYork Sun <york.sun@nxp.com>
Mon, 25 Jan 2016 16:24:15 +0000 (08:24 -0800)
SYSCLK frequency is dependent on on-board switch settings. It may
vary as per requirement. boot-loader is aware of board switch
configurations.

So Fixup Linux device tree from boot-loader.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
CC: Mingkai Hu <Mingkai.Hu@freescale.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/fdt.c

index eafdd71a840f715a4d020adba4d51a58a6c9ad25..4e4861d107a0a11f14ca3a4dda73ad551adac6e7 100644 (file)
@@ -190,6 +190,9 @@ void ft_cpu_setup(void *blob, bd_t *bd)
                               "clock-frequency", CONFIG_SYS_NS16550_CLK, 1);
 #endif
 
+       do_fixup_by_compat_u32(blob, "fixed-clock",
+                              "clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
+
 #ifdef CONFIG_PCI
        ft_pci_setup(blob, bd);
 #endif