mpc8260: Fill in brg's clock-frequency in device tree.
authorScott Wood <scottwood@freescale.com>
Thu, 2 Apr 2009 21:10:36 +0000 (16:10 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 4 Apr 2009 21:29:46 +0000 (23:29 +0200)
Signed-off-by: Scott Wood <scottwood@freescale.com>
cpu/mpc8260/cpu.c

index 1b034cd5747cf2f154e7a22fa3d2105f752e5309..d4622ca0cde4257ef445b2372378302a3c17e2cb 100644 (file)
@@ -311,6 +311,9 @@ void ft_cpu_setup (void *blob, bd_t *bd)
        fdt_fixup_ethernet(blob);
 #endif
 
+       do_fixup_by_compat_u32(blob, "fsl,cpm2-brg",
+                              "clock-frequency", bd->bi_brgfreq, 1);
+
        do_fixup_by_path_u32(blob, cpu_path, "bus-frequency", bd->bi_busfreq, 1);
        do_fixup_by_path_u32(blob, cpu_path, "timebase-frequency", OF_TBCLK, 1);
        do_fixup_by_path_u32(blob, cpu_path, "clock-frequency", bd->bi_intfreq, 1);