From: Milton Miller <miltonm@bga.com>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: ppcdev <linuxppc-dev@ozlabs.org>
Subject: Re: [patch 14/14] Bamboo zImage wrapper
Date: Wed, 18 Jul 2007 12:21:51 -0500 [thread overview]
Message-ID: <6e26faa3f30dddc5fcf6294a1ecb3a78@bga.com> (raw)
Sorry for the broken reply but the list is broken.
On Wed Jul 18 04:16:01 EST 2007, Josh Boyer wrote:
> Add a bootwrapper for Bamboo
bamboo is what, an evaluation board? for which processor?
> Signed-off-by: Josh Boyer <jwboyer at linux.vnet.ibm.com>
>
> ---
> arch/powerpc/boot/44x.h | 1
> arch/powerpc/boot/Makefile | 5 -
> arch/powerpc/boot/bamboo.c | 126
> ++++++++++++++++++++++++++++++++++++
> arch/powerpc/boot/dcr.h | 11 +++
> arch/powerpc/boot/treeboot-bamboo.c | 27 +++++++
> 5 files changed, 168 insertions(+), 2 deletions(-)
>
> --- linux-2.6.orig/arch/powerpc/boot/Makefile
> +++ linux-2.6/arch/powerpc/boot/Makefile
> @@ -143,6 +143,7 @@ image-$(CONFIG_PPC_83xx) += cuImage.83x
> image-$(CONFIG_PPC_85xx) += cuImage.85xx
> image-$(CONFIG_EBONY) += treeImage.ebony
> cuImage.ebony
> image-$(CONFIG_WALNUT) += treeImage.walnut
> +image-$(CONFIG_BAMBOO) += treeImage.bamboo
> endif
You are only making one target.
> +
> +static void bamboo_fixups(void)
> +{
> + unsigned long sysclk = 33333333;
> + ibm440ep_fixup_clocks(sysclk, 11059200);
> + ibm4xx_fixup_memsize();
> + ibm4xx_reset_eth((u32 *)0xef600e00, (u32 *)0xef600f00);
> +}
This seems to have board specific information ..
> +
> +void bamboo_init(void)
> +{
> + platform_ops.fixups = bamboo_fixups;
> + platform_ops.exit = ibm44x_dbcr_reset;
> + ft_init(_dtb_start, 0, 32);
> + serial_console_init();
> +}
and so is this (by transitivity).
> --- /dev/null
> +++ linux-2.6/arch/powerpc/boot/treeboot-bamboo.c
> @@ -0,0 +1,27 @@
... [copyright header]
> +#include "ops.h"
> +#include "stdio.h"
> +#include "44x.h"
> +
> +extern char _end[];
> +
> +BSS_STACK(4096);
> +
> +void platform_init(void)
> +{
> + unsigned long end_of_ram = 0x8000000;
> + unsigned long avail_ram = end_of_ram - (unsigned long)_end;
> +
> + simple_alloc_init(_end, avail_ram, 32, 64);
> + bamboo_init();
> +}
Is there some reason they should not all be merged into this one
platform file?
I can understand wanting the dcr fixups as a library, but lets wait to
do the file splits until there are actually users. Its also easier to
see what's going to called when all the platform ops are filled in at
one spot, not spread over multiple files.
milton
next reply other threads:[~2007-07-18 18:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-18 17:21 Milton Miller [this message]
2007-07-18 17:51 ` [patch 14/14] Bamboo zImage wrapper Josh Boyer
2007-07-18 20:11 ` Josh Boyer
-- strict thread matches above, loose matches on Subject: below --
2007-07-17 18:15 [patch 00/14] Current 4xx patch series Josh Boyer
2007-07-17 18:16 ` [patch 14/14] Bamboo zImage wrapper Josh Boyer
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=6e26faa3f30dddc5fcf6294a1ecb3a78@bga.com \
--to=miltonm@bga.com \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.