All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] nand id format in /nandflash.c
Date: Sun, 7 Jun 2015 12:34:02 +0300	[thread overview]
Message-ID: <20150607093402.GG2671@tarshish> (raw)
In-Reply-To: <B03A893ADFE80748942D13AFAF28451924E7512BF8@ITSVLEX06.it.maxim-ic.internal>

Hi Ted,

On Sun, Jun 07, 2015 at 02:00:54AM -0700, Ted Salazar wrote:
> Not sure why this is not commented in the source code by Atmel but can one 
> of you tell me what the nand id format is in /nandflash.c. You guys must do 
> this all the time. I know the first four hex numbers are the manufacturer ID 
> and the device ID from the data sheet but what is the format for the other 
> hex values?

This file is not part of Buildroot. In case you refer to driver/nandflash.c 
from the at91bootstrap project, please direct your question to at91bootstrap 
developers as listed at the end of the README file.

Two short answers below.

> For example,
> 
> static struct nand_chip nand_ids[] = {
>                 /* Micron MT29F2G16AAB 256MB */
>                 {0x2cca, 0x800, 0x20000, 0x800, 0x40, 0x1},
>                 /* Micron MT29F2G08AAC 256MB  */
>                 {0x2cda, 0x800, 0x20000, 0x800, 0x40, 0x0},
> ...
> 
> What does the 2nd (0x800), 3rd (0x20000) , 4th (0x800), 5th (0x40), and 6th 
> (0x1) hex numbers represent since I need to move to a different memory 
> manufacturer and will need to create a new nandflash option.

See the definition of 'struct nand_chip' at include/nand.h.

> Micron nandflash data sheet link below:
> http://media.digikey.com/pdf/Data%20Sheets/Micron%20Technology%20Inc%20PDFs/MT29F2G%2808,16%29AAD,ABD.pdf

This NAND flash chip is ONFI compliant. Hard coding its parameters in the 
nand_ids array should not be needed.

Hope this helps,
baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2015-06-07  9:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-07  9:00 [Buildroot] nand id format in /nandflash.c Ted Salazar
2015-06-07  9:34 ` Baruch Siach [this message]
2015-06-08 16:59   ` Ted Salazar
2015-06-08 21:19     ` Thomas Petazzoni

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=20150607093402.GG2671@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /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.