All of lore.kernel.org
 help / color / mirror / Atom feed
From: triloksoni <trilok.soni@emuzed.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] TRAB: Flash Am29LV320DB confusion
Date: Tue, 25 Jan 2005 16:30:24 +0530	[thread overview]
Message-ID: <41F626C8.5070906@emuzed.com> (raw)

Hi All,

I was just going through the "flash.c" code of TRAB board. Which is having
AM29LV320D (2M x 16bit)  flash chip. We are also going to use the same chip
for our new board in 16bit mode.

Confusion is in flash_init(...) code. As per the sector architecture 
mentioned in
the datasheet : Eight 8 Kbytes sector and Sixty Three 64Kbytes sectors. 
Then why this code has
mentioned remaining sector size as 128Kbytes :

board/trab/flash.c:
--------------snip-------------------------
                        switch (info->flash_id & FLASH_TYPEMASK) {
                        case (FLASH_AM320B & FLASH_TYPEMASK):
                        case (FLASH_MXLV320B & FLASH_TYPEMASK):
                                /* Boot sector type: 8 x 8 + N x 128 kB */
                               /* Why N x 128 kB?? It should be N x 64 
kB. */
                                flashbase += (j < 8) ? 0x4000 : 0x20000;
                                break;
--------------snip-------------------------

Am I missing something ???

---Trilok Soni

             reply	other threads:[~2005-01-25 11:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-25 11:00 triloksoni [this message]
2005-01-25 12:01 ` [U-Boot-Users] TRAB: Flash Am29LV320DB confusion Wolfgang Denk
2005-01-26 13:48   ` Peter Asemann
2005-01-26 14:30     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2005-01-25 11:14 Bharath

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=41F626C8.5070906@emuzed.com \
    --to=trilok.soni@emuzed.com \
    --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.