[U-Boot] [PATCH v2 2/2] Remove #define BIT in local files.

2015-04-29 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2015-04-28 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v3] sf: Fix to compute proper sector_size

2015-04-27 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH v2] sf: Fix to compute proper sector_size

2015-04-24 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH v2] Revert "spi: add config option to enable the WP pin function on st micron flashes"

2015-04-23 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot 4/7] spi: zynq_spi: Add fdt support in driver

2015-04-23 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot 5/7] dts: zynq: Enable spi1 for zc770_xm010 board

2015-04-23 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot 7/7] spi: xilinx_spi: Add asm/io.h include file

2015-04-23 Thread Jagannadha Sutradharudu Teki
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(+)

[U-Boot] [U-Boot 6/7] dm: spi: xilinx_spi: Convert to driver model

2015-04-23 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot 0/7] dm: spi: Convert few drivers to driver model

2015-04-23 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot 2/7] zynq: Kconfig: Enable dm spi and spi_flash

2015-04-23 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot 3/7] dts: zynq: Add zynq spi controller nodes

2015-04-23 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot 1/7] dm: spi: zynq_spi: Convert to driver model

2015-04-23 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] sf: Fix to compute proper sector_size

2015-04-22 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH] linux/bitops.h: Add BIT macro

2015-04-21 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH 7/8] spi: davinci_spi: Move header code to driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH 8/8] spi: davinci_spi: Driver cleanup

2015-04-21 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH 5/8] spi: xilinx_spi: Move header code to driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH 0/8] spi: Driver cleanup series

2015-04-21 Thread Jagannadha Sutradharudu Teki
! -- 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

[U-Boot] [U-Boot PATCH 1/8] sf: Adjust tab space's

2015-04-21 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH 3/8] spi: Zap ftssp010_spi driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH 4/8] spi: Zap oc_tiny_spi driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [U-Boot PATCH 6/8] spi: xilinx_spi: Driver clean-up

2015-04-21 Thread Jagannadha Sutradharudu Teki
-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

[U-Boot] [U-Boot PATCH 2/8] spi: Zap andes_spi driver

2015-04-21 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH] sf: Adjust tab space's

2015-04-21 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2015-03-31 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2015-01-08 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2015-01-01 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-12-29 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH] Revert "spi: add config option to enable the WP pin function on st micron flashes"

2014-12-18 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 5/6] x86: ich-spi: Set the rx operation mode for ich 7

2014-12-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 3/6] spi: sf: Support byte program for sst spi flash

2014-12-12 Thread Jagannadha Sutradharudu Teki
(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

[U-Boot] [PATCH v2 4/6] sf: Enable byte program support

2014-12-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 6/6] x86: ich-spi: Set the tx operation mode for ich 7

2014-12-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 2/6] spi: Fix flag collision for SST_WP

2014-12-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 1/6] sf: Fix look for the fastest read command

2014-12-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 0/6] sf: SST changes, Byte program

2014-12-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 4/4] sf: Enable byte program support

2014-12-09 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 1/4] sf: Fix look for the fastest read command

2014-12-09 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 3/4] spi: sf: Support byte program for sst spi flash

2014-12-09 Thread Jagannadha Sutradharudu Teki
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 (

[U-Boot] [PATCH 2/4] spi: Fix flag collision for SST_WP

2014-12-09 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 0/4] sf: SST changes, Byte program

2014-12-09 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [RFC PATCH] sf: New SF-NOR framework

2014-11-11 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH] mtd: sf: Zap ramtron driver

2014-11-06 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-10-27 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-09-24 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 2/2] doc: Use KBUILD_OUTPUT instead of BUILD_DIR

2014-08-31 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 1/2] sandbox: Update minor documentation changes

2014-08-31 Thread Jagannadha Sutradharudu Teki
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'

[U-Boot] [PATCH 2/2] doc: Use KBUILD_OUTPUT instead of BUILD_DIR

2014-08-29 Thread 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 --- MAKEALL | 12 ++-- README | 10 +- doc/README.kwbimage | 4 ++-- 3 files

[U-Boot] [PATCH 1/2] sandbox: Update minor documentation changes

2014-08-29 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-08-05 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-06-08 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-03-17 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-02-18 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v4 1/5] sf: ops: Squash the malloc+memset combo

2014-02-04 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v4 4/5] doc: SPI: Update the dual_flash info

2014-02-04 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v4 2/5] sf: Optimize flash features code

2014-02-04 Thread Jagannadha Sutradharudu Teki
- 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

[U-Boot] [PATCH v4 3/5] sf: Use slave mode for dual_flash connection

2014-02-04 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v4 0/5] sf: Optimize spi_flash features code

2014-02-04 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v4 5/5] sf: Update bank configuration

2014-02-04 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-01-27 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-01-22 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] Pull request: u-boot-spi/master

2014-01-20 Thread Jagannadha Sutradharudu Teki
-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

[U-Boot] [PATCH v3] sf: Update bank configuration

2014-01-20 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v3] sf: ops: Squash the malloc+memset combo

2014-01-20 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 1/5] sf: ops: Squash the malloc+memset combo

2014-01-20 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 3/5] sf: Use mode_bits for dual_flash connection

2014-01-20 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 2/5] sf: Optimize flash features code

2014-01-20 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 0/5] sf: Optimize spi_flash features code

2014-01-20 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 4/5] doc: SPI: Update the dual_flash info

2014-01-20 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v2 5/5] sf: Update bank configuration

2014-01-20 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 0/6] sf: Optimize spi_flash features code

2014-01-18 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 5/6] sf: Minor macro cleanups

2014-01-18 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 1/6] sf: ops: Squash the malloc+memset combo

2014-01-18 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 4/6] sf: Update read/write command macros

2014-01-18 Thread Jagannadha Sutradharudu Teki
- 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

[U-Boot] [PATCH 6/6] sf: Update bank configuration

2014-01-18 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 3/6] sf: Renames on dual_flash stuff

2014-01-18 Thread Jagannadha Sutradharudu Teki
- 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

[U-Boot] [PATCH 2/6] sf: Optimize flash features code

2014-01-18 Thread 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 +- drivers/mtd/spi/sf_internal.h | 1

[U-Boot] [PATCH 2/3] sf: Shrink spi_slave {}

2014-01-17 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 1/3] sf: ops: Squash the malloc+memset combo

2014-01-17 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH 3/3] sf: Use shortcut names

2014-01-17 Thread Jagannadha Sutradharudu Teki
- 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

[U-Boot] Pull request: u-boot-spi/master

2014-01-13 Thread Jagannadha Sutradharudu Teki
: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

[U-Boot] [PATCH v7 01/17] sf: Add extended read commands support

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 15/17] sf: Add dual memories support - DUAL_PARALLEL

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 11/17] sf: Divide flash register ops from QEB code

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 13/17] sf: ops: Unify read_ops bank configuration

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 05/17] sf: probe: Enable RD_FULL and WR_QPP

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 12/17] sf: Code cleanups

2014-01-12 Thread Jagannadha Sutradharudu Teki
- 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

[U-Boot] [PATCH v7 00/17] sf: Add support for quad and dual_flash

2014-01-12 Thread Jagannadha Sutradharudu Teki
- 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

[U-Boot] [PATCH v7 07/17] sf: Add QUAD_IO_FAST read support

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 04/17] sf: Set quad enable bit support

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 16/17] sf: Add CONFIG_SF_DUAL_FLASH

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 06/17] sf: Separate the flash params table

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 10/17] sf: probe: Enable macronix quad read/write cmds support

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 08/17] sf: Discover read dummy_byte

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 02/17] sf: Add quad read/write commands support

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 14/17] sf: Add dual memories support - DUAL_STACKED

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 17/17] doc: SPI: Update status.txt

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 03/17] sf: ops: Add configuration register writing support

2014-01-12 Thread Jagannadha Sutradharudu Teki
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

[U-Boot] [PATCH v7 09/17] sf: Add macronix set QEB support

2014-01-12 Thread Jagannadha Sutradharudu Teki
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   2   3   4   5   6   7   >