public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC
Date: Thu, 16 Jul 2009 14:45:15 +0200	[thread overview]
Message-ID: <4A5F20DB.2000009@eukrea.com> (raw)
In-Reply-To: <20090716122936.08360832E416@gemini.denx.de>

Dear Wolfgang Denk,

Wolfgang Denk a ?crit :
> In message <1247735589-15527-1-git-send-email-eric@eukrea.com> you wrote:
>> CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR
>> flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100
>> Ethernet PHY in RMII mode.
> ...
>> +int dram_init(void)
>> +{
>> +	gd->bd->bi_dram[0].start = PHYS_SDRAM;
>> +	gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE;
>> +	return 0;
>> +}
> 
> How about using get_ram_size() for auto-sizing and testing?
> 
the RAM needs to be properly initialized in low level before being able 
to test it so its geometry (rom/columns) and timings must be known 
before being able to detect its size using get_ram_size.
I'm not sure it's possible to use a generic geometry/timings there else 
u-boot may never relocate.
How would you do this ?

>> diff --git a/cpu/arm926ejs/at91/lowlevel_init.S b/cpu/arm926ejs/at91/lowlevel_init.S
>> index 5ed518c..538d3e6 100644
>> --- a/cpu/arm926ejs/at91/lowlevel_init.S
>> +++ b/cpu/arm926ejs/at91/lowlevel_init.S
>> @@ -194,7 +194,7 @@ SMRDATA:
>>  	.word CONFIG_SYS_PIOD_PPUDR_VAL
>>  	.word (AT91_BASE_SYS + AT91_PIOD + PIO_ASR)
>>  	.word CONFIG_SYS_PIOD_PPUDR_VAL
>> -#elif defined(CONFIG_AT91SAM9261)
>> +#elif defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9260)
> 
> Please swap to keep sorted:
> 
> #elif defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261)
> 
OK will do.

Thanks
Eric

  reply	other threads:[~2009-07-16 12:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-16  9:13 [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC Eric Benard
2009-07-16 12:29 ` Wolfgang Denk
2009-07-16 12:45   ` Eric Bénard [this message]
2009-07-16 14:22     ` Wolfgang Denk
2009-07-16 16:02       ` Eric Bénard
2009-07-16 16:41         ` Alessandro Rubini
2009-07-16 18:22           ` Eric Bénard
2009-07-17 21:24           ` Wolfgang Denk
2009-07-18 21:10             ` Alessandro Rubini
2009-07-17 21:21         ` 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=4A5F20DB.2000009@eukrea.com \
    --to=eric@eukrea.com \
    --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