[U-Boot] [PATCH v3 05/12] ARM: dts: k2hk: Enable Davinci SPI controller

2016-05-04 Thread Vignesh R
Now that davinci_spi driver has been converted to DM framework, enable the same in DT. Also add "spi-flash" as compatible property to n25q128a11 node as it is required for flash device to be probed in U-Boot. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <

[U-Boot] [PATCH v3 07/12] ARM: dts: k2e: Enable Davinci SPI controller

2016-05-04 Thread Vignesh R
Now that davinci_spi driver has been converted to DM framework, enable the same in DT. Also add "spi-flash" as compatible property to n25q128a11 node as it is required for flash device to be probed in U-Boot. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <

[U-Boot] [PATCH v3 08/12] defconfig: k2e_evm_defconfig: enable SPI driver model

2016-05-04 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2E SPI controller driver supports driver model. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/k2e_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2e_evm_defconf

[U-Boot] [PATCH v3 06/12] defconfig: k2hk_evm_defconfig: enable SPI driver model

2016-05-04 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2HK SPI controller driver supports driver model. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/k2hk_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2hk_evm

[U-Boot] [PATCH v3 04/12] ARM: dts: keystone2: add SPI aliases for davinci SPI nodes

2016-05-04 Thread Vignesh R
Add aliases for SPI nodes in order for it to be probed by the DM framework. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- arch/arm/dts/keystone.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/keystone.dtsi b/

[U-Boot] [PATCH v3 02/12] spi: davinci_spi: Convert to driver to adapt to DM

2016-05-04 Thread Vignesh R
Convert davinci_spi driver so that it complies with SPI DM framework. Signed-off-by: Vignesh R <vigne...@ti.com> --- v3: No changes v2: Add comments to struct davinci_spi_slave members. Use dev_map_physmem() added by previous patch. drivers/spi/davinci_spi.c

[U-Boot] [PATCH v3 03/12] keystone2: spi: do not define DM_SPI and DM_SPI_FLASH for SPL build

2016-05-04 Thread Vignesh R
Since Keystone2 devices do not have support DM in SPL, do not define DM_SPI and DM_SPI_FLASH for SPL build. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- include/configs/ti_armv7_keystone2.h | 4 1 file changed, 4 insertions(+)

[U-Boot] [PATCH v3 01/12] dm: core: implement dev_map_phsymem()

2016-05-04 Thread Vignesh R
This API helps to map physical register addresss pace of device to virtual address space easily. Its just a wrapper around map_physmem() with MAP_NOCACHE flag. Signed-off-by: Vignesh R <vigne...@ti.com> Suggested-by: Simon Glass <s...@chromium.org> --- v3: Explicitly include header f

[U-Boot] [PATCH v3 00/12] Convert davinci_spi to DM

2016-05-04 Thread Vignesh R
This series converts davinci_spi driver to adapt to driver model framework. And enables the driver on k2l, k2e, k2hk evms. Also, added support for davinci_spi on k2g evm. Tested on k2l, k2e, k2hk and k2g evms. Rebased on top of v2016.05-rc3 Vignesh R (12): dm: core: implement dev_map_phsymem

Re: [U-Boot] [PATCH 01/11] spi: davinci_spi: Convert to driver to adapt to DM

2016-05-01 Thread Vignesh R
Hi, On 05/02/2016 12:25 AM, Simon Glass wrote: > i Vignesh, > > On 21 April 2016 at 02:42, Vignesh R <vigne...@ti.com> wrote: [...] >>>> +static int davinci_ofdata_to_platadata(struct udevice *bus) >>>> +{ >>>> + struct davinci_spi_sla

Re: [U-Boot] [PATCH 1/2] mtd: cqspi: Simplify indirect write code

2016-04-29 Thread Vignesh R
y: Marek Vasut <ma...@denx.de> > Cc: Anatolij Gustschin <ag...@denx.de> > Cc: Chin Liang See <cl...@altera.com> > Cc: Dinh Nguyen <dingu...@opensource.altera.com> > Cc: Jagan Teki <jt...@openedev.com> > Cc: Pavel Machek <pa...@denx.de> > Cc: Stef

[U-Boot] [PATCH v2 11/12] ARM: dts: k2g: add support for Davinci SPI controller

2016-04-25 Thread Vignesh R
K2G SoC has 4 SPI instances that are compatible with davinci_spi controller(present on previous generation of Keystone2 devices). Add DT nodes for the same. K2G EVM has a N25Q128A13 SPI NOR flash connected on SPI-1. Add DT bindings for the same. Signed-off-by: Vignesh R <vigne...@ti.com> Re

[U-Boot] [PATCH v2 12/12] defconfig: k2g_evm_defconfig: enable SPI driver model

2016-04-25 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2G SPI controller driver supports driver model. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/k2g_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2g_evm_defconf

[U-Boot] [PATCH v2 10/12] defconfig: k2l_evm_defconfig: enable SPI driver model

2016-04-25 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2L SPI controller driver supports driver model. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/k2l_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2l_evm_defconf

[U-Boot] [PATCH v2 08/12] defconfig: k2e_evm_defconfig: enable SPI driver model

2016-04-25 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2E SPI controller driver supports driver model. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/k2e_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2e_evm_defconf

[U-Boot] [PATCH v2 09/12] ARM: dts: k2l: Enable Davinci SPI controller

2016-04-25 Thread Vignesh R
Now that davinci_spi driver has been converted to DM framework, enable the same in DT. Also add "spi-flash" as compatible property to n25q128a11 node as it is required for flash device to be probed in U-Boot. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <

[U-Boot] [PATCH v2 06/12] defconfig: k2hk_evm_defconfig: enable SPI driver model

2016-04-25 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2HK SPI controller driver supports driver model. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- configs/k2hk_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2hk_evm

[U-Boot] [PATCH v2 07/12] ARM: dts: k2e: Enable Davinci SPI controller

2016-04-25 Thread Vignesh R
Now that davinci_spi driver has been converted to DM framework, enable the same in DT. Also add "spi-flash" as compatible property to n25q128a11 node as it is required for flash device to be probed in U-Boot. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <

[U-Boot] [PATCH v2 04/12] ARM: dts: keystone2: add SPI aliases for davinci SPI nodes

2016-04-25 Thread Vignesh R
Add aliases for SPI nodes in order for it to be probed by the DM framework. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- arch/arm/dts/keystone.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/keystone.dtsi b/

[U-Boot] [PATCH v2 02/12] spi: davinci_spi: Convert to driver to adapt to DM

2016-04-25 Thread Vignesh R
Convert davinci_spi driver so that it complies with SPI DM framework. Signed-off-by: Vignesh R <vigne...@ti.com> --- v2: Add comments to struct davinci_spi_slave members. Use dev_map_physmem() added by previous patch. drivers/spi/davinci_spi.c

[U-Boot] [PATCH v2 05/12] ARM: dts: k2hk: Enable Davinci SPI controller

2016-04-25 Thread Vignesh R
Now that davinci_spi driver has been converted to DM framework, enable the same in DT. Also add "spi-flash" as compatible property to n25q128a11 node as it is required for flash device to be probed in U-Boot. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <

[U-Boot] [PATCH v2 03/12] keystone2: spi: do not define DM_SPI and DM_SPI_FLASH for SPL build

2016-04-25 Thread Vignesh R
Since Keystone2 devices do not have support DM in SPL, do not define DM_SPI and DM_SPI_FLASH for SPL build. Signed-off-by: Vignesh R <vigne...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- include/configs/ti_armv7_keystone2.h | 4 1 file changed, 4 insertions(+)

[U-Boot] [PATCH v2 00/12] ARM: Keystone2: Convert davinci_spi to DM

2016-04-25 Thread Vignesh R
This series converts davinci_spi driver to adapt to driver model framework. And enables the driver on k2l, k2e, k2hk evms. Also, added support for davinci_spi on k2g evm. Tested on k2l, k2e, k2hk and k2g evms. v1: http://comments.gmane.org/gmane.comp.boot-loaders.u-boot/258285 Vignesh R (12

[U-Boot] [PATCH v2 01/12] dm: core: implement dev_map_phsymem()

2016-04-25 Thread Vignesh R
This API helps to map physical register addresss pace of device to virtual address space easily. Its just a wrapper around map_physmem() with MAP_NOCACHE flag. Signed-off-by: Vignesh R <vigne...@ti.com> Suggested-by: Simon Glass <s...@chromium.org> --- v2: New patch drivers/core/d

Re: [U-Boot] [PATCH 01/11] spi: davinci_spi: Convert to driver to adapt to DM

2016-04-21 Thread Vignesh R
Hi, On 04/20/2016 08:10 PM, Simon Glass wrote: > On 12 April 2016 at 05:33, Vignesh R <vigne...@ti.com> wrote: >> Convert davinci_spi driver to comply with SPI DM framework. >> >> Signed-off-by: Vignesh R <vigne...@ti.com> >>

Re: [U-Boot] [PATCH v3] dm: spi: Read default speed and mode values from DT

2016-04-21 Thread Vignesh R
Hi Qianyu, [...] @@ -308,6 +307,11 @@ int spi_get_bus_and_cs(int busnum, int cs, int >>> speed, int >>> mode, >>> slave->dev = dev; >>> } >>> >>> + plat = dev_get_parent_platdata(dev); >>> + if (!speed) {

Re: [U-Boot] [PATCH v3] dm: spi: Read default speed and mode values from DT

2016-04-20 Thread Vignesh R
On 04/20/2016 03:26 PM, Qianyu Gong wrote: > Hi Vignesh, > > > >> Date: Wed, 13 Apr 2016 15:40:53 +0530 > >> From: Vignesh R <vigne...@ti.com <mailto:vigne...@ti.com>> > >> To: Jagan Teki <jt...@openedev.com <mailto:jt...@ope

Re: [U-Boot] [PATCH 03/11] ARM: dts: keystone2: add SPI aliases for davinci SPI nodes

2016-04-13 Thread Vignesh R
On 04/12/2016 10:54 PM, Tom Rini wrote: > On Tue, Apr 12, 2016 at 05:03:19PM +0530, Vignesh R wrote: > >> Add aliases for SPI nodes in order for it to be probed by the DM >> framework. >> >> Signed-off-by: Vignesh R <vigne...@ti.com> > >

[U-Boot] [PATCH 4/4] defconfig: k2g_evm_defconfig: Enable Cadence QSPI controller

2016-04-13 Thread Vignesh R
Enable Cadence QSPI controller support to use QSPI on K2G SoC. Also enable Spansion flash support to access s25fl512s flash present on K2G QSPI bus. Signed-off-by: Vignesh R <vigne...@ti.com> --- configs/k2g_evm_defconfig | 2 ++ include/configs/k2g_evm.h | 6 ++ 2 files chan

[U-Boot] [PATCH 1/4] spi: cadence_qspi_apb: Support 32 bit AHB address

2016-04-13 Thread Vignesh R
AHB address can be as long as 32 bit, hence remove the CQSPI_REG_INDIRECTRDSTARTADDR mask. Since AHB address is passed from DT and read as u32 value, it anyway does not make sense to mask upper bits. Signed-off-by: Vignesh R <vigne...@ti.com> --- drivers/spi/cadence_qspi_apb.c | 5 ++---

[U-Boot] [PATCH 2/4] spi: cadence_quadspi: Enable QUAD mode based on DT data

2016-04-13 Thread Vignesh R
-by: Vignesh R <vigne...@ti.com> --- drivers/spi/cadence_qspi.c | 3 ++- drivers/spi/cadence_qspi.h | 2 +- drivers/spi/cadence_qspi_apb.c | 10 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c index 4f7fd5

[U-Boot] [PATCH 3/4] ARM: dts: K2G: Add support for QSPI controller

2016-04-13 Thread Vignesh R
K2G SoC has a Cadence QSPI controller to communicate with NOR flash devices. Add DT nodes to support the same. Also, K2G EVM has a s25fl512s flash connect to QSPI bus at CS 0. Add nor flash slave node for the same. Signed-off-by: Vignesh R <vigne...@ti.com> --- arch/arm/dts/k2g-evm.dt

[U-Boot] [PATCH 0/4] Add support for Cadence QSPI on K2G

2016-04-13 Thread Vignesh R
the driver. Depends on [1] to enable SPI driver model support on K2G and [2] to support different bus frequencies for two different SPI controllers present on K2G EVM. [1]https://www.mail-archive.com/u-boot@lists.denx.de/msg209556.html [2]https://patchwork.ozlabs.org/patch/609947/ Vignesh R (4

Re: [U-Boot] [PATCH v2] dm: spi: Read default speed values from DT

2016-04-13 Thread Vignesh R
On 04/13/2016 03:37 PM, Vignesh R wrote: > In case of DT boot, don't read default speed for SPI from > CONFIG_*, instead read from DT node. This will make sure that boards > with multiple SPI/QSPI controllers can be probed at different > bus frequencies. > > Signed-off-by

[U-Boot] [PATCH v3] dm: spi: Read default speed and mode values from DT

2016-04-13 Thread Vignesh R
In case of DT boot, don't read default speed and mode for SPI from CONFIG_*, instead read from DT node. This will make sure that boards with multiple SPI/QSPI controllers can be probed at different bus frequencies and SPI modes. Signed-off-by: Vignesh R <vigne...@ti.com> --- v3: Update

[U-Boot] [PATCH v2] dm: spi: Read default speed values from DT

2016-04-13 Thread Vignesh R
In case of DT boot, don't read default speed for SPI from CONFIG_*, instead read from DT node. This will make sure that boards with multiple SPI/QSPI controllers can be probed at different bus frequencies. Signed-off-by: Vignesh R <vigne...@ti.com> --- v2: Initialize speed, mode to 0 i

[U-Boot] [PATCH 08/11] ARM: dts: k2l: Enable Davinci SPI controller

2016-04-12 Thread Vignesh R
Now that davinci_spi driver has been converted to DM framework, enable the same in DT. Also add "spi-flash" as compatible property to n25q128a11 node as it is required for flash device to be probed in U-Boot. Signed-off-by: Vignesh R <vigne...@ti.com> --- arch/arm/dts/k2l-evm.dts

[U-Boot] [PATCH 09/11] defconfig: k2l_evm_defconfig: enable SPI driver model

2016-04-12 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2L SPI controller driver supports driver model. Signed-off-by: Vignesh R <vigne...@ti.com> --- configs/k2l_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2l_evm_defconfig b/configs/k2l_evm_defconfig index d2ebb1

[U-Boot] [PATCH 11/11] defconfig: k2g_evm_defconfig: enable SPI driver model

2016-04-12 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2G SPI controller driver supports driver model. Signed-off-by: Vignesh R <vigne...@ti.com> --- configs/k2g_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2g_evm_defconfig b/configs/k2g_evm_defconfig index 054581

[U-Boot] [PATCH 10/11] ARM: dts: k2g: add support for Davinci SPI controller

2016-04-12 Thread Vignesh R
K2G SoC has 4 SPI instances that are compatible with davinci_spi controller(same as previous generation of Keystone2 devices). Add DT nodes for the same. K2G EVM has a N25Q128A13 SPI NOR flash connected on SPI-1. Add DT bindings for the same. Signed-off-by: Vignesh R <vigne...@ti.com> ---

[U-Boot] [PATCH 07/11] defconfig: k2e_evm_defconfig: enable SPI driver model

2016-04-12 Thread Vignesh R
Enable SPI and SPI Flash driver model as K2E SPI controller driver supports driver model. Signed-off-by: Vignesh R <vigne...@ti.com> --- configs/k2e_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/k2e_evm_defconfig b/configs/k2e_evm_defconfig index a3fa75

[U-Boot] [PATCH 06/11] ARM: dts: k2e: Enable Davinci SPI controller

2016-04-12 Thread Vignesh R
Now that davinci_spi driver has been converted to DM framework, enable the same in DT. Also add "spi-flash" as compatible property to n25q128a11 node as it is required for flash device to be probed in U-Boot. Signed-off-by: Vignesh R <vigne...@ti.com> --- arch/arm/dts/k2e-evm.dts

[U-Boot] [PATCH 04/11] ARM: dts: k2hk: Enable Davinci SPI controller

2016-04-12 Thread Vignesh R
Now that davinci_spi driver has been converted to DM framework, enable the same in DT. Also add "spi-flash" as compatible property to n25q128a11 node as it is required for flash device to be probed in U-Boot. Signed-off-by: Vignesh R <vigne...@ti.com> --- arch/arm/dts/k2hk-ev

[U-Boot] [PATCH 01/11] spi: davinci_spi: Convert to driver to adapt to DM

2016-04-12 Thread Vignesh R
Convert davinci_spi driver to comply with SPI DM framework. Signed-off-by: Vignesh R <vigne...@ti.com> --- drivers/spi/davinci_spi.c | 326 +- 1 file changed, 237 insertions(+), 89 deletions(-) diff --git a/drivers/spi/davinci_spi.c b/drive

[U-Boot] [PATCH 03/11] ARM: dts: keystone2: add SPI aliases for davinci SPI nodes

2016-04-12 Thread Vignesh R
Add aliases for SPI nodes in order for it to be probed by the DM framework. Signed-off-by: Vignesh R <vigne...@ti.com> --- arch/arm/dts/keystone.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/keystone.dtsi b/arch/arm/dts/keystone.dtsi index f39b969f8d43..be97f3

[U-Boot] [PATCH 00/11] ARM: Keystone2: Convert davinci_spi to DM

2016-04-12 Thread Vignesh R
This series converts davinci_spi driver to adapt to driver model framework. And enables the driver on k2l, k2e, k2hk evms. Also, added support for davinci_spi on k2g evm. Tested on k2l, k2e, k2hk and k2g evms. Vignesh R (11): spi: davinci_spi: Convert to driver to adapt to DM keystone2: spi

[U-Boot] [PATCH 02/11] keystone2: spi: do not define DM_SPI and DM_SPI_FLASH for SPL build

2016-04-12 Thread Vignesh R
Since Keystone2 devices do not have support DM in SPL, do not define DM_SPI and DM_SPI_FLASH for SPL build. Signed-off-by: Vignesh R <vigne...@ti.com> --- include/configs/ti_armv7_keystone2.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/ti_armv7_keystone2.h b/i

Re: [U-Boot] [PATCH] dm: spi: Read default speed, mode values from DT

2016-04-11 Thread Vignesh R
On 04/11/2016 11:18 AM, Mugunthan V N wrote: > On Monday 11 April 2016 10:12 AM, Vignesh R wrote: >> >> >> On 04/09/2016 01:15 AM, Tom Rini wrote: >>> On Thu, Apr 07, 2016 at 09:02:26PM +0530, Vignesh R wrote: >>> >>>> In case of DT b

Re: [U-Boot] [PATCH] dm: spi: Read default speed, mode values from DT

2016-04-10 Thread Vignesh R
On 04/09/2016 01:15 AM, Tom Rini wrote: > On Thu, Apr 07, 2016 at 09:02:26PM +0530, Vignesh R wrote: > >> In case of DT boot, don't read default speed and mode for SPI from >> CONFIG_*, instead read from DT node. This will make sure that boards >> with multiple

[U-Boot] [PATCH] dm: spi: Read default speed, mode values from DT

2016-04-07 Thread Vignesh R
In case of DT boot, don't read default speed and mode for SPI from CONFIG_*, instead read from DT node. This will make sure that boards with multiple SPI/QSPI controllers can be probed at different bus frequencies and modes. Signed-off-by: Vignesh R <vigne...@ti.com> --- cm

[U-Boot] [PATCH] ARM : DRA7: Switch QSPI to use MODE-0 at 64MHz

2016-02-09 Thread Vignesh R
According to Data Manual(SPRS915P) of AM572x, TI QSPI controller on DRA74 EVM(rev 1.1+) can support up to 64MHz in MODE-0, whereas MODE-3 is limited to 48MHz. Hence, switch to MODE-0 for better throughput. Also, add IODelay parameters for the same. Signed-off-by: Vignesh R <vigne...@ti.

[U-Boot] [PATCH] am43xx: qspi: Fix config to select SPI mode

2016-02-09 Thread Vignesh R
CONFIG_SF_DEFAULT_MODE is used to select default SPI mode when using sf commands. Therefore fix am43xx to use CONFIG_SF_DEFAULT_MODE instead of CONFIG_DEFAULT_SPI_MODE. Signed-off-by: Vignesh R <vigne...@ti.com> --- include/configs/am43xx_evm.h | 2 +- 1 file changed, 1 insertion(+), 1 de

Re: [U-Boot] [PATCH] spi: ti_qspi: Use 4-byte opcode for mmap read

2015-12-03 Thread Vignesh R
On 12/03/2015 05:55 PM, Jagan Teki wrote: > On Thursday 03 December 2015 05:51 PM, Vignesh R wrote: >> >> >> On 12/03/2015 05:25 PM, Jagan Teki wrote: >>> On 23 November 2015 at 17:43, Vignesh R <vigne...@ti.com> wrote: >>>> ti-qspi driver c

Re: [U-Boot] [PATCH] spi: ti_qspi: Use 4-byte opcode for mmap read

2015-12-03 Thread Vignesh R
On 12/03/2015 05:25 PM, Jagan Teki wrote: > On 23 November 2015 at 17:43, Vignesh R <vigne...@ti.com> wrote: >> ti-qspi driver currently uses 3-byte addressing mode(and opcodes) for >> memory-mapped read. This restricts maximum addressable flash size to >> 16MB. >

[U-Boot] [PATCH] spi: ti_qspi: Use 4-byte opcode for mmap read

2015-11-23 Thread Vignesh R
vib...@ti.com> [vigne...@ti.com: Re-word commit description] Signed-off-by: Vignesh R <vigne...@ti.com> --- Tested on DRA74 EVM with Spansion flash and AM437X IDK EVM with Macronix flash. drivers/spi/ti_qspi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[U-Boot] [PATCH] am33xx: Remove serial_init in s_init for QSPI/NOR XIP boot

2015-11-20 Thread Vignesh R
XIP boot. Signed-off-by: Vignesh R <vigne...@ti.com> --- arch/arm/cpu/armv7/am33xx/board.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c index bd14326cf479..1633ddc6b096 100644 --- a/arch/arm/cpu/armv7/am33xx/b

Re: [U-Boot] QSPI XIP boot on am437x

2015-11-16 Thread Vignesh R
Hi Albert, On 11/16/2015 05:16 PM, Albert ARIBAUD wrote: > Hello Vignesh, > [...] Do you see any issues with above change? >>> >>> (1) So your s_init runs even before board_init_f_mem(), right? >>> >>> Your working fix seems to imply that as long as s_init() is run after >>>

Re: [U-Boot] [PATCH 0/2] am43xx: Enable QUAD mode and DMA support for QSPI

2015-11-16 Thread Vignesh R
On 11/10/2015 11:52 AM, Vignesh R wrote: > This patchset enables QUAD mode and DMA support for qspi read on > am437x. This increases the througput to 4 MB/s. > > Tested on am437x-sk and am437x-idk evm. > > Vignesh R (2): > spi: ti_qspi: Add dummy readl for bus sync >

Re: [U-Boot] [PATCH 1/2] spi: ti_qspi: Add dummy readl for bus sync

2015-11-16 Thread Vignesh R
On 11/17/2015 11:33 AM, Jagan Teki wrote: > On 10 November 2015 at 11:52, Vignesh R <vigne...@ti.com> wrote: >> Add dummy readl after invalidating cmd field of QSPI_CMD_REG to ensure >> bus sync. Without this device's CS is not deactivated reliably leading >> to

[U-Boot] QSPI XIP boot on am437x

2015-11-10 Thread Vignesh R
Hi, With commit 7ae8350f67eea("ti: armv7: Move SPL SDRAM init to the right place, drop unused CONFIG_SPL_STACK") QSPI XIP boot appears to be broken on AM437x SK EVM. Following UART initialization code (as indicated by TODO) causes the XIP boot failure. In arch/arm/cpu/armv7/am33xx/board.c: @@

[U-Boot] [PATCH 2/2] ARM: am43xx: Enable QUAD read and EDMA support for ti_qspi

2015-11-09 Thread Vignesh R
Enable TI_EDMA3 and QUAD read support for ti_qspi on am43xx, this increases read performance to 4 MB/s. Signed-off-by: Vignesh R <vigne...@ti.com> --- arch/arm/include/asm/arch-am33xx/hardware_am43xx.h | 3 +++ include/configs/am43xx_evm.h | 2 ++ 2 files chan

[U-Boot] [PATCH 0/2] am43xx: Enable QUAD mode and DMA support for QSPI

2015-11-09 Thread Vignesh R
This patchset enables QUAD mode and DMA support for qspi read on am437x. This increases the througput to 4 MB/s. Tested on am437x-sk and am437x-idk evm. Vignesh R (2): spi: ti_qspi: Add dummy readl for bus sync ARM: am437xx: Enable QUAD read and EDMA support for ti_qspi arch/arm/include

[U-Boot] [PATCH 1/2] spi: ti_qspi: Add dummy readl for bus sync

2015-11-09 Thread Vignesh R
Add dummy readl after invalidating cmd field of QSPI_CMD_REG to ensure bus sync. Without this device's CS is not deactivated reliably leading to failure to enumerate flash or failure to set quad enable bit on Macronix flash present on am437x-sk and am437x-idk evms. Signed-off-by: Vignesh R <vi

Re: [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash

2015-11-03 Thread Vignesh R
On 10/22/2015 11:30 AM, Vignesh R wrote: > This adds support to update firmware on qspi flash present on > am437x-sk-evm and am43xx-epos-evm via DFU. > > On device: > => setenv dfu_alt_info ${dfu_alt_info_qspi} > => dfu 0 sf 0:0 > > On host: > $ sudo dfu-util -

Re: [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash

2015-10-27 Thread Vignesh R
On 10/22/2015 11:30 AM, Vignesh R wrote: > This adds support to update firmware on qspi flash present on > am437x-sk-evm and am43xx-epos-evm via DFU. > > On device: > => setenv dfu_alt_info ${dfu_alt_info_qspi} > => dfu 0 sf 0:0 > > On host: > $ sudo dfu-util -

Re: [U-Boot] [PATCH v5 14/23] spi: ti_qspi: Use BIT macro

2015-10-26 Thread Vignesh R
On 10/24/2015 09:09 AM, Jagan Teki wrote: > Replace numerical bit shift with BIT macro > in ti_qspi > > :%s/(1 << nr)/BIT(nr)/g > where nr = 0, 1, 2 .... 31 > > Cc: Vignesh R <vigne...@ti.com> > Reviewed-by: Tom Rini <tr...@konsulko.com> >

[U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash

2015-10-22 Thread Vignesh R
This adds support to update firmware on qspi flash present on am437x-sk-evm and am43xx-epos-evm via DFU. On device: => setenv dfu_alt_info ${dfu_alt_info_qspi} => dfu 0 sf 0:0 On host: $ sudo dfu-util -l $ sudo dfu-util -D u-boot.bin -a u-boot.bin Signed-off-by: Vignesh R <vigne.

Re: [U-Boot] [PATCH] am43xx_evm: Add DFU support for qspi flash

2015-10-21 Thread Vignesh R
Hi Lokesh, On 10/21/2015 06:10 PM, Lokesh Vutla wrote: > Hi Vignesh, > > On Wednesday 21 October 2015 10:10 AM, Vignesh R wrote: >> This adds support to update firmware on qspi flash present on >> am437x-sk-evm and am43xx-epos-evm via DFU. >> >> On

Re: [U-Boot] [PATCH 2/2] ARM: dra7xx_evm: Add DFU support for qspi flash

2015-10-20 Thread Vignesh R
util -D MLO -a MLO and sudo dfu-util -a 0 -D MLO are correct. I used the above format as its easier for reading. Thanks! >> >> Signed-off-by: Vignesh R <vigne...@ti.com> >> --- >> include/configs/dra7xx_evm.h | 16 +++- >> 1 file chan

[U-Boot] [PATCH 1/2] dfu: dfu_sf: Pass duplicate devstr to parse_dev

2015-10-20 Thread Vignesh R
-off-by: Vignesh R <vigne...@ti.com> --- drivers/dfu/dfu_sf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c index 7646c6b7270c..9702eeea202a 100644 --- a/drivers/dfu/dfu_sf.c +++ b/drivers/dfu/dfu_sf.c @@ -115,8 +115,10 @@

[U-Boot] [PATCH 2/2] ARM: dra7xx_evm: Add DFU support for qspi flash

2015-10-20 Thread Vignesh R
This adds support to update firmware on qspi flash using DFU. On device: => setenv dfu_alt_info ${dfu_alt_info_qspi} => dfu 0 sf 0:0 On host: $ sudo dfu-util -l $ sudo dfu-util -D MLO -a MLO $ sudo dfu-util -D u-boot.img -a u-boot.img Signed-off-by: Vignesh R <vigne...@ti.com>

[U-Boot] [PATCH 0/2] DFU support for qspi on dra7xx

2015-10-20 Thread Vignesh R
using via DFU and then booting the board in QSPI boot mode. Vignesh R (2): dfu: dfu_sf: Pass duplicate devstr to parse_dev ARM: dra7xx_evm: Add DFU support for qspi flash drivers/dfu/dfu_sf.c | 4 +++- include/configs/dra7xx_evm.h | 16 +++- 2 files changed, 18

[U-Boot] [PATCH] am43xx_evm: Add DFU support for qspi flash

2015-10-20 Thread Vignesh R
This adds support to update firmware on qspi flash present on am437x-sk-evm and am43xx-epos-evm via DFU. On device: => setenv dfu_alt_info ${dfu_alt_info_qspi} => dfu 0 sf 0:0 On host: $ sudo dfu-util -l $ sudo dfu-util -D u-boot.img -a u-boot.img Signed-off-by: Vignesh R <vigne.

[U-Boot] [U-Boot RESEND v2 09/10] spi: ti_qspi: Use DMA to read from qspi flash

2015-08-17 Thread Vignesh R
ti_qspi uses memory map mode for faster read. Enabling DMA will increase read speed by 3x @48MHz on DRA74 EVM. Signed-off-by: Vignesh R vigne...@ti.com Reviewed-by: Jagan Teki jt...@openedev.com --- * Added a TODO comment drivers/spi/ti_qspi.c | 25 + 1 file changed, 25

[U-Boot] [U-Boot RESEND v2 03/10] ARM: AM43xx: Add support for disabling clocks in uboot

2015-08-17 Thread Vignesh R
From: Kishon Vijay Abraham I kis...@ti.com Add do_disable_clocks() to disable clock domains and module clocks. These clocks are enabled using do_enable_clocks(). Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Signed-off-by: Vignesh R vigne...@ti.com Reviewed-by: Jagan Teki jt

[U-Boot] [U-Boot RESEND v2 02/10] env: use cache line aligned memory for flash read

2015-08-17 Thread Vignesh R
From: Ravi Babu ravib...@ti.com Use memalign() with ARCH_DMA_MINALIGN to allocate read buffers. This is required because, flash drivers may use DMA for read operations and may have to invalidate the buffer before read. Signed-off-by: Ravi Babu ravib...@ti.com Signed-off-by: Vignesh R vigne

[U-Boot] [U-Boot RESEND v2 01/10] sf: allocate cache aligned buffers to copy from flash

2015-08-17 Thread Vignesh R
From: Ravi Babu ravib...@ti.com Use memalign() with ARCH_DMA_MINALIGN to allocate read buffers. This is required because, flash drivers may use DMA for read operations and may have to invalidate the buffer before read. Signed-off-by: Ravi Babu ravib...@ti.com Signed-off-by: Vignesh R vigne

[U-Boot] [U-Boot RESEND v2 00/10] Enable edma support for ti-qspi

2015-08-17 Thread Vignesh R
line aligned memory for flash read Tom Rini (1): sf: ops: Add spi_flash_copy_mmap function Vignesh R (5): ARM: OMAP5: Add functions to enable and disable EDMA3 clocks ARM: AM43XX: Add functions to enable and disable EDMA3 clocks dma: ti-edma3: Add helper function to support edma3 transfer

[U-Boot] [U-Boot RESEND v2 08/10] dma: ti-edma3: Add helper function to support edma3 transfer

2015-08-17 Thread Vignesh R
Signed-off-by: Vignesh R vigne...@ti.com Reviewed-by: Jagan Teki jt...@openedev.com --- arch/arm/include/asm/ti-common/ti-edma3.h | 2 + drivers/dma/ti-edma3.c| 78 +++ 2 files changed, 80 insertions(+) diff --git a/arch/arm/include/asm/ti-common

[U-Boot] [U-Boot RESEND v2 07/10] sf: ops: Add spi_flash_copy_mmap function

2015-08-17 Thread Vignesh R
From: Tom Rini tr...@ti.com When doing a memory mapped copy we may have DMA available and thus need to have this copy abstracted so that the driver can do it, rather than a simple memcpy. Signed-off-by: Tom Rini tr...@ti.com Signed-off-by: Vignesh R vigne...@ti.com Reviewed-by: Jagan Teki jt

[U-Boot] [U-Boot RESEND v2 10/10] ARM: dra7xx_evm: Enable EDMA3 in SPL to support DMA on qspi

2015-08-17 Thread Vignesh R
Enable TI_EDMA3 and SPL_DMA support, so as to reduce boot time. With DMA enabled there is almost 3x improvement in read performance. This helps in reducing boot time in qspiboot mode Also add EDMA3 base address for DRA7XX and AM57XX. Signed-off-by: Vignesh R vigne...@ti.com Reviewed-by: Jagan

[U-Boot] [U-Boot RESEND v2 06/10] ARM: AM43XX: Add functions to enable and disable EDMA3 clocks

2015-08-17 Thread Vignesh R
Adds functions to enable and disable edma3 clocks which can be invoked by drivers using edma3 to control the clocks. Signed-off-by: Vignesh R vigne...@ti.com Reviewed-by: Tom Rini tr...@konsulko.com Reviewed-by: Jagan Teki jt...@openedev.com --- arch/arm/cpu/armv7/am33xx/clock_am43xx.c | 36

[U-Boot] [U-Boot RESEND v2 05/10] ARM: OMAP5: Add functions to enable and disable EDMA3 clocks

2015-08-17 Thread Vignesh R
Adds functions to enable and disable edma3 clocks which can be invoked by drivers using edma3 to control the clocks. Signed-off-by: Vignesh R vigne...@ti.com Reviewed-by: Tom Rini tr...@konsulko.com --- * dropped #ifdefs in header file. arch/arm/cpu/armv7/omap5/hw_data.c | 41

[U-Boot] [U-Boot RESEND v2 09/10] spi: ti_qspi: Use DMA to read from qspi flash

2015-08-17 Thread Vignesh R
ti_qspi uses memory map mode for faster read. Enabling DMA will increase read speed by 3x @48MHz on DRA74 EVM. Signed-off-by: Vignesh R vigne...@ti.com Reviewed-by: Jagan Teki jt...@openedev.com --- drivers/spi/ti_qspi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git

[U-Boot] [U-Boot RESEND v2 04/10] ARM: OMAP5: Add support for disabling clocks in uboot

2015-08-17 Thread Vignesh R
From: Kishon Vijay Abraham I kis...@ti.com Add do_disable_clocks() to disable clock domains and module clocks. These clocks are enabled using do_enable_clocks(). Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Signed-off-by: Vignesh R vigne...@ti.com Reviewed-by: Jagan Teki jt

Re: [U-Boot] [U-Boot PATCH v2 00/10] Enable edma support for ti-qspi

2015-08-13 Thread Vignesh R
On 07/30/2015 11:04 AM, Vignesh R wrote: This patch series enables DMA for QSPI on dra7xx and am43xx. Patch 1 and 2 make sure the buffers are mem aligned for dma operation. Patch 3-6 add support for enabling and disabling of edma3 clocks on am43xx and dra7xx. Patch 7-9 add dma

[U-Boot] [U-Boot PATCH v2 04/10] ARM: OMAP5: Add support for disabling clocks in uboot

2015-07-29 Thread Vignesh R
From: Kishon Vijay Abraham I kis...@ti.com Add do_disable_clocks() to disable clock domains and module clocks. These clocks are enabled using do_enable_clocks(). Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Signed-off-by: Vignesh R vigne...@ti.com --- arch/arm/cpu/armv7/omap-common

[U-Boot] [U-Boot PATCH v2 06/10] ARM: AM43XX: Add functions to enable and disable EDMA3 clocks

2015-07-29 Thread Vignesh R
Adds functions to enable and disable edma3 clocks which can be invoked by drivers using edma3 to control the clocks. Signed-off-by: Vignesh R vigne...@ti.com --- arch/arm/cpu/armv7/am33xx/clock_am43xx.c | 36 1 file changed, 36 insertions(+) diff --git a/arch

[U-Boot] [U-Boot PATCH v2 10/10] ARM: dra7xx_evm: Enable EDMA3 in SPL to support DMA on qspi

2015-07-29 Thread Vignesh R
Enable TI_EDMA3 and SPL_DMA support, so as to reduce boot time. With DMA enabled there is almost 3x improvement in read performance. This helps in reducing boot time in qspiboot mode Also add EDMA3 base address for DRA7XX and AM57XX. Signed-off-by: Vignesh R vigne...@ti.com --- arch/arm/include

[U-Boot] [U-Boot PATCH v2 08/10] dma: ti-edma3: Add helper function to support edma3 transfer

2015-07-29 Thread Vignesh R
Signed-off-by: Vignesh R vigne...@ti.com --- arch/arm/include/asm/ti-common/ti-edma3.h | 2 + drivers/dma/ti-edma3.c| 78 +++ 2 files changed, 80 insertions(+) diff --git a/arch/arm/include/asm/ti-common/ti-edma3.h b/arch/arm/include/asm/ti

[U-Boot] [U-Boot PATCH v2 09/10] spi: ti_qspi: Use DMA to read from qspi flash

2015-07-29 Thread Vignesh R
ti_qspi uses memory map mode for faster read. Enabling DMA will increase read speed by 3x @48MHz on DRA74 EVM. Signed-off-by: Vignesh R vigne...@ti.com --- drivers/spi/ti_qspi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi

[U-Boot] [U-Boot PATCH v2 07/10] sf: ops: Add spi_flash_copy_mmap function

2015-07-29 Thread Vignesh R
From: Tom Rini tr...@ti.com When doing a memory mapped copy we may have DMA available and thus need to have this copy abstracted so that the driver can do it, rather than a simple memcpy. Signed-off-by: Tom Rini tr...@ti.com Signed-off-by: Vignesh R vigne...@ti.com --- drivers/mtd/spi/sf_ops.c

[U-Boot] [U-Boot PATCH v2 02/10] env: use cache line aligned memory for flash read

2015-07-29 Thread Vignesh R
From: Ravi Babu ravib...@ti.com Use memalign() with ARCH_DMA_MINALIGN to allocate read buffers. This is required because, flash drivers may use DMA for read operations and may have to invalidate the buffer before read. Signed-off-by: Ravi Babu ravib...@ti.com Signed-off-by: Vignesh R vigne

[U-Boot] [U-Boot PATCH v2 03/10] ARM: AM43xx: Add support for disabling clocks in uboot

2015-07-29 Thread Vignesh R
From: Kishon Vijay Abraham I kis...@ti.com Add do_disable_clocks() to disable clock domains and module clocks. These clocks are enabled using do_enable_clocks(). Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Signed-off-by: Vignesh R vigne...@ti.com --- arch/arm/cpu/armv7/am33xx/clock.c

[U-Boot] [U-Boot PATCH v2 01/10] sf: allocate cache aligned buffers to copy from flash

2015-07-29 Thread Vignesh R
From: Ravi Babu ravib...@ti.com Use memalign() with ARCH_DMA_MINALIGN to allocate read buffers. This is required because, flash drivers may use DMA for read operations and may have to invalidate the buffer before read. Signed-off-by: Ravi Babu ravib...@ti.com Signed-off-by: Vignesh R vigne

[U-Boot] [U-Boot PATCH v2 05/10] ARM: OMAP5: Add functions to enable and disable EDMA3 clocks

2015-07-29 Thread Vignesh R
Adds functions to enable and disable edma3 clocks which can be invoked by drivers using edma3 to control the clocks. Signed-off-by: Vignesh R vigne...@ti.com --- arch/arm/cpu/armv7/omap5/hw_data.c | 41 arch/arm/cpu/armv7/omap5/prcm-regs.c | 4 arch

[U-Boot] [U-Boot PATCH v2 00/10] Enable edma support for ti-qspi

2015-07-29 Thread Vignesh R
: Add support for disabling clocks in uboot ARM: OMAP5: Add support for disabling clocks in uboot Ravi Babu (2): sf: allocate cache aligned buffers to copy from flash env: use cache line aligned memory for flash read Tom Rini (1): sf: ops: Add spi_flash_copy_mmap function Vignesh R (5

Re: [U-Boot] [PATCH 08/11] spi: ti_qspi: Use DMA to read from qspi flash

2015-07-09 Thread Vignesh R
On 07/03/2015 05:12 PM, Tom Rini wrote: On Fri, Jul 03, 2015 at 04:46:10PM +0530, Vignesh R wrote: ti_qspi uses memory map mode for faster read. Enabling DMA will increase read speed by 3x @48MHz on DRA74 EVM. Signed-off-by: Vignesh R vigne...@ti.com This ignores the feedback from

Re: [U-Boot] [PATCH 08/11] spi: ti_qspi: Use DMA to read from qspi flash

2015-07-05 Thread Vignesh R
On Saturday 04 July 2015 06:23 PM, R, Vignesh wrote: On 7/3/2015 5:12 PM, Tom Rini wrote: On Fri, Jul 03, 2015 at 04:46:10PM +0530, Vignesh R wrote: ti_qspi uses memory map mode for faster read. Enabling DMA will increase read speed by 3x @48MHz on DRA74 EVM. Signed-off-by: Vignesh R

[U-Boot] [PATCH 11/11] ARM: am43xx_evm: Enable EDMA3 to support DMA on qspi

2015-07-03 Thread Vignesh R
Enable CONFIG_TI_EDMA3 for am43xx, this increases read performance by 1.5x. Also add EDMA3 base address for am43xx. Signed-off-by: Vignesh R vigne...@ti.com --- arch/arm/include/asm/arch-am33xx/hardware_am43xx.h | 3 +++ include/configs/am43xx_evm.h | 2 ++ 2 files changed

<    1   2   3   4   5   6   7   >