]> git.sur5r.net Git - u-boot/commitdiff
mpc83xx: add "fsl,soc" and "fsl,immr" compatible fixups
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Mon, 24 Mar 2008 17:47:09 +0000 (20:47 +0300)
committerKim Phillips <kim.phillips@freescale.com>
Wed, 26 Mar 2008 00:16:48 +0000 (19:16 -0500)
device_type = "soc" is being deprecated, newer device trees will use
"fsl,soc" and/or "fsl,immr" for the soc nodes.

This patch also adds clock-frequency property for soc nodes (the same
value as bus-frequency).

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
cpu/mpc83xx/fdt.c

index d3fd78e9f5cff2a1495d1dbf0f50a0a8c7cfa4ca..b39f678f1a12edc93c1df343bf58e3748c11e3bd 100644 (file)
@@ -46,6 +46,14 @@ void ft_cpu_setup(void *blob, bd_t *bd)
                "clock-frequency", gd->core_clk, 1);
        do_fixup_by_prop_u32(blob, "device_type", "soc", 4,
                "bus-frequency", bd->bi_busfreq, 1);
+       do_fixup_by_compat_u32(blob, "fsl,soc",
+               "bus-frequency", bd->bi_busfreq, 1);
+       do_fixup_by_compat_u32(blob, "fsl,soc",
+               "clock-frequency", bd->bi_busfreq, 1);
+       do_fixup_by_compat_u32(blob, "fsl,immr",
+               "bus-frequency", bd->bi_busfreq, 1);
+       do_fixup_by_compat_u32(blob, "fsl,immr",
+               "clock-frequency", bd->bi_busfreq, 1);
 #ifdef CONFIG_QE
        ft_qe_setup(blob);
 #endif