From: Heiko Schocher <heiko.schocher@invitel.hu>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] changes for support of IDS8247 board
Date: Tue, 07 Aug 2007 09:03:40 +0200 [thread overview]
Message-ID: <1186470220.7344.13.camel@Zeus.EmbLux> (raw)
In-Reply-To: <mailman.89349.1186147556.7786.u-boot-users@lists.sourceforge.net>
Hello Sergej,
Sergej Stepanov wrote:
[...]
> #endif /* CFG_CMD_NAND */
> +
> +#if defined(CONFIG_OF_FLAT_TREE) && defined(CONFIG_OF_BOARD_SETUP)
> +void
> +ft_board_setup(void *blob, bd_t *bd)
> +{
> + u32 *p;
> + int len;
> + ulong clock;
> + /* do what ft_cpu_setup does */
> +
> + clock = bd->bi_busfreq;
> + p = ft_get_prop(blob, "/cpus/" OF_CPU "/bus-frequency", &len);
> + if (p != NULL)
> + *p = cpu_to_be32(clock);
This is valid for all MPC8260 processors. I think you should move this
to: cpu/mpc8260/cpu.c and make a ft_cpu_setup ():
#if defined(CONFIG_OF_FLAT_TREE)
void ft_cpu_setup (void *blob, bd_t *bd)
{
u32 *p;
ulong clock;
int len;
clock = bd->bi_busfreq;
p = ft_get_prop (blob, "/cpus/" OF_CPU "/bus-frequency", &len);
if (p != NULL)
*p = cpu_to_be32 (clock);
}
#endif
and call this function in ft_board_setup ().
Best regards
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next parent reply other threads:[~2007-08-07 7:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.89349.1186147556.7786.u-boot-users@lists.sourceforge.net>
2007-08-07 7:03 ` Heiko Schocher [this message]
2007-08-03 12:26 [U-Boot-Users] [PATCH] changes for support of IDS8247 board Sergej Stepanov
2007-08-03 20:11 ` Wolfgang Denk
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=1186470220.7344.13.camel@Zeus.EmbLux \
--to=heiko.schocher@invitel.hu \
--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