public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-BOOT] cfi_flash.c fails to program NOR Flash SST39LF040
Date: Fri, 3 Jul 2009 09:46:35 +0200	[thread overview]
Message-ID: <200907030946.35197.sr@denx.de> (raw)
In-Reply-To: <ec1aee9f0907030037p75674823v300e9097f3a541f1@mail.gmail.com>

Hi Po-Yu Chuang,

On Friday 03 July 2009 09:37:19 Po-Yu Chuang wrote:
> > SST39LF040 use addr1=0x5555 and addr2=0x2AAA, however, each sector is
> > 0x1000 bytes.
> >
> > Thus, if we issue command to "sector base (0x41000) + offset(0x5555)",
> > it sends to 0x46555 and the chip fails to recognize that address.
> >
> > I guess that SST39LF020 might suffer the same problem.
>
> How do you think about this?
> I can submit a patch for it.

Yes, I understand your problem and it needs to get fixed. But your original 
patch changed the unlock address not only for this "legacy" FLASH type but for 
all AMD type FLASH chips. And I'm not sure if this is correct. Meaning if the 
AMD/Spansion chips will accept these unlock addresses.

Perhaps you could check some data-sheets (some older and more recent Spansion 
CFI chips) which unlock addresses should be used here.

Thanks.

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:[~2009-07-03  7:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-24  2:39 [U-Boot] [U-BOOT] cfi_flash.c fails to program NOR Flash SST39LF040 Po-Yu Chuang
2009-04-27  7:31 ` Stefan Roese
2009-04-28  3:12   ` Po-Yu Chuang
2009-07-03  7:37     ` Po-Yu Chuang
2009-07-03  7:46       ` Stefan Roese [this message]
2009-07-03  9:11         ` Po-Yu Chuang
2009-07-06  8:58           ` Stefan Roese

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