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 7/8] APM82xxx: Add bluestone board support
Date: Tue, 31 Aug 2010 05:20:16 +0200	[thread overview]
Message-ID: <201008310520.16624.sr@denx.de> (raw)
In-Reply-To: <29152ad51fc69edb8c20fb1e39ab9a06@mail.gmail.com>

Hi Marri,

(please reply to the mailing list as well)

On Monday 30 August 2010 19:31:32 Tirumala Marri wrote:
> > > +int board_early_init_r(void)
> > > +{
> > > +	u32 bootdevice;
> > > +
> > > +	/*
> > > +	 * Clear potential errors resulting from auto-calibration.
> > > +	 * If not done, then we could get an interrupt later on when
> > > +	 * exceptions are enabled.
> > > +	 */
> > > +	set_mcsr(get_mcsr());
> > > +
> > > +	/* Reconfigure EBC here */
> > > +	bootdevice = bootdevice_selected();
> > > +	reconfigure_EBC(bootdevice);
> > 
> > Please explain why the EBC needs to be reconfigured at this stage.
> 
> [Marri]Once we are running out of ram, we are trying to change from what
> Initial bootstraps set up the EBC banks. Let me review if it is
> significantly
> Changing anything. Otherwise I will get rid of the function.

Why don't you do it as usually done. Just define the EBC register settings in 
your board header and they will get automatically written to the EBC registers 
in arch/powerpc/cpu/ppc4xx/cpu.c, cpu_init_f():

Defines in bluestone.h like this:

/* Memory Bank 0 (NOR-flash) */
#define CONFIG_SYS_EBC_PB0AP	(EBC_BXAP_BME_DISABLED		|	\
				 EBC_BXAP_TWT_ENCODE(16)	|	\
				 EBC_BXAP_BCE_DISABLE		|	\
				 EBC_BXAP_BCT_2TRANS		|	\
				 EBC_BXAP_CSN_ENCODE(1)		|	\
				 EBC_BXAP_OEN_ENCODE(1)		|	\
				 EBC_BXAP_WBN_ENCODE(1)		|	\
				 EBC_BXAP_WBF_ENCODE(1)		|	\
				 EBC_BXAP_TH_ENCODE(7)		|	\
				 EBC_BXAP_RE_DISABLED		|	\
				 EBC_BXAP_SOR_DELAYED		|	\
				 EBC_BXAP_BEM_WRITEONLY		|	\
				 EBC_BXAP_PEN_DISABLED)
#define CONFIG_SYS_EBC_PB0CR	
(EBC_BXCR_BAS_ENCODE(CONFIG_SYS_BOOT_BASE_ADDR) | \
				 EBC_BXCR_BS_16MB		|	\
				 EBC_BXCR_BU_RW			|	\
				 EBC_BXCR_BW_16BIT)

<snip>

> > > +#define CONFIG_SDRAM_INFO_EEPROM_ADDR	0x54	/* Board specific
> 
> */
> 
> > > +#define CONFIG_SDRAM16BIT_OFFSET	0x20	/* Board specific */
> > 
> > Those two defines are not used in your patches. Please remove.
> 
> [Marri]  The variable "CONFIG_SDRAM_INFO_EEPROM_ADDR" is used.
> Where " CONFIG_SDRAM16BIT_OFFSET " is not used any where.

I can't find CONFIG_SDRAM_INFO_EEPROM_ADDR either. Where is it used?
 
<snip>

> > Please fix and resubmit. Thanks.
> > 
> > Cheers,
> > Stefan
> 
> I will do the fixes and send it again.

Thanks.

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

  parent reply	other threads:[~2010-08-31  3:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 21:06 [U-Boot] [PATCH 7/8] APM82xxx: Add bluestone board support tmarri at apm.com
2010-08-27  9:29 ` Stefan Roese
2010-08-27 18:36   ` Feng Kan
2010-08-29  8:56     ` Wolfgang Denk
     [not found]   ` <29152ad51fc69edb8c20fb1e39ab9a06@mail.gmail.com>
2010-08-31  3:20     ` Stefan Roese [this message]
2010-08-29  8:56 ` Wolfgang Denk
2010-08-30 18:45   ` Tirumala Marri

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