Skip to content

sf:Updates on flash detection

Jagan Teki u-boot 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest17 patches 0 repliesNew
  2. v3 posting 2/227 patches 0 repliesSuperseded
  3. v3 posting 1/20 of 27 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v222 patches0 repliesSuperseded
v16 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Rebase to master

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17sf: Adopt flash table INFO macro from Linuxdrivers/mtd/spi/sandbox.c drivers/mtd/spi/sf_internal.h drivers/mtd/spi/sf_params.c +2 more+205 -1720 replies
2/17sf: Simplify lock ops detection codedrivers/mtd/spi/spi_flash.c+4 -80 replies
3/17sf: sandbox: Use JEDEC_MFR|ID in id exctractdrivers/mtd/spi/sandbox.c+2 -30 replies
4/17sf: Cleanup spi_flash_info{}drivers/mtd/spi/sf_internal.h+8 -140 replies
5/17sf: Cleanup sf_paramsdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/sf_params.c+3 -70 replies
6/17sf: nr_sectors -> n_sectorsdrivers/mtd/spi/sandbox.c drivers/mtd/spi/sf_internal.h drivers/mtd/spi/sf_params.c +1 more+4 -40 replies
7/17sf: Add SPI_FLASH_MAX_ID_LENdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+4 -30 replies
8/17sf: Increase max id length by 1 bytedrivers/mtd/spi/sf_internal.h+1 -10 replies
9/17sf: Add INFO6 flash_info macrodrivers/mtd/spi/sf_params.c+15 -00 replies
10/17sf: params: Add S25FS256S_64K spi flash supportdrivers/mtd/spi/sf_params.c+1 -00 replies
11/17sf: Remove legacy idcode detection codedrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+0 -840 replies
12/17sf: Remove non-meaningful commentsdrivers/mtd/spi/spi_flash.c+0 -30 replies
13/17sf: Rename sf_params.c to spi_flash_idsdrivers/mtd/spi/Makefile drivers/mtd/spi/spi_flash_ids.c+177 -10 replies
14/17sf: ids: Use small letter's with flash namedrivers/mtd/spi/spi_flash_ids.c+110 -1100 replies
15/17sf: ids: Use small letter in ext_jedecdrivers/mtd/spi/spi_flash_ids.c+1 -10 replies
16/17sf: Rename few local functionsdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi_flash.c+12 -130 replies
17/17spi: Remove dual flash codedrivers/mtd/spi/sf.c drivers/mtd/spi/spi_flash.c include/spi.h+0 -110 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 00/17] sf:Updates on flash detection

From: Jagan Teki <[email protected]>

Updated spi_flash_info table in sync with Linux, and removed legacy and unsupported code.

Changes for v4:
- Rebase to master

Changes for v3:
- New patches
- Fix checkpatch.pl
- Fix BIT positions in spi.h
- Fix ti_qspi.c mode
- Fix commit Nit: s/becuase/because

Changes for v2:
- New patches.

Testing:

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

Jagan Teki (17):
sf: Adopt flash table INFO macro from Linux
sf: Simplify lock ops detection code
sf: sandbox: Use JEDEC_MFR|ID in id exctract
sf: Cleanup spi_flash_info{}
sf: Cleanup sf_params
sf: nr_sectors -> n_sectors
sf: Add SPI_FLASH_MAX_ID_LEN
sf: Increase max id length by 1 byte
sf: Add INFO6 flash_info macro
sf: params: Add S25FS256S_64K spi flash support
sf: Remove legacy idcode detection code
sf: Remove non-meaningful comments
sf: Rename sf_params.c to spi_flash_ids
sf: ids: Use small letter's with flash name
sf: ids: Use small letter in ext_jedec
sf: Rename few local functions
spi: Remove dual flash code

 drivers/mtd/spi/Makefile        |   2 +-
 drivers/mtd/spi/sandbox.c       |  11 +-
 drivers/mtd/spi/sf.c            |   4 -
 drivers/mtd/spi/sf_internal.h   |  58 +++++-----
 drivers/mtd/spi/sf_params.c     | 238 ++++++++++++++++++++++------------------
 drivers/mtd/spi/spi_flash.c     | 226 ++++++++++++--------------------------
 drivers/mtd/spi/spi_flash_ids.c | 176 +++++++++++++++++++++++++++++
 include/linux/err.h             |   5 +
 include/spi.h                   |   6 -
 9 files changed, 419 insertions(+), 307 deletions(-)
 create mode 100644 drivers/mtd/spi/spi_flash_ids.c
Signature · 1 line
2.7.4