From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] arm/kirkwood: Add Keymile SUEN3 support
Date: Thu, 9 Jul 2009 09:02:29 +0200 [thread overview]
Message-ID: <200907090902.29405.sr@denx.de> (raw)
In-Reply-To: <20090708185358.0FFB2832E416@gemini.denx.de>
Hi Wolfgang,
On Wednesday 08 July 2009 20:53:58 Wolfgang Denk wrote:
> > diff --git a/MAKEALL b/MAKEALL
> > index 41f1445..6c80694 100755
> > --- a/MAKEALL
> > +++ b/MAKEALL
> > @@ -524,6 +524,7 @@ LIST_ARM9=" \
> > scb9328 \
> > smdk2400 \
> > smdk2410 \
> > + suen3 \
> > trab \
> > VCMA9 \
> > versatile \
>
> This is the ARM9 list. Are you sure the board belongs there?
It's using the U-Boot ARM926EJS infrastructure (ARMv5TE). Which the board in
this list seem to be using as well. So yes, I guess the board belongs here.
> > diff --git a/Makefile b/Makefile
> > index 2a06440..3afc4ba 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -2925,6 +2925,9 @@ smdk2400_config : unconfig
> > smdk2410_config : unconfig
> > @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
> >
> > +suen3_config: unconfig
> > + @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) keymile kirkwood
> > +
>
> This is the ARM9xxx section. Are you sure the board belongs there?
Yes.
> > diff --git a/board/keymile/suen3/suen3.c b/board/keymile/suen3/suen3.c
> > new file mode 100644
> > index 0000000..231745f
> > --- /dev/null
> > +++ b/board/keymile/suen3/suen3.c
> > @@ -0,0 +1,127 @@
>
> ..
>
> > +int dram_init(void)
> > +{
> > + int i;
> > +
> > + for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
> > + gd->bd->bi_dram[i].start = kw_sdram_bar(i);
> > + gd->bd->bi_dram[i].size = kw_sdram_bs(i);
> > + }
> > + return 0;
> > +}
>
> Maybe we can have get_ram_size() support with auto-sizing and testing
> here?
OK, I'll will change it.
> > diff --git a/include/configs/suen3.h b/include/configs/suen3.h
> > new file mode 100644
> > index 0000000..1b971e0
> > --- /dev/null
> > +++ b/include/configs/suen3.h
>
> ..
>
> > +#define CONFIG_EXTRA_ENV_SETTINGS \
> > + "load=tftp 400000 suen3/u-boot.bin\0" \
> > + "update=nand erase 0 60000;nand write 400000 0 60000\0" \
> > + "upd=run load update\0" \
> > + "mtdparts=orion_nand:512k(uboot),512k at 512k(env)," \
> > + "2m at 1m(kernel),13m at 3m(rootfs)\0" \
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ..
>
> > +#define MTDPARTS_DEFAULT "mtdparts=orion_nand:512k(u-boot)," \
> > + "256k(env)," \
> > + "2m(kernel)," \
> > + "16m(rootfs)," \
> > + "32m(fs)," \
> > + "-(ubifs)"
>
> This seems inconsistent to me. How about defining MTDPARTS_DEFAULT
> first, and then just inserting the already defined value, so you can
> be sure that this doesn;t happen again?
Yes, good catch. Will change. Thanks for spotting.
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
=====================================================================
next prev parent reply other threads:[~2009-07-09 7:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 15:46 [U-Boot] [PATCH 4/4] arm/kirkwood: Add Keymile SUEN3 support Stefan Roese
2009-07-08 15:59 ` Stefan Roese
2009-07-08 18:53 ` Wolfgang Denk
2009-07-09 7:02 ` Stefan Roese [this message]
2009-07-09 7:46 ` Heiko Schocher
-- strict thread matches above, loose matches on Subject: below --
2009-07-08 17:48 Prafulla Wadaskar
2009-07-08 18:38 ` Wolfgang Denk
2009-07-09 7:15 ` Stefan Roese
2009-07-09 7:21 ` Dieter Kiermaier
2009-07-09 7:24 ` Stefan Roese
2009-07-09 8:02 ` Prafulla Wadaskar
2009-07-09 8:49 ` Stefan Roese
2009-07-09 8:52 ` Prafulla Wadaskar
2009-07-12 15:41 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-13 10:24 ` Prafulla Wadaskar
2009-07-13 11:23 ` Wolfgang Denk
2009-07-14 3:20 ` Prafulla Wadaskar
2009-07-14 4:49 ` Stefan Roese
2009-07-14 5:46 ` 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=200907090902.29405.sr@denx.de \
--to=sr@denx.de \
--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