Skip to contentSkip to conversation

powerpc/mpc85xx: set clock-frequency for T4/B4 clockgen node

PATCH New Yuantian.Tang at freescale.com 1 participant 1 message Apr 16, 2013 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 powerpc/mpc85xx: set clock-frequency for T4/B4 clockgen node

From: Tang Yuantian <[email protected]>

For T4/B4, the clockgen node compatible string is updated to version 2.0. Add clock-frequency setting for this new version.

---
v3:
- update the compatible string from *-2 to *-2.0
v2:
- fix the codestyle

 arch/powerpc/cpu/mpc85xx/fdt.c | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/cpu/mpc85xx/fdt.c +2 -0
index 24eb978..b1aafac 100644
@@ -663,6 +663,8 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 #ifdef CONFIG_FSL_CORENET
 	do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-1.0",
 		"clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
+	do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-2.0",
+			"clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
 #endif
 
 	fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
Signature · 1 line
1.8.0