From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Query: Does Uboot support CFI flash driver forM29W128GH
Date: Thu, 29 Oct 2009 09:21:43 +0200 [thread overview]
Message-ID: <200910290821.43454.sr@denx.de> (raw)
In-Reply-To: <b9c1f3ac0910282324k39d7aa51j56d5caf55a869a41@mail.gmail.com>
Hi Prakash,
On Thursday 29 October 2009 07:24:25 prakash bedge wrote:
> Can you please send me the patch details to fixup the CFI query related bug
> for M29W128GH?
I did send you the patch in my last mail. You just need to add this code to a
board specific file, e.g. board/board_name/board_name.c.
> In the code for each header file there is a macro named
> CONFIG_FLASH_CFI_DRIVER defined in each board specific header file in
> folder /include/configs. But I am not seeing any #ifdef for this macro in
> code. Where this macro is being checked in the code?
It's in the makefile (drivers/mdt/Makefile).
> Is there any documentation giving details on how the CFI flash
> driver executes in U-Boot?
It's really simple, just copy the config options and change some
values like CONFIG_SYS_FLASH_BANKS_LIST, CONFIG_SYS_MAX_FLASH_BANKS
according to your hardware specs. Take a look at zeus for example:
#define CONFIG_SYS_FLASH_CFI /* The flash is CFI compatible */
#define CONFIG_FLASH_CFI_DRIVER /* Use common CFI driver */
#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
#define CONFIG_SYS_MAX_FLASH_SECT 512 /* max number of sectors on one chip */
#define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 /* use buffered writes (20x faster) */
#define CONFIG_SYS_FLASH_PROTECTION 1 /* use hardware flash protection */
#define CONFIG_SYS_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */
#define CONFIG_SYS_FLASH_QUIET_TEST 1 /* don't warn upon unknown flash */
This shouldn't be too hard.
Cheers,
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
next prev parent reply other threads:[~2009-10-29 7:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <b9c1f3ac0910270208o212e2574x9892fc9b25399f19@mail.gmail.com>
2009-10-27 9:09 ` [U-Boot] Query: Does Uboot support CFI flash driver for M29W128GH prakash bedge
2009-10-27 10:21 ` [U-Boot] Query: Does Uboot support CFI flash driver forM29W128GH Sreedhar.a
2009-10-27 13:13 ` prakash bedge
2009-10-27 14:34 ` Stefan Roese
2009-10-28 6:23 ` prakash bedge
2009-10-28 8:08 ` Stefan Roese
2009-10-29 6:24 ` prakash bedge
2009-10-29 7:21 ` Stefan Roese [this message]
2009-10-29 10:19 ` prakash bedge
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=200910290821.43454.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