From: Grant Likely <grant.likely@secretlab.ca>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals
Date: Mon, 6 Nov 2006 14:00:58 -0700 [thread overview]
Message-ID: <1162846858442-git-send-email-grant.likely@secretlab.ca> (raw)
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
next reply other threads:[~2006-11-06 21:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-06 21:00 Grant Likely [this message]
2006-11-06 21:20 ` [U-Boot-Users] [PATCH] [MPC52xx] Use IPB bus frequency for SOC peripherals 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1162846858442-git-send-email-grant.likely@secretlab.ca \
--to=grant.likely@secretlab.ca \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox