From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] configuring U-Boot for custom board based on at91rm9200ek
Date: Tue, 18 Dec 2012 17:41:23 +0100 [thread overview]
Message-ID: <50D09CB3.1050308@gmail.com> (raw)
In-Reply-To: <CAC8UkhTayqBFrRJ8uE740vCe0jmO4dgkExy9s-AFRAOGwcEFDw@mail.gmail.com>
Dear arivendu bhardwaj,
On 18.12.2012 14:40, arivendu bhardwaj wrote:
> Hi
> i need to configure u-boot-2012.10, for my custom board, that is very close
> to at91rm9200ek, except that i have 32MB NOR flash, and 32MB SDRAM.
> what i fail to understand is the following config parameters:
>
>
> #define CONFIG_SYS_PIOC_ASR_VAL
> #define CONFIG_SYS_PIOC_BSR_VAL
> //#define CONFIG_SYS_PIOC_PDR_VAL
> #define CONFIG_SYS_PIOC_PDR_VAL
These PIOC values configure the PIO_ASR, PIO_BSR, PIO_PDR for bank 'C',
please look up the correct values in your SoC datasheet.
> #define CONFIG_SYS_EBI_CSA_VAL
This one configures the EBI_CSA register.
> #define CONFIG_SYS_SDRC_CR_VAL
> #define CONFIG_SYS_SDRAM CONFIG_SYS_SDRAM_BASE /* address
> of the SDRAM */
> #define CONFIG_SYS_SDRAM1 (CONFIG_SYS_SDRAM_BASE+0x80)
> #define CONFIG_SYS_SDRAM_VAL
> #define CONFIG_SYS_SDRC_MR_VAL
> #define CONFIG_SYS_SDRC_MR_VAL1
> #define CONFIG_SYS_SDRC_MR_VAL2
> #define CONFIG_SYS_SDRC_MR_VAL3
> #define CONFIG_SYS_SDRC_TR_VAL
These SDRC values are a bit trickier. They define the required
initialization process of the SDRAM interface of this SoC. You will need
to write some registers in your SoC and then write some data to the
SDRAM, see the datasheet of SoC for correct sequence and to understand
why they are written down that way.
To enable 32MiB NOR flash you will need to setup the correct
PHYS_FLASH_SIZE and all the CONFIG_SYS_*_FLASH_* variables. Changing the
EBI may also be required and maybe also PIOC settings to have enough
address lines.
To enable 32MiB SDRAM you will need to setup CONFIG_SYS_SDRAM_SIZE and
change the CONFIG_SYS_SDRC_CR_VAL and CONFIG_SYS_SDRC_TR_VAL to your
needs. Please look up the correct values in your respective datasheets.
Side note: at91rm9200ek still has 32MiB RAM
Best regards
Andreas Bie?mann
prev parent reply other threads:[~2012-12-18 16:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 13:40 [U-Boot] configuring U-Boot for custom board based on at91rm9200ek arivendu bhardwaj
2012-12-18 16:41 ` Andreas Bießmann [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=50D09CB3.1050308@gmail.com \
--to=andreas.devel@googlemail.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