Skip to contentSkip to conversation

armv8/fsl-layerscape: fdt: avoid incorrect fixing with CONFIG_SYS_CLK_FREQ

PATCH New Yangbo Lu 2 participants 2 messages Apr 10, 2017 – Apr 18, 2017 Arm (32-bit)

lore
Share & tools
lore

Yangbo Lu

author
#0 lore raw

PATCH v2 1/1 armv8/fsl-layerscape: fdt: avoid incorrect fixing with CONFIG_SYS_CLK_FREQ

Current sysclk fixing would fix all clocks with 'fixed-clock' compatible. This patch is to fix sysclk by path to avoid any incorrect fixing.

---
 arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/fdt.c +2 -2
index 762a95b..05c4577 100644
@@ -373,8 +373,8 @@ 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);
+	do_fixup_by_path_u32(blob, "/sysclk", "clock-frequency",
+			     CONFIG_SYS_CLK_FREQ, 1);
 
 #ifdef CONFIG_PCI
 	ft_pci_setup(blob, bd);
Signature · 1 line
2.1.0.27.g96db324
#1 lore raw

PATCH v2 1/1 armv8/fsl-layerscape: fdt: avoid incorrect fixing with CONFIG_SYS_CLK_FREQ

Quoted 5 lines · Yangbo Lu

Current sysclk fixing would fix all clocks with 'fixed-clock' compatible. This patch is to fix sysclk by path to avoid any incorrect fixing.

---

Applied to u-boot-fsl-qoriq master, awaiting upstream. Thanks.

York