u-boot-brain/drivers/mtd/spi
Haikun Wang 79b4c08fc4 dm: sf: Add Atmel DataFlash spi flash driver
Atmel DataFlash chips have commands different from common spi
flash commands.
Atmel DataFlash also have special page-size.
This driver add support for accessing Atmel DataFlash.
It is based on the Driver Model.
Example:
=> sf probe 1:0
SPI DataFlash: Detected AT45DB021B with page size 264 Bytes, erase size 264 Bytes, total 264 KiB, revision d
=> sf erase 0 42000
SF: 270336 bytes @ 0x0 Erased: OK
=> mw.l 82000000 45444342 20000
=> sf write 82000000 0 42000
SF: 270336 bytes @ 0x0 Written: OK
=> sf read 83000000 0 42000
SF: 270336 bytes @ 0x0 Read: OK
=> cmp.b 82000000 83000000 42000
Total of 270336 byte(s) were the same

Signed-off-by: Haikun Wang <haikun.wang@freescale.com>
Tested-by: Haikun Wang <haikun.wang@freescale.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Chakra Divi <cdivi@openedev.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
2015-06-30 00:40:10 +05:30
..
eeprom_m95xxx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_espi_spl.c driver: Add support of image load for MMC & SPI in SPL 2014-04-22 17:58:50 -07:00
Kconfig mtd: spi: Add the SPI_FLASH config to Kconfig 2015-06-25 17:04:43 -04:00
Makefile dm: sf: Add Atmel DataFlash spi flash driver 2015-06-30 00:40:10 +05:30
sandbox.c sandbox: spi: Add newline to printf() in sandbox_sf_probe 2015-05-14 18:49:35 -06:00
sf_dataflash.c dm: sf: Add Atmel DataFlash spi flash driver 2015-06-30 00:40:10 +05:30
sf_internal.h sf: Fix to compute proper sector_size 2015-04-28 13:31:36 +05:30
sf_ops.c sf: Poll both the read status and flag status 2015-04-22 16:49:51 +05:30
sf_params.c sf: sf_params: Add S25FL164K flash identifier info 2014-12-18 18:48:30 +05:30
sf_probe.c sf: Fix to compute proper sector_size 2015-04-28 13:31:36 +05:30
sf-uclass.c dm: sf: Update default name of spi flash in structure udevice 2015-05-06 14:00:35 -06:00
sf.c sf: Add CONFIG_SF_DUAL_FLASH 2014-01-12 21:40:22 +05:30
spi_spl_load.c sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00