u-boot/drivers/mtd
Michael Schwingen 1ba639da56 CFI: Do not use uninitialized cmd_reset
Do not use uninitialized cmd_reset; issue both AMD and Intel reset
commands instead

From a short test, it looks like AMD-style flash roms treat *any* unknown
command write as a reset, at least when in CFI Query mode, so issuing the
Intel reset command to AMD-style flashs seems safe (from the small sample I
have), plus the 3-cycle magic sequence should kick the state machine into
the right state even without a reset command. Since the AMD-style flashs
require the unlock sequence for real operation, I chose to try the AMD reset
command first, so that Intel flashs do no see an invalid command prior to
the CFI query.

I have tested the patch on AM29LV320-style flashs from Fujitsu and Macronix,
plus Intel StrataFlash.

Signed-off-by: Michael Schwingen <michael@schwingen.org>
Signed-off-by: Stefan Roese <sr@denx.de>
2008-02-21 17:12:19 +01:00
..
nand nand: FSL UPM NAND driver 2008-01-16 14:14:40 +01:00
nand_legacy drivers/mtd : move mtd drivers to drivers/mtd 2007-11-25 23:28:52 +01:00
onenand OneNAND: Separate U-Boot dependent code from OneNAND 2008-01-16 14:10:15 +01:00
at45.c drivers/mtd : move mtd drivers to drivers/mtd 2007-11-25 23:28:52 +01:00
cfi_flash.c CFI: Do not use uninitialized cmd_reset 2008-02-21 17:12:19 +01:00
dataflash.c AT91CAP9 support : build integration 2008-02-14 09:37:57 +00:00
jedec_flash.c Remove duplicate defines for ARRAY_SIZE 2008-02-14 00:43:02 +01:00
Makefile CFI: support JEDEC flash roms in CFI-flash framework 2007-12-08 08:16:50 +01:00
mw_eeprom.c drivers/mtd : move mtd drivers to drivers/mtd 2007-11-25 23:28:52 +01:00