From: Thomas Gleixner <tglx@linutronix.de>
To: thierry <jokyman@sina.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: jedec probe problem
Date: Wed, 01 Jan 2003 15:03:13 +0100 [thread overview]
Message-ID: <200301011503.13225.tglx@linutronix.de> (raw)
In-Reply-To: <E18TieE-00087a-00@pentafluge.infradead.org>
On Wednesday 01 January 2003 14:42, thierry wrote:
> my flash is hy29lv160 in word mode and buswidth is 16 bit.
> I use jedec_probe_chip() to detect my flash.
> According to the data sheet of my flash,I set:
> cfi->addr_unlock1 = 0x555;
> cfi->addr_unlock2 = 0x2aa;
> but when it execute:
> cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi,
> CFI_DEVICETYPE_X16, NULL); cfi_send_gen_cmd(0x55, cfi->addr_unlock2, base,
> map, cfi, CFI_DEVICETYPE_X16, NULL); cfi_send_gen_cmd(0x90,
> cfi->addr_unlock1, base, map, cfi, CFI_DEVICETYPE_X16, NULL); cfi->mfr =
> jedec_read_mfr(map, base, osf);
> it stop after the third cfi_send_gen_cmd and can't read the manufacture
> code. Can someone point out my mistake?
> Thanks!
Please use cfi_probe.
Check, if this works.
If yes, study the code and you have a pointer.
If not, enable debugging and provide detailed logs.
--
Thomas
____________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de
next prev parent reply other threads:[~2003-01-01 13:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-01 13:42 jedec probe problem thierry
2003-01-01 14:03 ` Thomas Gleixner [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-01 13:42 thierry
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=200301011503.13225.tglx@linutronix.de \
--to=tglx@linutronix.de \
--cc=jokyman@sina.com \
--cc=linux-mtd@lists.infradead.org \
/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