u-boot-brain/drivers
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
..
bios_emulator Wipe out assembler warnings while compiling x86 biosemu 2008-02-16 00:31:16 +01:00
block drivers/block : move block drivers to drivers/block 2007-11-25 23:28:51 +01:00
dma Use #ifdef CONFIG_FSLDMAFEC 2008-02-14 22:13:28 +01:00
hwmon Remove superfluous preprocessor conditionals from LM73 driver 2008-01-12 00:26:47 +01:00
i2c drivers/i2c : move i2c drivers to drivers/i2c 2007-11-20 20:14:18 +01:00
input drivers/input : move input drivers to drivers/input 2007-11-25 23:28:49 +01:00
misc 86xx: Add print_laws function to fsl_law.c 2008-01-24 12:12:51 -06:00
mtd CFI: Do not use uninitialized cmd_reset 2008-02-21 17:12:19 +01:00
net AT91CAP9 support : MACB changes 2008-02-14 09:37:58 +00:00
pci Handle MPC85xx PCIe reset errata (PCI-Ex 38) 2007-12-11 22:34:20 -06:00
pcmcia pcmcia: Remove CONFIG_COMMANDS from marubun pcmcia driver 2008-01-15 23:30:40 +09:00
qe QE: Move FDT support into a common file 2008-02-12 00:36:21 +01:00
rtc Merge branch 'master' of git://www.denx.de/git/u-boot-blackfin 2008-02-15 00:06:18 +01:00
serial OMAP5912: fix FIFO handling in UART driver 2008-02-05 00:04:15 +01:00
spi Fix conditional compilation of mpx8xxx_spi driver 2008-01-29 11:53:00 -06:00
usb USB: Add Philips 1561 PCI-OHCI ids 2008-01-12 15:54:33 +01:00
video Add Radeon Mobility 9200 pci device id to the radeon driver 2008-02-15 00:54:29 +01:00