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-Users] " Configuring Flash on PPC405ep board"
Date: Fri, 23 Sep 2005 12:42:48 +0200	[thread overview]
Message-ID: <200509231242.48968.sr@denx.de> (raw)
In-Reply-To: <6894.61.95.208.3.1127470197.squirrel@61.95.208.3>

Hi Nagi,

On Friday 23 September 2005 12:09, nreddy at netenrich.com wrote:
> I need to know how to configure 8MB Flash on PPC405ep board.
> I already have 4MB flash on PPC405ep board working fine .
> I am using u-boot as my bootloader.

That's good. If not, your mail would be pretty wrong here in this list! ;-)

> Can anybody tell me what are the registers to be configured at Processor
> side(i am new to this register settings) or memory controller side.

If you are lucky, you "only" have to change the EBC (external bus controller) 
setup for the corresponding CS (chip select). Please see e.g. below some 
lines from the bubinga (AMCC 405EP eval board) config file 
(include/configs/bubinga.h):

/* Memory Bank 0 (Flash/SRAM) initialization                                    
*/
#define CFG_EBC_PB0AP           0x04006000
#define CFG_EBC_PB0CR           0xFFF18000  /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit  
*/

To change the size of this CS0 setup, you need to change the BAS field and the 
BS field. E.g. to something like this:

#define CFG_EBC_PB0CR           0xFF8E8000  /* BAS=0xFF8,BS=8MB,BU=R/W,BW=8bit  

But I would suggest that you take a look at the 405EP user's manual to check 
yourself. It's not that complicated.

Now you (hopefully) have the CS setup correctly, but you also have to 
configure/change your flash driver to support this new flash. Do you use the 
common CFI driver? Or a board specific version?

> Please tell me the steps that i need to follow to write my own dirver(i
> may take existing driver as reference).

Best regards,
Stefan

  parent reply	other threads:[~2005-09-23 10:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-23 10:09 [U-Boot-Users] " Configuring Flash on PPC405ep board" nreddy at netenrich.com
2005-09-23 10:39 ` Bharathi Subramanian
2005-09-23 10:42 ` Stefan Roese [this message]
2005-09-23 11:37   ` [U-Boot-Users] ' Configuring Flash on PPC405ep board' nreddy at netenrich.com
2005-09-23 15:25 ` [U-Boot-Users] " Configuring Flash on PPC405ep board" Matthias Fuchs

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