From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] SDRAM controller initialization code
Date: Wed, 8 Oct 2008 07:17:02 +0200 [thread overview]
Message-ID: <200810080717.02544.sr@denx.de> (raw)
In-Reply-To: <3624b2b40810071234o4ce4677fk2888de82031b0c65@mail.gmail.com>
On Tuesday 07 October 2008, Muzammil Ahmed wrote:
> I'm using Yosemite board (PPC440EP) for my development with U-Boot firmware
> version 1.3.4.
>
> Where in source code, I can find code regarding 'initializaiton of SDRAM
> controller'?
Its the function initdram() in board/amcc/yosemite/yosemite.c. Please note
that I'm not referring to v1.3.4 but to the latest version.
Also I recommend not to use this code for a custom board but to use the code
available in cpu/ppc4xx/sdram.c. A good example is the p4p440 board support.
Depending on the SDRAM configuration you have you only need to configure this
(or similar) in your board config header:
#define CONFIG_SDRAM_BANK0 1 /* init onboard DDR SDRAM bank 0*/
#define CFG_SDRAM_TABLE { \
{(256 << 20), 13, 0x000C4001}, /* 256MB mode 3, 13x10(4)*/ \
{(64 << 20), 12, 0x00082001}} /* 64MB mode 2, 12x9(4) */
> Also, code regarding 'initialization of EBC'?
The EBC init code is in cpu/ppc4xx/cpu_init.c: cpu_init_f(). But you don't
need to change this code for your board but only define the correct
CFG_EBC_PBxAB/CR values in your board config header.
Best regards,
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
=====================================================================
prev parent reply other threads:[~2008-10-08 5:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 19:34 [U-Boot] SDRAM controller initialization code Muzammil Ahmed
2008-10-08 5:17 ` 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=200810080717.02544.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.