u-boot-brain/drivers/mtd/spi
Cyrille Pitchen 9bcb018870 Revert "sf: Fix quad bit set for micron devices"
This reverts commit c56ae7519f.

Once the 'Quad Enable' bit is cleared in their Enhanced Volatile
Configuration Register (EVCR), Micron memories expect ALL commands to use
the SPI 4-4-4 protocol. Commands using SPI 1-y-z protocols are no longer
accepted.

Within the reverted commit, the write_evcr() function is implemented using
the spi_flash_write_common(), which is a shortcut for the
[ spi_flash_cmd_write_enable(), spi_flash_cmd_write(),
spi_flash_cmd_wait_ready() ] sequence.

Since the internal state of the Micron memory has been changed when the
spi_flash_cmd_write() function completes, the later call of the
spi_flash_cmd_wait_ready() function fails.

Indeed the SPI controller driver is not aware of the SPI protocol switch.

Further patches will fix the support of Micron QSPI memories.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
[Rebase on master, use JEDEC_MFR(info) in place of idcode0]
Signed-off-by: Jagan Teki <jagan@openedev.com>
2016-12-15 18:33:16 +01:00
..
fsl_espi_spl.c spi: Move freescale-specific code into a private header 2016-10-06 15:07:35 -04:00
Kconfig sunxi: Support booting from SPI flash 2016-07-15 08:34:34 +02:00
Makefile sf: Rename sf_params.c to spi_flash_ids.c 2016-11-18 13:04:54 +05:30
sandbox.c sf: nr_sectors -> n_sectors 2016-11-18 13:04:53 +05:30
sf_dataflash.c sf: dataflash: Minor cleanups 2016-11-19 08:41:54 +05:30
sf_internal.h Revert "sf: Fix quad bit set for micron devices" 2016-12-15 18:33:16 +01:00
sf_mtd.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
sf_probe.c spi: Correct two error return values 2016-02-26 08:53:10 -07:00
sf-uclass.c dm: spi_flash: Allow the uclass to work without printf() 2016-01-15 05:39:27 -07:00
sf.c spi: Remove dual flash options/flags 2016-11-19 08:41:44 +05:30
spi_flash_ids.c sf: Add support for MX66U51235F, MX66L1G45G, MT25QU02G, MT25QL02G 2016-11-22 11:58:59 +05:30
spi_flash.c Revert "sf: Fix quad bit set for micron devices" 2016-12-15 18:33:16 +01:00
sunxi_spi_spl.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00