]> git.sur5r.net Git - u-boot/commitdiff
powerpc/p4080: Add setting of clock-frequency for clockgen node
authorKumar Gala <galak@kernel.crashing.org>
Sat, 10 Jul 2010 11:55:41 +0000 (06:55 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 20 Jul 2010 09:41:18 +0000 (04:41 -0500)
On QorIQ CoreNet based devices we have a global clocking block.  We want
to keep track of SYSCLK frequency as it is what is used to derive all
other frequencies in the SoC

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/fdt.c

index b4354f90db5b17fa49c07c10a6aaad5356a0ca2c..932466e883d32834131dfed258c5a56085e8c065 100644 (file)
@@ -403,6 +403,11 @@ void ft_cpu_setup(void *blob, bd_t *bd)
                "clock-frequency", bd->bi_brgfreq, 1);
 #endif
 
+#ifdef CONFIG_FSL_CORENET
+       do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-1.0",
+               "clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
+#endif
+
        fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
 
 #ifdef CONFIG_MP