* [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals
@ 2006-11-06 21:00 Grant Likely
2006-11-06 21:20 ` Wolfgang Denk
2006-11-30 12:05 ` Stefan Roese
0 siblings, 2 replies; 8+ messages in thread
From: Grant Likely @ 2006-11-06 21:00 UTC (permalink / raw)
To: u-boot
The soc node of the mpc52xx needs to be loaded with the IPB bus frequency,
not the XLB frequency.
This patch depends on the previous patches for MPC52xx device tree support
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
---
cpu/mpc5xxx/cpu.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c
index 20e6735..813aa79 100644
--- a/cpu/mpc5xxx/cpu.c
+++ b/cpu/mpc5xxx/cpu.c
@@ -112,21 +112,20 @@ void
ft_cpu_setup(void *blob, bd_t *bd)
{
u32 *p;
- ulong clock;
int len;
- clock = bd->bi_busfreq;
+ /* Core XLB bus frequency */
p = ft_get_prop(blob, "/cpus/" OF_CPU "/bus-frequency", &len);
if (p != NULL)
- *p = cpu_to_be32(clock);
+ *p = cpu_to_be32(bd->bi_busfreq);
+ /* SOC peripherals use the IPB bus frequency */
p = ft_get_prop(blob, "/" OF_SOC "/bus-frequency", &len);
if (p != NULL)
- *p = cpu_to_be32(clock);
+ *p = cpu_to_be32(bd->bi_ipbfreq);
p = ft_get_prop(blob, "/" OF_SOC "/ethernet at 3000/mac-address", &len);
if (p != NULL)
memcpy(p, bd->bi_enetaddr, 6);
-
}
#endif
--
1.4.3.rc2.g0503
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals
2006-11-06 21:00 [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals Grant Likely
@ 2006-11-06 21:20 ` Wolfgang Denk
2006-11-06 21:36 ` Grant Likely
2006-11-16 8:45 ` [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals Sylvain Munaut
2006-11-30 12:05 ` Stefan Roese
1 sibling, 2 replies; 8+ messages in thread
From: Wolfgang Denk @ 2006-11-06 21:20 UTC (permalink / raw)
To: u-boot
In message <1162846858442-git-send-email-grant.likely@secretlab.ca> you wrote:
> The soc node of the mpc52xx needs to be loaded with the IPB bus frequency,
> not the XLB frequency.
...
> p = ft_get_prop(blob, "/cpus/" OF_CPU "/bus-frequency", &len);
> if (p != NULL)
> - *p = cpu_to_be32(clock);
> + *p = cpu_to_be32(bd->bi_busfreq);
"/bus-frequency" ==> bi_busfreq. OK.
> p = ft_get_prop(blob, "/" OF_SOC "/bus-frequency", &len);
> if (p != NULL)
> - *p = cpu_to_be32(clock);
> + *p = cpu_to_be32(bd->bi_ipbfreq);
"/bus-frequency" ==> bi_ipbfreq. ???
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You see but you do not observe.
Sir Arthur Conan Doyle, in "The Memoirs of Sherlock Holmes"
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals
2006-11-06 21:20 ` Wolfgang Denk
@ 2006-11-06 21:36 ` Grant Likely
2006-11-06 22:35 ` Wolfgang Denk
2006-11-16 8:45 ` [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals Sylvain Munaut
1 sibling, 1 reply; 8+ messages in thread
From: Grant Likely @ 2006-11-06 21:36 UTC (permalink / raw)
To: u-boot
On 11/6/06, Wolfgang Denk <wd@denx.de> wrote:
> In message <1162846858442-git-send-email-grant.likely@secretlab.ca> you wrote:
> > The soc node of the mpc52xx needs to be loaded with the IPB bus frequency,
> > not the XLB frequency.
> ...
>
> > p = ft_get_prop(blob, "/cpus/" OF_CPU "/bus-frequency", &len);
> > if (p != NULL)
> > - *p = cpu_to_be32(clock);
> > + *p = cpu_to_be32(bd->bi_busfreq);
>
> "/bus-frequency" ==> bi_busfreq. OK.
/cpus/mpc5200 at 0/bus-frequency ==> bi_busfreq
>
> > p = ft_get_prop(blob, "/" OF_SOC "/bus-frequency", &len);
> > if (p != NULL)
> > - *p = cpu_to_be32(clock);
> > + *p = cpu_to_be32(bd->bi_ipbfreq);
>
> "/bus-frequency" ==> bi_ipbfreq. ???
/soc5200 at f0000000/bus-frequency ==> bi_ipbfreq
They are different busses, but 'bus-frequency' is kind of a standard name
BTW, I've got ACKs from jdl on two of the previous patches. Are you
cool to commit them?
Thanks,
g.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals
2006-11-06 21:36 ` Grant Likely
@ 2006-11-06 22:35 ` Wolfgang Denk
2006-11-06 22:36 ` Grant Likely
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2006-11-06 22:35 UTC (permalink / raw)
To: u-boot
In message <528646bc0611061336g15e977e9qc585555751671d00@mail.gmail.com> you wrote:
>
> /cpus/mpc5200 at 0/bus-frequency ==> bi_busfreq
...
> /soc5200 at f0000000/bus-frequency ==> bi_ipbfreq
>
> They are different busses, but 'bus-frequency' is kind of a standard name
I see. Sorry, by brain has been a bit dried up from all this bss
discussion.
> BTW, I've got ACKs from jdl on two of the previous patches. Are you
> cool to commit them?
As soon as I find a little time.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Given a choice between two theories, take the one which is funnier.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals
2006-11-06 22:35 ` Wolfgang Denk
@ 2006-11-06 22:36 ` Grant Likely
2006-11-07 13:27 ` [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals / OF patches Jerry Van Baren
0 siblings, 1 reply; 8+ messages in thread
From: Grant Likely @ 2006-11-06 22:36 UTC (permalink / raw)
To: u-boot
On 11/6/06, Wolfgang Denk <wd@denx.de> wrote:
>
> I see. Sorry, by brain has been a bit dried up from all this bss
> discussion.
:)
>
> > BTW, I've got ACKs from jdl on two of the previous patches. Are you
> > cool to commit them?
>
> As soon as I find a little time.
Cool, thx
g.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals / OF patches
2006-11-06 22:36 ` Grant Likely
@ 2006-11-07 13:27 ` Jerry Van Baren
0 siblings, 0 replies; 8+ messages in thread
From: Jerry Van Baren @ 2006-11-07 13:27 UTC (permalink / raw)
To: u-boot
Grant Likely wrote:
> On 11/6/06, Wolfgang Denk <wd@denx.de> wrote:
>> I see. Sorry, by brain has been a bit dried up from all this bss
>> discussion.
>
> :)
>
>>> BTW, I've got ACKs from jdl on two of the previous patches. Are you
>>> cool to commit them?
>> As soon as I find a little time.
>
> Cool, thx
>
> g.
Word of Warning: I pulled Grant's changes into my working branch and had
a conflict on cmd_bootm.c because I removed two commented out lines (the
commented out lines were debug calls to ft_dump_blob), but Grant
reworked that area. Those two deleted lines were the only changes I
made to cmd_bootm.c so my changes to cmd_bootm.c can be discarded.
I have not gotten around to regenerating my oftdump command patch to
remove my changes to cmd_bootm.c, I presume that is the best approach.
gvb
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals
2006-11-06 21:20 ` Wolfgang Denk
2006-11-06 21:36 ` Grant Likely
@ 2006-11-16 8:45 ` Sylvain Munaut
1 sibling, 0 replies; 8+ messages in thread
From: Sylvain Munaut @ 2006-11-16 8:45 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> In message <1162846858442-git-send-email-grant.likely@secretlab.ca> you wrote:
>
>> The soc node of the mpc52xx needs to be loaded with the IPB bus frequency,
>> not the XLB frequency.
>>
> ...
>
>
>> p = ft_get_prop(blob, "/cpus/" OF_CPU "/bus-frequency", &len);
>> if (p != NULL)
>> - *p = cpu_to_be32(clock);
>> + *p = cpu_to_be32(bd->bi_busfreq);
>>
>
> "/bus-frequency" ==> bi_busfreq. OK.
>
>
>> p = ft_get_prop(blob, "/" OF_SOC "/bus-frequency", &len);
>> if (p != NULL)
>> - *p = cpu_to_be32(clock);
>> + *p = cpu_to_be32(bd->bi_ipbfreq);
>>
>
> "/bus-frequency" ==> bi_ipbfreq. ???
>
FWIW,
Looks good to me and it's a requirement for the new arch/powerpc that's
coming soon.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals
2006-11-06 21:00 [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals Grant Likely
2006-11-06 21:20 ` Wolfgang Denk
@ 2006-11-30 12:05 ` Stefan Roese
1 sibling, 0 replies; 8+ messages in thread
From: Stefan Roese @ 2006-11-30 12:05 UTC (permalink / raw)
To: u-boot
On Monday 06 November 2006 22:00, Grant Likely wrote:
> The soc node of the mpc52xx needs to be loaded with the IPB bus frequency,
> not the XLB frequency.
>
> This patch depends on the previous patches for MPC52xx device tree support
Applied. Thanks.
Best regards,
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-11-30 12:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-06 21:00 [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals Grant Likely
2006-11-06 21:20 ` Wolfgang Denk
2006-11-06 21:36 ` Grant Likely
2006-11-06 22:35 ` Wolfgang Denk
2006-11-06 22:36 ` Grant Likely
2006-11-07 13:27 ` [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals / OF patches Jerry Van Baren
2006-11-16 8:45 ` [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals Sylvain Munaut
2006-11-30 12:05 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox