Since BIT macro is visiable to include/common.h there is no
need to define again it on local headers hence removed.
Signed-off-by: Jagannadha Sutradharudu Teki
---
Changes for v2:
- none
arch/arm/include/asm/arch-am33xx/cpu.h | 1 -
arch/arm/include/asm/arch-omap5/cpu.h
David Dueck (1):
spi: omap3: Fix timeout handling
Jagannadha Sutradharudu Teki (2):
Revert "spi: add config option to enable the WP pin function on st micron
flashes"
sf: Fix to compute proper sector_size
Pavel Machek (1):
spi flash: fix trivial problems
P
ith page size 256 Bytes, erase size 4 KiB,
total 2 MiB, mapped at ffe0
=> sf erase 0 +100
SF: 65536 bytes @ 0x0 Erased: OK
Signed-off-by: Jagannadha Sutradharudu Teki
Reported-by: Bin Meng
Tested-by: Bin Meng
---
Changes for v3:
- Updated comments
Changes for v2:
- Minimi
ith page size 256 Bytes, erase size 4 KiB,
total 2 MiB, mapped at ffe0
=> sf erase 0 +100
SF: 65536 bytes @ 0x0 Erased: OK
Signed-off-by: Jagannadha Sutradharudu Teki
Reported-by: Bin Meng
---
Changes for v2:
-
drivers/mtd/spi/sf_internal.h | 3 ++-
drivers/mtd/spi/sf_probe.c
This reverts commit 562f8df18da62ae02c4ace1e530451fe82c3312d.
Note: Even un-reverting this patch couldn't works as expected, based
on the latest testing from Heiko Schocher.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Heiko Schocher
---
README
Now zynq spi driver platform data is controlled by devicetree,
enable the status by saying "okay" on respective board dts to use
the devicetree generated platdata.
Ex:
&spi1 {
status = "okay";
};
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Simon Glass
Cc
This patch enables spi1 for zynq zc770_xm010 board dts.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Simon Glass
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
---
arch/arm/dts/zynq-zc770-xm010.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/dts/zynq-zc770-xm010.dts
x_spi.c: In function 'xilinx_spi_xfer':
drivers/spi/xilinx_spi.c:193:2: warning: implicit declaration of function
'readl' [-Wimplicit-function-declaration]
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Michal Simek
---
drivers/spi/xilinx_spi.c | 1 +
1 file changed, 1 insertion(+)
This converts the xilinx spi driver to use the driver model.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Simon Glass
Cc: Michal Simek
---
Note: Michal, can you test this, I don't have hardware.
drivers/spi/xilinx_spi.c | 212 +++
1 file ch
Driver model conversion, patches. - drivers/spi/zynq_spi.c and
drivers/spi/xilinx_spi.c
thanks!
--
Jagan.
Jagannadha Sutradharudu Teki (7):
dm: spi: zynq_spi: Convert to driver model
zynq: Kconfig: Enable dm spi and spi_flash
dts: zynq: Add zynq spi controller nodes
spi: zynq_spi: Add
Enabled CONFIG_DM_SPI and CONFIG_DM_SPI_FLASH for zynq soc.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Simon Glass
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
---
arch/arm/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 3702bb0
This patch adds zynq spi controller nodes in zynq-7000.dtsi.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Simon Glass
Cc: Michal Simek
Cc: Siva Durga Prasad Paladugu
---
arch/arm/dts/zynq-7000.dtsi | 24
doc/device-tree-bindings/spi/spi-zynq.txt | 27
This converts the zynq spi driver to use the driver model.
Minimal functional changes like using meaningful name on
structure members wrt mainlined dm spi drivers.
- input_hz -> frequency
- req_hz -> freq
- base -> regs
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Simon Glass
C
Upto now flash sector_size is assigned from params which isn't
necessarily a sector size from vendor, so based on the SECT_*
flags from flash_params the erase_size will compute and it will
become the sector_size finally.
Signed-off-by: Jagannadha Sutradharudu Teki
Reported-by: Bin
Updated in spi relevent files.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sandbox.c | 4 +--
drivers/mtd/spi/sf_internal.h | 10 +++
drivers/spi/altera_spi.c | 26 -
drivers/spi/atmel_spi.h| 52
Move the header code into driver for more readable and
easy to access it.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Rex Chang
Cc: Murali Karicheri
---
drivers/spi/davinci_spi.c | 110 -
drivers/spi/davinci_spi.h | 121
Arrange driver code in more readable format[1] for easy accessing
and readable.
[1] http://lists.denx.de/pipermail/u-boot/2013-August/160473.html
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Rex Chang
Cc: Murali Karicheri
---
drivers/spi/davinci_spi.c | 343
Move the header code into driver for more readable and
easy to access it.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Michal Simek
---
drivers/spi/xilinx_spi.c | 113 +-
drivers/spi/xilinx_spi.h | 138 ---
2
!
--
Jagan.
Jagannadha Sutradharudu Teki (8):
sf: Adjust tab space's
spi: Zap andes_spi driver
spi: Zap ftssp010_spi driver
spi: Zap oc_tiny_spi driver
spi: xilinx_spi: Move header code to driver
spi: xilinx_spi: Driver clean-up
spi: davinci_spi: Move header code to driver
Tab space's got adjusted on relevent files.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 20 ++--
include/spi.h | 12 ++--
include/spi_flash.h | 8
3 files changed, 20 insertions(+), 20 dele
Zap ftssp010_spi driver since the boards used this driver
is no longer been active.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Kuo-Jung Su
Cc: Axel Lin
---
drivers/spi/Makefile | 1 -
drivers/spi/ftssp010_spi.c | 498 -
2 files changed
Zap oc_tiny_spi driver since the boards used this driver
is no longer been active.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Thomas Chou
---
drivers/spi/Makefile | 1 -
drivers/spi/oc_tiny_spi.c | 245 --
2 files changed, 246 deletions
-off-by: Jagannadha Sutradharudu Teki
Cc: Michal Simek
---
drivers/spi/xilinx_spi.c | 164 ---
1 file changed, 57 insertions(+), 107 deletions(-)
diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c
index 8073edc..650e494 100644
--- a/drivers
Zap andes_spi driver since the boards used this driver
is no longer been active.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Macpaul Lin
---
drivers/spi/Makefile| 1 -
drivers/spi/andes_spi.c | 284
drivers/spi/andes_spi.h | 115
Tab space's got adjusted on relevent files.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 20 ++--
include/spi.h | 12 ++--
include/spi_flash.h | 6 +++---
3 files changed, 19 insertions(+), 19 dele
Hi Tom,
Please pull this PR.
thanks!
Jagan.
The following changes since commit 662e2acb46250881ec26bc8366fc9eb1856cb7c2:
sunxi: UTOO_P66: Add missing MAINTAINERS entry (2015-03-29 14:56:48 +0200)
are available in the git repository at:
git://git.denx.de/u-boot-spi.git master
for you to f
Hi Tom,
Please pull this PR.
thanks!
Jagan.
The following changes since commit d622ac39274a949b6445f1bfd92dc1644014388b:
powerpc: mpc824x: remove MPC824X cpu support (2015-01-05 12:08:55 -0500)
are available in the git repository at:
git://git.denx.de/u-boot-spi.git master
for you to fet
Hi Tom,
Please pull this PR.
thanks!
Jagan.
The following changes since commit babe6994ca28e5a354ee32b33b7a54b0276d9df1:
sf: sf_params: Add S25FL164K flash identifier info (2014-12-18 18:48:30 +0530)
are available in the git repository at:
git://git.denx.de/u-boot-spi.git master
for you
t
sf: sf_params: Add S25FL164K flash identifier info
Jagannadha Sutradharudu Teki (1):
mtd: sf: Zap ramtron driver
Shengzhou Liu (1):
mtd/spi: Add support for SST25WF040B
drivers/mtd/spi/Makefile| 1 -
drivers/mtd/spi/ramtron
This reverts commit 562f8df18da62ae02c4ace1e530451fe82c3312d.
Never see the issue with N25Q128 flash without need of W#/Vpp signal
during probe.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Heiko Schocher
---
README| 11 ---
drivers/mtd/spi/sf_internal.h
From: Bin Meng
ICH 7 SPI controller only supports array read command (03h).
Fast array read command (0Bh) is not supported.
Signed-off-by: Bin Meng
Acked-by: Simon Glass
Tested-by: Simon Glass
Reviewed-by: Jagannadha Sutradharudu Teki
---
drivers/spi/ich.c | 4
1 file changed, 4
(02h) has to be used.
Signed-off-by: Bin Meng
Acked-by: Simon Glass
Tested-by: Simon Glass
Reviewed-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 2 ++
drivers/mtd/spi/sf_ops.c | 31 +++
2 files changed, 33 insertions(+)
diff --git a
SST flash.
Signed-off-by: Jagannadha Sutradharudu Teki
Tested-by: Bin Meng
---
drivers/mtd/spi/sf_internal.h | 5 -
drivers/mtd/spi/sf_params.c | 18 +-
drivers/mtd/spi/sf_probe.c| 8 ++--
include/spi.h | 1 +
4 files changed, 20 insertions(+), 12
From: Bin Meng
ICH 7 SPI controller only supports byte program (02h) for SST flash.
Word program (ADh) is not supported.
Signed-off-by: Bin Meng
Reviewed-by: Jagannadha Sutradharudu Teki
---
drivers/spi/ich.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a
From: Simon Glass
At present SECT_4K is the same as SST_WP so we cannot tell these apart. Fix
this so that the table in sf_params.c can be used correctly.
Reported-by: Jens Rottmann
Signed-off-by: Simon Glass
Reviewed-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 2
Few of the spi controllers are only supports array slow
read which is quite different behaviour compared to others.
So this fix on sf will correctly handle the slow read supported
controllers.
Signed-off-by: Jagannadha Sutradharudu Teki
Tested-by: Bin Meng
---
drivers/mtd/spi/sf_internal.h
operation mode for ich 7
x86: ich-spi: Set the tx operation mode for ich 7
Jagannadha Sutradharudu Teki (2):
sf: Fix look for the fastest read command
sf: Enable byte program support
Simon Glass (1):
spi: Fix flag collision for SST_WP
drivers/mtd/spi/sf_internal.h | 22 ++---
drivers
Enabled byte program support for sst flashes in sf.
Few controllers will only support BP, so this patch
gives a rx transfer flag to set the BP so-that sf
will operate on byte program transfer.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 5 -
drivers/mtd
Few of the spi controllers are only supports array slow
read which is quite different behaviour compared to others.
So this fix on sf will correctly handle the slow read supported
controllers.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 13 +++---
drivers
From: Bin Meng
Currently if SST flash advertises SST_WP flag in the params table
the word program command (ADh) with auto address increment will be
used for the flash write op. However some SPI controllers do not
support the word program command (like the Intel ICH 7), the byte
programm command (
From: Simon Glass
At present SECT_4K is the same as SST_WP so we cannot tell these apart. Fix
this so that the table in sf_params.c can be used correctly.
Reported-by: Jens Rottmann
Signed-off-by: Simon Glass
Reviewed-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 2
This patch-set added byte program support for sst flashes
and some implementation changes in sf to support array slow
and byte program specific controllers.
Bin Meng (1):
spi: sf: Support byte program for sst spi flash
Jagannadha Sutradharudu Teki (2):
sf: Fix look for the fastest read
will come back again
with new feature additions/removal, zynq_qspi additions and more...
Note: dm-spi ops can gets effected with this new framework
{ .ops= &spi_flash_std_ops, } and will fix that in next
version patches.
Signed-off-by: Jagannadha Sutradharudu Teki
---
doc/SPI
Removed ramtron driver since the EMK boards are
no longer been active, and these are the only boards
used this flash driver.
Commit details for EMK zap:
"ppc/arm: zap EMK boards"
(sha1: d58a9451e7339ed4cf2b2627e534611f427fb791)
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Rein
Hi Tom,
Please pull this PR.
thanks!
--
Jagan.
The following changes since commit 0ce4af99c07acebf4fce9a91f1099d2460629293:
Merge branch 'master' of git://git.denx.de/u-boot-imx (2014-10-27 09:08:42
-0400)
are available in the git repository at:
git://git.denx.de/u-boot-spi.git master
Hi Tom,
Please pull this PR.
thanks!
Jagan.
The following changes since commit 47d3debe1ab8315dc9ade22279e02f60eceda25b:
Merge git://git.denx.de/u-boot-dm (2014-09-23 15:21:43 -0400)
are available in the git repository at:
git://git.denx.de/u-boot-spi.git master
for you to fetch changes
From: Jagannadha Sutradharudu Teki
Now saving output files in a separate directory through
KBUILD_OUTPUT not with BUILD_DIR, so updated the documentation
accordingly.
Signed-off-by: Jagannadha Sutradharudu Teki
---
Changes for v2:
- none
MAKEALL | 12 ++--
README
From: Jagannadha Sutradharudu Teki
- Use _defconfig instead of _config, but still _config is working.
- Corrected README.sandbox path in ./README
Signed-off-by: Jagannadha Sutradharudu Teki
---
Changes for v2:
- Fixed board path in 'board/sandbox/README.sandbox'
Now saving output files in a separate directory through
KBUILD_OUTPUT not with BUILD_DIR, so updated the documentation
accordingly.
Signed-off-by: Jagannadha Sutradharudu Teki
---
MAKEALL | 12 ++--
README | 10 +-
doc/README.kwbimage | 4 ++--
3 files
From: Jagannadha Sutradharudu Teki
- Use _defconfig instead of _config, but _config is still working.
- Corrected README.sandbox path in ./README
Signed-off-by: Jagannadha Sutradharudu Teki
---
README | 2 +-
board/sandbox/README.sandbox | 4 ++--
2 files changed, 3
Hi Tom,
Please pull this PR.
thanks!
Jagan.
The following changes since commit 25b4adbba018633b943a99322bfb2fb819c0bafb:
include: remove CONFIG_SPL/CONFIG_TPL definition in config headers
(2014-07-30 14:42:03 -0400)
are available in the git repository at:
git://git.denx.de/u-boot-spi.git
Hi Tom,
Please take this PR.
thanks!
Jagan.
The following changes since commit 3e1fa221f94b7ae3389d166882b77f1da5895f22:
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx (2014-06-05
17:38:30 -0400)
are available in the git repository at:
git://git.denx.de/u-boot-spi.git master
implementation
Jagannadha Sutradharudu Teki (1):
sf: ops: Squash the malloc+memset combo
Marek Vasut (4):
sf: Fix entries for S25FL256S_256K and S25FL512S_256K
sf: Add S25FL128S_256K IDs
sf: Squash the malloc+memset combo
mtd: spi: Fix page size for S25FL032P,S25FL064P
drivers
Hi Tom,
Please take this PR, few fixes and pending patches on qspi am43xx.
thanks!
--
Jagan.
The following changes since commit 22a240c32c1340183fce12867ae5f8736b92a638:
serial/serial_arc - add driver for ARC UART (2014-02-07 12:55:07 -0500)
are available in the git repository at:
git://g
Squash the malloc()+memset() combo in favor of calloc().
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_ops.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c
index 1f1bb36..ef91b92 100644
--- a
Updated the dual_flash documentation as it uses
mode from spi drivers to inform the sf framework.
Signed-off-by: Jagannadha Sutradharudu Teki
---
doc/SPI/README.dual-flash | 5 +++--
doc/SPI/README.sf-features | 3 +++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/doc/SPI
- Shrink spi_slave {}
- Shrink spi_flash_params {}
- Documentation for sf features
Signed-off-by: Jagannadha Sutradharudu Teki
---
doc/SPI/README.sf-features| 121 +
drivers/mtd/spi/sf.c | 4 +-
drivers/mtd/spi/sf_internal.h | 1 -
drivers/mtd/spi
SF uses mode from driver side for informing whether
flash can operated in single or dual connections.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_probe.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd
Shrinked spi_slave and spi_flash code with respect to added
flash features.
V4:
- Use braces in bit fileds m << n becomes (m << n)
- Use mode instead of "mode_bits"
V3:
- Return -ENOMEM for calloc fails
V2:
- Divide dual_flash code into two patches.
Jagannadha Sutradharu
Updated bank configuration code to more readable.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_probe.c | 21 +++--
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index 22b6335..c0a3a35
for you to fetch changes up to 6dc0ce128f1d3ec8a06f98606d9c6f5020b98b3f:
sf: Update bank configuration (2014-01-27 22:47:17 +0530)
Jagannadha Sutradharudu Teki (5):
sf: ops: Squash the malloc+memset combo
sf: Optimize
changes up to b53c0ea9adb7b72f4e3074d382598b6b3d9c5037:
sf: Update bank configuration (2014-01-21 23:08:28 +0530)
Jagannadha Sutradharudu Teki (5):
sf: ops: Squash the malloc+memset combo
sf: Optimize flash features code
-boot-spi.git master
for you to fetch changes up to 83ba605953162443b054d5ad60535468b46558bd:
sf: Update bank configuration (2014-01-20 22:30:35 +0530)
Jagannadha Sutradharudu Teki (5):
sf: ops: Squash the malloc+memset combo
Updated bank configuration code to more readable.
Signed-off-by: Jagannadha Sutradharudu Teki
---
Changes for v3:
- remove bank_curr = 0 for non bank case
Changes for v2:
- none
drivers/mtd/spi/sf_probe.c | 21 +++--
1 file changed, 11 insertions(+), 10
Squash the malloc()+memset() combo in favor of calloc().
Signed-off-by: Jagannadha Sutradharudu Teki
---
Changes for v3:
- Use errno.h
Changes for v2:
- used debug()
drivers/mtd/spi/sf_ops.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd
Squash the malloc()+memset() combo in favor of calloc().
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
drivers/mtd/spi/sf_ops.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c
index 1f1bb36
SF uses mode_bits from driver side for informing whether
flash can operated in single or dual connections.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
drivers/mtd/spi/sf_probe.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi
From: Jagannadha Sutradharudu Teki
- Shrink spi_slave {}
- Shrink spi_flash_params {}
- Documentation for sf features
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
doc/SPI/README.sf-features| 122 ++
drivers/mtd/spi/sf.c | 4
Shrinked spi_slave and spi_flash code with respect to added
flash features.
Jagannadha Sutradharudu Teki (5):
sf: ops: Squash the malloc+memset combo
sf: Optimize flash features code
sf: Use mode_bits for dual_flash connection
doc: SPI: Update the dual_flash info
sf: Update bank
Updated the dual_flash documentation as it uses
mode_bits from spi drivers to inform the sf framework.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
doc/SPI/README.dual-flash | 5 +++--
doc/SPI/README.sf-features | 3 +++
2 files changed, 6 insertions(+), 2 deletions
Updated bank configuration code to more readable.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_probe.c | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index a5f3046
Shrinked spi_slave and spi_flash code with respect to added
flash features.
Jagannadha Sutradharudu Teki (6):
sf: ops: Squash the malloc+memset combo
sf: Optimize flash features code
sf: Renames on dual_flash stuff
sf: Update read/write command macros
sf: Minor macro cleanups
sf
Renamed SPI_FLASH with SF in few places in sf code.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 20 ++--
drivers/mtd/spi/sf_ops.c | 23 +++
drivers/mtd/spi/sf_probe.c| 19 +--
3 files changed, 30
Squash the malloc()+memset() combo in favor of calloc().
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
drivers/mtd/spi/sf_ops.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c
index 1f1bb36
- Used readable names for read/write command macros
- Added comments for the same
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
Cc: Simon Glass
---
drivers/mtd/spi/ramtron.c | 10 --
drivers/mtd/spi/sandbox.c | 12 ++--
drivers/mtd/spi/sf_internal.h | 16
Updated bank configuration code to more readable.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_probe.c | 22 --
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index 8f92333
- Used small names for dual_flash macros
- Updated doc/SPI/README.dual-flash
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
doc/SPI/README.dual-flash | 9 +
doc/SPI/README.sf-features | 3 +++
drivers/mtd/spi/sf_ops.c | 10 +-
drivers/mtd/spi/sf_probe.c
- Shrink spi_slave {}
- Shrink spi_flash_params {}
- Documentation for sf features
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
doc/SPI/README.sf-features| 122 ++
drivers/mtd/spi/sf.c | 4 +-
drivers/mtd/spi/sf_internal.h | 1
Combined spi flash stuff as minimum as possible.
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
drivers/mtd/spi/sf.c | 4 ++--
drivers/mtd/spi/sf_ops.c | 18 +-
drivers/mtd/spi/sf_probe.c | 19 ---
include/spi.h | 45
Squash the malloc()+memset() combo in favor of calloc().
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
drivers/mtd/spi/sf_ops.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c
index 1f1bb36..9650486
- SPI_FLASH -> SF
- ARRAY_SLOW -> AS
- ARRAY_FAST -> AF
- DUAL_OUTPUT_FAST -> DOF
- DUAL_IO_FAST - DIOF
- QUAD_OUTPUT_FAST - QOF
- QUAD_IO_FAST - QIOF
Signed-off-by: Jagannadha Sutradharudu Teki
Cc: Marek Vasut
---
drivers/mtd/spi/sf_int
:23
+0530)
Axel Lin (1):
spi: sh_spi: Use sh_spi_clear_bit() instead of open-coded
Jagannadha Sutradharudu Teki (17):
sf: Add extended read commands support
sf: Add quad read/write commands support
sf: ops: Add configuration register writi
Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 2 +
drivers/mtd/spi/sf_ops.c | 2 +-
drivers/mtd/spi/sf_probe.c| 190 +++---
include/spi.h | 8 ++
include/spi_flash.h | 10 +++
5 files changed, 126 insertions(+), 86
This patch added support for accessing dual memories in
parallel connection with single chipselect line from controller.
For more info - see doc/SPI/README.dual-flash
Signed-off-by: Jagannadha Sutradharudu Teki
---
doc/SPI/README.dual-flash | 27 +++
drivers/mtd/spi
QEB code comprises of couple of flash register read/write operations,
this patch moved flash register operations on to sf_op
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 11 ---
drivers/mtd/spi/sf_ops.c | 75
Unified the bar code from read_ops into a spi_flash_bar()
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_ops.c | 13 +
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/drivers/mtd/spi/sf_ops.c b/drivers/mtd/spi/sf_ops.c
index bc4a822..7ae9582 100644
This patch enabled RD_FULL and WR_QPP for supported flashes
in micron, winbond and spansion.
Remaining parts will be add in future patches.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_probe.c | 60 +++---
1 file changed, 30
- comment typo's
- func args have a proper names
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 11 +++
drivers/mtd/spi/sf_ops.c | 6 +++---
drivers/mtd/spi/sf_probe.c| 4 ++--
include/spi_flash.h | 5 -
4 files change
- 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 (17):
sf: Add
This patch adds support QUAD_IO_FAST read command.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 1 +
drivers/mtd/spi/sf_probe.c| 2 ++
include/spi.h | 4 +++-
include/spi_flash.h | 3 ++-
4 files changed, 8 insertions(+), 2
atile.
remaining flash devices support will add in future patches.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 10 --
drivers/mtd/spi/sf_ops.c | 26 ++
drivers/mtd/spi/sf_probe.c| 28
3
This config will use for defining greater than single flash support.
currently - DUAL_STACKED and DUAL_PARALLEL.
Signed-off-by: Jagannadha Sutradharudu Teki
---
README | 6 ++
drivers/mtd/spi/sf.c | 3 ++-
drivers/mtd/spi/sf_ops.c | 14 ++
drivers
Moved the flash params table from sf_probe.c and
placed on to sf_params.c, hence flash params file will
alter based on new addons.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/Makefile| 4 +-
drivers/mtd/spi/sf_params.c | 130
Added macronix flash quad read/write commands support and
it's up to the respective controller driver usecase to
configure the respective commands by defining SPI RX/TX
operation modes from include/spi.h on the driver.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_par
Discovered the read dummy_byte based on the
configured read command.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 2 ++
drivers/mtd/spi/sf_ops.c | 16 +---
drivers/mtd/spi/sf_probe.c| 19 +++
include/spi_flash.h
This patch add quad commands support like
- QUAD_PAGE_PROGRAM => for write program
- QUAD_OUTPUT_FAST ->> for read program
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 2 +
drivers/mtd/spi/sf_ops.c | 2 +-
drivers/mtd/spi/sf_probe.c
This patch added support for accessing dual memories in
stacked connection with single chipselect line from controller.
For more info - see doc/SPI/README.dual-flash
Signed-off-by: Jagannadha Sutradharudu Teki
---
doc/SPI/README.dual-flash | 65
Updated current SPI subsyetem status.
Signed-off-by: Jagannadha Sutradharudu Teki
---
doc/SPI/status.txt | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/doc/SPI/status.txt b/doc/SPI/status.txt
index 62c3c85..13889f5 100644
--- a/doc/SPI/status.txt
+++ b/doc/SPI
This patch provides support to program a flash config register.
Configuration register contains the control bits used to configure
the different configurations and security features of a device.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_ops.c | 24
This patch adds set QEB support for macronix flash devices
which are trying to program/read quad operations.
Signed-off-by: Jagannadha Sutradharudu Teki
---
drivers/mtd/spi/sf_internal.h | 5 +
drivers/mtd/spi/sf_ops.c | 26 ++
drivers/mtd/spi/sf_probe.c
1 - 100 of 699 matches
Mail list logo