From: Wang Jian <lark@linux.net.cn>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Suggestion on flash init
Date: Tue, 03 Jan 2006 21:16:03 +0800 [thread overview]
Message-ID: <20060103205317.0711.LARK@linux.net.cn> (raw)
In-Reply-To: <20051226094054.F3FC.LARK@linux.net.cn>
Hi Denk,
Me again.
In my situation, S29AL016M works in x8 mode, which has different command
sequence from in x16 mode.
The following are from datasheet.
Providing
vu_char *addr = (vu_char *) info->start[sect];
x16 mode sector erase
addr[0x555] = 0xAA;
addr[0x2AA] = 0x55;
addr[0x555] = 0x80;
addr[0x555] = 0xAA;
addr[0x2AA] = 0x55;
addr[0x000] = 0x30;
udelay(50); // at least 50 us before polling for status
x16 mode program
addr[0x555] = 0xAA;
addr[0x2AA] = 0x55;
addr[0x555] = 0xA0;
addr[offset] = data;
x8 mode sector erase
addr[0xAAA] = 0xAA;
addr[0x555] = 0x55;
addr[0xAAA] = 0x80;
addr[0xAAA] = 0xAA;
addr[0x555] = 0x55;
addr[0x000] = 0x30;
udelay(50); // at least 50 us before polling for status
x8 mode program
addr[0xAAA] = 0xAA;
addr[0x555] = 0x55;
addr[0xAAA] = 0xA0;
addr[offset] = data;
I have little knowledge about other flash chips, so it is not easy for
me to write clean patch for cfi_flash.c, although I want to.
Regards
On Mon, 26 Dec 2005 09:49:10 +0800, Wang Jian <lark@linux.net.cn> wrote:
> Hi Wolfgang Denk,
>
>
> On Sun, 25 Dec 2005 17:34:49 +0100, Wolfgang Denk <wd@denx.de> wrote:
>
> > In message <20051225190658.F3F9.LARK@linux.net.cn> you wrote:
> > >
> > > I have tested cfi_flash.c for a while. Unfortuanately, it fails for
> > > Spansion S29AL016M. The chip can be recognized, chip information is all
> > > correct, but the erase and write routines fail.
> >
> > Then please (lets) fix the problem instead of inventing the wheel again.
>
> After a bad sleep, I read the manual again. This time, I find the cfi_flash.c
> DOES do as what manual says. I will set some debug information and find
> what happend. Stay tune.
>
--
lark
next prev parent reply other threads:[~2006-01-03 13:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-25 4:33 [U-Boot-Users] Suggestion on flash init Wang Jian
2005-12-25 10:19 ` Wolfgang Denk
2005-12-25 12:02 ` Wang Jian
2005-12-25 16:34 ` Wolfgang Denk
2005-12-26 1:49 ` Wang Jian
2006-01-03 13:16 ` Wang Jian [this message]
2006-01-03 14:08 ` Wolfgang Denk
2006-01-03 15:34 ` Wang Jian
2006-01-03 15:44 ` Wolfgang Denk
2006-01-04 22:31 ` Tolunay Orkun
2006-01-04 23:51 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2006-01-05 16:20 Nuno João (Ext_NBS)
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=20060103205317.0711.LARK@linux.net.cn \
--to=lark@linux.net.cn \
--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