All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] NAND flash driver for Samsung K9F1G08
Date: Wed, 1 Oct 2008 08:07:04 +0200	[thread overview]
Message-ID: <200810010807.04500.sr@denx.de> (raw)
In-Reply-To: <40a670230809302231x557209d8te667f66427b3795a@mail.gmail.com>

On Wednesday 01 October 2008, Roman Mashak wrote:
> > Flash ID is in $(UBOOT)/include/linux/mtd/nand_ids.h
> > Seems this chip is not CFI compliant (at least datasheet says nothing
> > of it), so the use of CFI driver falls away.
>
> After some investigations I see that $(uboot)/drivers/mtd/nand/nand.c
> is compiled in with CONFIG_CMD_NAND defined and CFG_NAND_LEGACY
> undefined -- these two macros are mutually exclusive.

Correct. The legacy NAND support is, as the name implies, outdated and should 
*not* be used anymore.

> Why do then some 
> platforms define both of them, for instance
> $(uboot)/include/configs/at91rm9200dk.h  and what is the proper use of
> these macros?

Defining both is definitely broken and should be fixed. I think now its really 
time to completely remove the legacy NAND support. It has been dragged along 
for quite some time.

> To make things more clear: NAND flash Samsung K9F1G08U is defined in
> both $(uboot)/drivers/mtd/nand/nand_ids.c and
> $(uboot)/include/linux/mtd/nand_ids.h, latter is included with
> CFG_NAND_LEGACY defined. It confuses me, I don't understand is my
> flash legacy device or rather new one? :-)

IIRC then your NAND chips should be supported in the U-Boot NAND driver 
without any changes.

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
=====================================================================

  reply	other threads:[~2008-10-01  6:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01  1:40 [U-Boot] NAND flash driver for Samsung K9F1G08 Roman Mashak
2008-10-01  5:31 ` Roman Mashak
2008-10-01  6:07   ` Stefan Roese [this message]
2008-10-01  8:11     ` Roman Mashak
2008-10-01  9:13       ` Wolfgang Denk
2008-10-02  1:04         ` Roman Mashak
2008-10-02 16:11           ` Scott Wood
2008-10-04  3:59             ` Roman Mashak
2008-10-01 16:17     ` [U-Boot] NAND legacy flash removal Scott Wood

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=200810010807.04500.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.