public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* jedec probe problem
@ 2003-01-01 13:42 thierry
  2003-01-01 14:03 ` Thomas Gleixner
  0 siblings, 1 reply; 3+ messages in thread
From: thierry @ 2003-01-01 13:42 UTC (permalink / raw)
  To: linux-mtd

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!

	Thierry Zhong

^ permalink raw reply	[flat|nested] 3+ messages in thread

* jedec probe problem
@ 2003-01-01 13:42 thierry
  0 siblings, 0 replies; 3+ messages in thread
From: thierry @ 2003-01-01 13:42 UTC (permalink / raw)
  To: linux-mtd

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!

	Thierry Zhong

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: jedec probe problem
  2003-01-01 13:42 jedec probe problem thierry
@ 2003-01-01 14:03 ` Thomas Gleixner
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Gleixner @ 2003-01-01 14:03 UTC (permalink / raw)
  To: thierry, linux-mtd@lists.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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-01 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-01 13:42 jedec probe problem thierry
2003-01-01 14:03 ` Thomas Gleixner
  -- strict thread matches above, loose matches on Subject: below --
2003-01-01 13:42 thierry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox