powerpc/85xx: Fix up clock_freq property in CAN node of dts
authorBhaskar Upadhaya <Bhaskar.Upadhaya@freescale.com>
Fri, 4 Mar 2011 14:57:58 +0000 (20:27 +0530)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 29 Jul 2011 13:53:38 +0000 (08:53 -0500)
Fix up the device tree property associated with the Flexcan clock
frequency. This property is used to calculate the bit timing parameters
for Flexcan.

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

index c49f59b839ede53d74097a37535e17a9715ae5b2..c62b12fb1d1124750fbd263f69cbefe34f22ac5c 100644 (file)
@@ -635,4 +635,7 @@ void ft_cpu_setup(void *blob, bd_t *bd)
         */
        do_fixup_by_compat_u32(blob, "fsl,gianfar-ptp-timer",
                        "timer-frequency", gd->bus_clk/2, 1);
+
+       do_fixup_by_compat_u32(blob, "fsl,flexcan-v1.0",
+                       "clock_freq", gd->bus_clk, 1);
 }