summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-12-18 08:44:51 +0100
committerStefan Roese <sr@denx.de>2007-12-27 19:35:34 +0100
commit328a340392a5df9aaf00792be989df73e750859e (patch)
treec0c8488b66096dfc8f6927454f8e55a64e87c96a /cpu
parent7812bc4a2e2436ebbc0ce5b4e99c1dfc2e77eb5b (diff)
downloadu-boot-imx-328a340392a5df9aaf00792be989df73e750859e.zip
u-boot-imx-328a340392a5df9aaf00792be989df73e750859e.tar.gz
u-boot-imx-328a340392a5df9aaf00792be989df73e750859e.tar.bz2
ppc4xx: fdt: Cleanup setup of cpu node setup
Now the cpu node setup ("timebase-frequency" and "clock-frequency") is without using the absolute path to the cpu node. This makes it possible to use this U-Boot version with both versions of cpu-node naming "cpu@0" and the former "PowerPC,440EPx@0". Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/ppc4xx/fdt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpu/ppc4xx/fdt.c b/cpu/ppc4xx/fdt.c
index f351b8b..afcb974 100644
--- a/cpu/ppc4xx/fdt.c
+++ b/cpu/ppc4xx/fdt.c
@@ -36,13 +36,14 @@ DECLARE_GLOBAL_DATA_PTR;
void ft_cpu_setup(void *blob, bd_t *bd)
{
- char *cpu_path = "/cpus/" OF_CPU;
sys_info_t sys_info;
get_sys_info(&sys_info);
- do_fixup_by_path_u32(blob, cpu_path, "timebase-frequency", bd->bi_intfreq, 1);
- do_fixup_by_path_u32(blob, cpu_path, "clock-frequency", bd->bi_intfreq, 1);
+ do_fixup_by_prop_u32(blob, "device_type", "cpu", 4, "timebase-frequency",
+ bd->bi_intfreq, 1);
+ do_fixup_by_prop_u32(blob, "device_type", "cpu", 4, "clock-frequency",
+ bd->bi_intfreq, 1);
do_fixup_by_path_u32(blob, "/plb", "clock-frequency", sys_info.freqPLB, 1);
do_fixup_by_path_u32(blob, "/plb/opb", "clock-frequency", sys_info.freqOPB, 1);
do_fixup_by_path_u32(blob, "/plb/opb/ebc", "clock-frequency",