public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] ppc4xx: Add T3COPR board support (PPC460GT based)
Date: Tue, 29 Jun 2010 11:49:15 +0200	[thread overview]
Message-ID: <201006291149.15736.sr@denx.de> (raw)
In-Reply-To: <20100629075200.5AD4B1524EC@gemini.denx.de>

Hi Wolfgang,

On Tuesday 29 June 2010 09:52:00 Wolfgang Denk wrote:
> > This patch adds support for the T3CORP board, based on the
> > AppliedMicro (AMCC) PPC460GT.
> 
> General question: should we rename "amcc" into "apm" ?

Personally, I don't like the idea to change all existing references from AMCC 
to APM. But you are right. Its better to use AppliedMicro or APM from now on. 
I'll switch to APM in the next patch version.
 
> ..
> 
> > +int board_early_init_r(void)
> > +{
> 
> ..
> 
> > +	/* Add TLB entry for 0xfn00.0000 -> 0x4.cn00.0000 */
> > +	program_tlb(CONFIG_SYS_FLASH_BASE_PHYS, CONFIG_SYS_FLASH_BASE,
> > +			CONFIG_SYS_FLASH_SIZE, TLB_WORD2_I_ENABLE);
> > +
> > +	/*
> > +	 * Now accessing of the whole 64Mbytes of NOR FLASH at virtual address
> > +	 * 0xfc00.0000 is possible
> > +	 */
> 
> What about the configuration with 128 MiB NOR flash?

Oops. This is a copy-n-paste error. There is no 128 MiB configuration for the 
T3CORP board. I'll fix the comment and the code in the next patch version.

> Would it not be
> more flexible to use something like
> 
> 	program_tlb(CONFIG_SYS_FLASH_END_PHYS-flash_info[0].size,
> 		-flash_info[0].size,
> 		flash_info[0].size, TLB_WORD2_I_ENABLE);
> 
> with
> 	CONFIG_SYS_FLASH_END_PHYS_H = 0x4
> and	CONFIG_SYS_FLASH_END_PHYS_L = 0xD0000000
> 
> ?

Not necessary with a fixed 64MiB board.
 
> BTW: Please use "flash" (globally) instead of FLASH - "flash" is not
> an abbreviation.

OK.
 
> > +int board_pcie_last(void)
> > +{
> > +	/*
> > +	 * Only PCIe0 for now, PCIe1 hangs on this boards
> 
> "on this board" or "on these boards"

OK. Thanks for the review.

Cheers,
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

      reply	other threads:[~2010-06-29  9:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29  7:24 [U-Boot] [PATCH v2] ppc4xx: Add T3COPR board support (PPC460GT based) Stefan Roese
2010-06-29  7:52 ` Wolfgang Denk
2010-06-29  9:49   ` Stefan Roese [this message]

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=201006291149.15736.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