Hi Kumar,
We want more comments on this patch to speed up the pushing-to-source progress.
Thanks.

-----Original Message-----
From: Jia Hongtao-B38951 
Sent: Tuesday, November 15, 2011 3:04 PM
To: u-boot@lists.denx.de
Cc: Li Yang-R58472; Jia Hongtao-B38951
Subject: [u-boot][PATCH] uboot/flexcan: fixup flexcan clock-frequency

Make the fixup matchable with dts and kernel.
Update the compatible from "fsl,flexcan-v1.0" to "fsl,p1010-flexcan" and
Change the "clock-freq" property to "clock-frequency".
We also change flexcan frequency from CCB-clock to CCB-clock/2 according
to P1010 spec.

We now keep the old interfaces to make previous kernel work. They should
be removed in the future.

Signed-off-by: Jia Hongtao <b38...@freescale.com>
Signed-off-by: Li Yang <le...@freescale.com>
---
 arch/powerpc/cpu/mpc85xx/fdt.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c
index 9d31568..a53a31d 100644
--- a/arch/powerpc/cpu/mpc85xx/fdt.c
+++ b/arch/powerpc/cpu/mpc85xx/fdt.c
@@ -660,8 +660,19 @@ 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);
 
+       /*
+        * clock-freq should change to clock-frequency and
+        * flexcan-v1.0 should change to p1010-flexcan respectively
+        * in the future.
+        */
        do_fixup_by_compat_u32(blob, "fsl,flexcan-v1.0",
-                       "clock_freq", gd->bus_clk, 1);
+                       "clock_freq", gd->bus_clk/2, 1);
+
+       do_fixup_by_compat_u32(blob, "fsl,flexcan-v1.0",
+                       "clock-frequency", gd->bus_clk/2, 1);
+
+       do_fixup_by_compat_u32(blob, "fsl,p1010-flexcan",
+                       "clock-frequency", gd->bus_clk/2, 1);
 
        fdt_fixup_usb(blob);
 }
-- 
1.7.5.1


_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to