Skip to content

sf: fix support of QSPI memories and controllers

Cyrille Pitchen u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18Revert "sf: Fix quad bit set for micron devices"drivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+2 -630 replies
2/18sf: call spi_claim_bus() and spi_release_bus() only once per read, write or erasedrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+40 -330 replies
3/18sf: replace spi_flash_read_common() calls by spi_flash_cmd_read()drivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+9 -270 replies
4/18sf: remove spi_flash_write_common()drivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+42 -280 replies
5/18sf: export spi_flash_wait_ready() functiondrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+9 -10 replies
6/18sf: share erase generic algorithmdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+23 -90 replies
7/18sf: share write generic algorithmdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+29 -100 replies
8/18sf: share read generic algorithmdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+35 -170 replies
9/18sf: add hooks to handle register read and write operationsdrivers/mtd/spi/sf-uclass.c drivers/mtd/spi/sf_internal.h drivers/mtd/spi/sf_probe.c +2 more+137 -330 replies
10/18sf: move support of SST flash into generic spi_flash_write_alg()drivers/mtd/spi/sf_internal.h drivers/mtd/spi/sf_probe.c drivers/mtd/spi/spi_flash.c+43 -500 replies
11/18sf: fix selection of supported READ commands for QSPI memoriesdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/sf_params.c drivers/mtd/spi/sf_probe.c +1 more+51 -230 replies
12/18sf: fix detection of QSPI memories when they boot in Quad or Dual modedrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c include/spi_flash.h+116 -200 replies
13/18sf: add helper function to set the number of dummy bytesdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+17 -00 replies
14/18sf: add 4byte address opcodesdrivers/mtd/spi/Kconfig drivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c +1 more+114 -161 reply
15/18sf: prepare next fixes to support of QSPI memories by manufacturerdrivers/mtd/spi/spi_flash.c+99 -560 replies
16/18sf: fix support of Micron memoriesdrivers/mtd/spi/Makefile drivers/mtd/spi/sf_internal.h drivers/mtd/spi/sf_micron.c +1 more+251 -90 replies
17/18ARM: at91: clock: add function to get QSPI clocksarch/arm/mach-at91/include/mach/clk.h+5 -00 replies
18/18sf: add driver for Atmel QSPI controllerdrivers/mtd/spi/Makefile drivers/mtd/spi/atmel_qspi_flash.c drivers/spi/Kconfig +3 more+738 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/18] sf: fix support of QSPI memories and controllers

Hi all,

This series of patches fixes and extend the support of QSPI memories in the SPI flash framework. The updates are split into many parts to make it easier to understand and review but they should be considered as a whole.

This was tested on a Atmel sama5d2 xplained board with a Micron n25q128a memory.

Best regards,

Cyrille

Cyrille Pitchen (18):
Revert "sf: Fix quad bit set for micron devices"
sf: call spi_claim_bus() and spi_release_bus() only once per read,
write or erase
sf: replace spi_flash_read_common() calls by spi_flash_cmd_read()
sf: remove spi_flash_write_common()
sf: export spi_flash_wait_ready() function
sf: share erase generic algorithm
sf: share write generic algorithm
sf: share read generic algorithm
sf: add hooks to handle register read and write operations
sf: move support of SST flash into generic spi_flash_write_alg()
sf: fix selection of supported READ commands for QSPI memories
sf: fix detection of QSPI memories when they boot in Quad or Dual mode
sf: add helper function to set the number of dummy bytes
sf: add 4byte address opcodes
sf: prepare next fixes to support of QSPI memories by manufacturer
sf: fix support of Micron memories
ARM: at91: clock: add function to get QSPI clocks
sf: add driver for Atmel QSPI controller

 arch/arm/mach-at91/include/mach/clk.h |   5 +
 drivers/mtd/spi/Kconfig               |  18 +-
 drivers/mtd/spi/Makefile              |   2 +
 drivers/mtd/spi/atmel_qspi_flash.c    | 432 ++++++++++++++++++++
 drivers/mtd/spi/sf-uclass.c           |  11 +
 drivers/mtd/spi/sf_internal.h         | 115 ++++--
 drivers/mtd/spi/sf_micron.c           | 222 ++++++++++
 drivers/mtd/spi/sf_params.c           |  32 +-
 drivers/mtd/spi/sf_probe.c            |  46 ++-
 drivers/mtd/spi/spi_flash.c           | 744 +++++++++++++++++++++-------------
 drivers/spi/Kconfig                   |   9 +
 drivers/spi/Makefile                  |   1 +
 drivers/spi/atmel_qspi.c              | 150 +++++++
 drivers/spi/atmel_qspi.h              | 145 +++++++
 include/spi_flash.h                   | 105 +++++
 15 files changed, 1701 insertions(+), 336 deletions(-)
 create mode 100644 drivers/mtd/spi/atmel_qspi_flash.c
 create mode 100644 drivers/mtd/spi/sf_micron.c
 create mode 100644 drivers/spi/atmel_qspi.c
 create mode 100644 drivers/spi/atmel_qspi.h
Signature · 1 line
1.8.2.2