Patchwork [U-Boot] powerpc/mpc85xx: set clock-frequency for T4/B4 clockgen node

login
register
mail settings
Submitter tang yuantian
Date March 1, 2013, 9:24 a.m.
Message ID <1362129874-29689-1-git-send-email-Yuantian.Tang@freescale.com>
Download mbox | patch
Permalink /patch/224265/
State Accepted, archived
Delegated to: Andy Fleming
Headers show

Comments

tang yuantian - March 1, 2013, 9:24 a.m.
From: Tang Yuantian <Yuantian.Tang@freescale.com>

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

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
---
 arch/powerpc/cpu/mpc85xx/fdt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c
index 24eb978..cda6ad6 100644
--- a/arch/powerpc/cpu/mpc85xx/fdt.c
+++ b/arch/powerpc/cpu/mpc85xx/fdt.c
@@ -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",
+		"clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
 #endif
 
 	fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);