From: Prabhakar Kushwaha Date: Thu, 24 Dec 2015 11:55:06 +0000 (+0530) Subject: armv8: fsl-lsch3: fixup SYSCLK frequency in device tree X-Git-Tag: v2016.03-rc1~45^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f14e257c472c895499c186b602861e90f2656b5;p=platform%2Fkernel%2Fu-boot.git armv8: fsl-lsch3: fixup SYSCLK frequency in device tree 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 CC: Mingkai Hu Reviewed-by: York Sun --- diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c index eafdd71..4e4861d 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c @@ -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