summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2008-03-24 20:47:09 +0300
committerKim Phillips <kim.phillips@freescale.com>2008-03-25 19:16:48 -0500
commit7fa9cbb00dc83fcf175042b6f20c2c9bce9a15f4 (patch)
tree92eb13e0b4ff7835223b23e9baecad5423e891a5
parent507e2d79c91441a0bb2cd3d0c31c8bfe3f8cec07 (diff)
downloadu-boot-imx-7fa9cbb00dc83fcf175042b6f20c2c9bce9a15f4.zip
u-boot-imx-7fa9cbb00dc83fcf175042b6f20c2c9bce9a15f4.tar.gz
u-boot-imx-7fa9cbb00dc83fcf175042b6f20c2c9bce9a15f4.tar.bz2
mpc83xx: add "fsl,soc" and "fsl,immr" compatible fixups
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>
-rw-r--r--cpu/mpc83xx/fdt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpu/mpc83xx/fdt.c b/cpu/mpc83xx/fdt.c
index d3fd78e..b39f678 100644
--- a/cpu/mpc83xx/fdt.c
+++ b/cpu/mpc83xx/fdt.c
@@ -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