* [U-Boot-Users] [PATCH] ppc4xx fixup ebc clock in FDT for 405GP/EP
@ 2008-04-23 7:12 Markus Brunner
2008-04-24 14:56 ` Stefan Roese
0 siblings, 1 reply; 2+ messages in thread
From: Markus Brunner @ 2008-04-23 7:12 UTC (permalink / raw)
To: u-boot
On ppc405EP and ppc405GP (at least) the ebc is directly attached to the plb and not to the opb.
This patch will try to fixup /plb/ebc if /plb/opb/ebc doesn't exist.
Signed-off-by: Markus Brunner <super.firetwister@gmail.com>
---
diff --git a/cpu/ppc4xx/fdt.c b/cpu/ppc4xx/fdt.c
index afcb974..da27d0e 100644
--- a/cpu/ppc4xx/fdt.c
+++ b/cpu/ppc4xx/fdt.c
@@ -46,8 +46,14 @@ void ft_cpu_setup(void *blob, bd_t *bd)
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",
- sys_info.freqEBC, 1);
+
+ if ( fdt_path_offset(blob, "/plb/opb/ebc") >= 0 )
+ do_fixup_by_path_u32(blob, "/plb/opb/ebc",
+ "clock-frequency", sys_info.freqEBC, 1);
+ else
+ do_fixup_by_path_u32(blob, "/plb/ebc",
+ "clock-frequency", sys_info.freqEBC, 1);
+
fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
/*
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot-Users] [PATCH] ppc4xx fixup ebc clock in FDT for 405GP/EP
2008-04-23 7:12 [U-Boot-Users] [PATCH] ppc4xx fixup ebc clock in FDT for 405GP/EP Markus Brunner
@ 2008-04-24 14:56 ` Stefan Roese
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2008-04-24 14:56 UTC (permalink / raw)
To: u-boot
On Wednesday 23 April 2008, Markus Brunner wrote:
> On ppc405EP and ppc405GP (at least) the ebc is directly attached to the plb
> and not to the opb. This patch will try to fixup /plb/ebc if /plb/opb/ebc
> doesn't exist.
This patch does not apply anymore. Please resubmit against the latest
u-boot-ppc4xx repository.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-24 14:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-23 7:12 [U-Boot-Users] [PATCH] ppc4xx fixup ebc clock in FDT for 405GP/EP Markus Brunner
2008-04-24 14:56 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox