sf: fix support of QSPI memories and controllers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | Revert "sf: Fix quad bit set for micron devices"drivers/ drivers/ | +2 | 0 replies | |
| 2/18 | sf: call spi_claim_bus() and spi_release_bus() only once per read, write or erasedrivers/ drivers/ | +40 | 0 replies | |
| 3/18 | sf: replace spi_flash_read_common() calls by spi_flash_cmd_read()drivers/ drivers/ | +9 | 0 replies | |
| 4/18 | sf: remove spi_flash_write_common()drivers/ drivers/ | +42 | 0 replies | |
| 5/18 | sf: export spi_flash_wait_ready() functiondrivers/ drivers/ | +9 | 0 replies | |
| 6/18 | sf: share erase generic algorithmdrivers/ drivers/ | +23 | 0 replies | |
| 7/18 | sf: share write generic algorithmdrivers/ drivers/ | +29 | 0 replies | |
| 8/18 | sf: share read generic algorithmdrivers/ drivers/ | +35 | 0 replies | |
| 9/18 | sf: add hooks to handle register read and write operationsdrivers/ drivers/ drivers/ +2 more | +137 | 0 replies | |
| 10/18 | sf: move support of SST flash into generic spi_flash_write_alg()drivers/ drivers/ drivers/ | +43 | 0 replies | |
| 11/18 | sf: fix selection of supported READ commands for QSPI memoriesdrivers/ drivers/ drivers/ +1 more | +51 | 0 replies | |
| 12/18 | sf: fix detection of QSPI memories when they boot in Quad or Dual modedrivers/ drivers/ include/ | +116 | 0 replies | |
| 13/18 | sf: add helper function to set the number of dummy bytesdrivers/ drivers/ | +17 | 0 replies | |
| 14/18 | sf: add 4byte address opcodesdrivers/ drivers/ drivers/ +1 more | +114 | 1 reply | |
| 15/18 | sf: prepare next fixes to support of QSPI memories by manufacturerdrivers/ | +99 | 0 replies | |
| 16/18 | sf: fix support of Micron memoriesdrivers/ drivers/ drivers/ +1 more | +251 | 0 replies | |
| 17/18 | ARM: at91: clock: add function to get QSPI clocksarch/ | +5 | 0 replies | |
| 18/18 | sf: add driver for Atmel QSPI controllerdrivers/ drivers/ drivers/ +3 more | +738 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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