From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Dynamically sized CFI flash.
Date: Wed, 11 Mar 2009 08:05:28 +0100 [thread overview]
Message-ID: <49B762B8.7060104@denx.de> (raw)
In-Reply-To: <9e4733910903101745p54ad6960v4d2aea87d8213636@mail.gmail.com>
Hello Jon,
Jon Smirl wrote:
> I'm porting support for a Phytec PCM030 (mpc5200) from 1.2 up to
> current head so that I can get it merged. These boards can be
> populated with a variety of flash chips, there is code to compute the
> size of these chips and fix up bank_base[] in cfi_flash.c In u-boot
> 1.3.4 bank_base[] was rewritten. What is the correct way to do these
> calculations?
>
I suggest to activate CONFIG_SYS_UPDATE_FLASH_SIZE
Then you get the update_flash_size (int flash_size) function
called after the cfi driver counted the flash size.
examples:
[hs at pollux u-boot]$ grep -lr update_flash_size .
./board/jupiter/jupiter.c
./board/tqc/tqm8272/tqm8272.c
./lib_ppc/board.c
[hs at pollux u-boot]$
bye
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2009-03-11 7:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-11 0:45 [U-Boot] Dynamically sized CFI flash Jon Smirl
2009-03-11 7:05 ` Heiko Schocher [this message]
2009-03-11 17:01 ` Jon Smirl
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=49B762B8.7060104@denx.de \
--to=hs@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.