From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] .../board/fads/flash.c confuses me - give me a hint
Date: Wed, 12 Jan 2005 15:03:48 -0600 [thread overview]
Message-ID: <41E590B4.6080700@orkun.us> (raw)
In-Reply-To: <41E57BAA.3010906@web.de>
Peter Asemann wrote:
> Nghiem, Tien wrote:
>
>> Hi,
>>
>> You can you use the CFI driver in /u-boot-1.1.1/drivers/cfi_flash.c.
>> it's generic and working. I have used it with these boards:
>> IceCube(MPC5200) and EP8260 without modification.
>
>
> Ahh... thanks for the hint. But anyway... the u-boot readme says an own
> flash.c was a minimum requirement for a port. If the generic driver
> works, why do people write customs flash.c's at all? All modern flash
> chips seem to support CFI anyway. Is there an example for a port that
> "only" uses the cfi_flash.c so I can take a look on it?
I'll jump in. Initially, each board had its own flash.c. cfi_flash.c
came later and some board maintainers switched to it and others did not
update their implementation for some reason. If your board can be
supported by cfi_flash.c and works well, it is probably not a good idea
to develop a custom flash driver.
Also, some hardware may have mapped their flash in a way that is not
compatible with cfi_flash.c or there may be other board specific issues
so a custom flash.c might be preferable. For example we use cfi_flash.c
on csb272 and csb472 boards. On csb272 it works well. On csb472 after
"cp" command the flash is left in command mode and I have to issue a
"protect on" or "protect off" command to put it to read mode again (we
use physical sector protection). One of these days, I'll debug the
problem (or hopefully another user of csb472 will do) but it was
determined by manager that this is not a critical issue for us and I
better spend my time on more pressing matters.
next prev parent reply other threads:[~2005-01-12 21:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-12 18:16 [U-Boot-Users] .../board/fads/flash.c confuses me - give me a hint Nghiem, Tien
2005-01-12 19:34 ` Peter Asemann
2005-01-12 21:03 ` Tolunay Orkun [this message]
2005-01-12 22:29 ` Wolfgang Denk
2005-01-13 3:19 ` Tolunay Orkun
2005-01-12 21:06 ` Jon Loeliger
2005-01-12 22:19 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2005-01-13 8:24 Peter Pearse
2005-01-12 21:08 Nghiem, Tien
2005-01-12 14:43 Peter Asemann
2005-01-12 16:54 ` Wolfgang Denk
2005-01-12 17:21 ` Peter Asemann
2005-01-12 18:47 ` Wolfgang Denk
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=41E590B4.6080700@orkun.us \
--to=listmember@orkun.us \
--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