Patchwork [U-Boot,2/2] powerpc/85xx: Fix up clock_freq property in CAN node of dts

login
register
mail settings
Submitter Kumar Gala
Date March 7, 2011, 4:17 a.m.
Message ID <1299471441-26690-2-git-send-email-galak@kernel.crashing.org>
Download mbox | patch
Permalink /patch/85664/
State Accepted
Commit 65bb8b060a873fa4f5188f2951081f6011259614
Delegated to: Kumar Gala
Headers show

Comments

Kumar Gala - March 7, 2011, 4:17 a.m.
From: Bhaskar Upadhaya <Bhaskar.Upadhaya@freescale.com>

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 |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Kumar Gala - July 27, 2011, 2:57 a.m.
On Mar 6, 2011, at 10:17 PM, Kumar Gala wrote:

> From: Bhaskar Upadhaya <Bhaskar.Upadhaya@freescale.com>
> 
> 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 |    3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)

applied to 85xx

- k

Patch

diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c
index 642f6c5..f4d2f60 100644
--- a/arch/powerpc/cpu/mpc85xx/fdt.c
+++ b/arch/powerpc/cpu/mpc85xx/fdt.c
@@ -495,4 +495,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);
 }