Skip to content

sf: Add Extended read and quad read/write commands support

Sourav Poddar u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v6 Latest5 of 12 patches 0 repliesNew

5 of 12 patches are in this archive. The cover letter announces 12.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
8/12sf: Discover read dummy_cycles+0 -01 reply
8/12sf: Discover read dummy_cycles+0 -01 reply
8/12sf: Discover read dummy_cycles+0 -01 reply
11/12sf: Divide flash register ops from QEB code+0 -01 reply
11/12sf: Divide flash register ops from QEB code+0 -00 replies

Reviews trailers per patch

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

Read the v6 thread

Cover letter [U-Boot] [PATCH v6 00/12] sf: Add Extended read and quad read/write commands support
Quoted 67 lines · Jagannadha Sutradharudu Teki

This a suffix series for
http://u-boot.10912.n7.nabble.com/PATCH-v4-00-36-sf-Add-common-probe-and-extended-quad-read-write-cmds-support-td163949.html
for adding extended read and quad read/write commands support.

Concept:
"Implementation will discover the fastest command by taking the supported commands from flash and a controller. Controller supported commands will always been a priority."

The above concept is changed in this series as couple of reviews from earlier ones.
- Implementation concept will apply on read commands.
- As we have two write commands as of now ? so this series is not trying to discover the fastest write command
- The respective command modes are given to the controller driver side as a form of SPI RX/RX operation modes - so sf definitions will not be part of SPI driver side.

Testing branch:

$ git clone git://git.denx.de/u-boot-spi.git
$ cd u-boot-spi
$ git checkout -b master-quad origin/master-quad

REQUEST FOR ALL SPI CODE CONTRIBUTORS/USERS, PLEASE TEST THESE CHANGES W.R.T YOUR HW IF POSSIBLE.

Please let me know for any issues/concerns/questions.

--
Thanks,
Jagan.

Changes for v6:
- Divided flash reg ops code
- sf_ops.c clean
Changes for v5:
- Re-implemented write command log - not trying to discover the fastest write
- Added SPI RX/TX operation modes
- SPI flash parts are moved into sf_params.c file
- Added QUAD_IO_FAST read support
- Discovred the read dummy_cycles based on configured read cmd
- Added set QEB support for macronix flash
- Enabled quad read/write cmd support for macronix flash
Changes for v4:
Changes for v3:
Changes for v2:
- none

Jagannadha Sutradharudu Teki (12):
sf: Add extended read commands support
sf: Add quad read/write commands support
sf: ops: Add configuration register writing support
sf: Set quad enable bit support
sf: probe: Enable RD_FULL and WR_QPP
sf: Separate the flash params table
sf: Add QUAD_IO_FAST read support
sf: Discover read dummy_cycles
sf: Add macronix set QEB support
sf: probe: Enable macronix quad read/write cmds support
sf: Divide flash register ops from QEB code
sf: Code cleanups

  drivers/mtd/spi/Makefile      |   4 +-
  drivers/mtd/spi/sf_internal.h |  31 +++++-
  drivers/mtd/spi/sf_ops.c      |  71 ++++++++++--
  drivers/mtd/spi/sf_params.c   | 130 ++++++++++++++++++++++
  drivers/mtd/spi/sf_probe.c    | 246 +++++++++++++++++++-----------------------
  include/spi.h                 |  17 +++
  include/spi_flash.h           |  43 ++++++++
  7 files changed, 393 insertions(+), 149 deletions(-)
Quoted 2 lines

create mode 100644 drivers/mtd/spi/sf_params.c

Apart from the couple of comments given, this series looks good to me.