From: Grygorii Strashko
Add DT node for MCU NAVSS its components to get DMA working on AM654
SoC.
Signed-off-by: Grygorii Strashko
Signed-off-by: Vignesh R
Reviewed-by: Tom Rini
---
arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 46
1 file changed, 46 insertions
From: Grygorii Strashko
Enable TI K3 AM65x PSI-L, Ring Accelerator and UDMA drivers
Signed-off-by: Grygorii Strashko
Signed-off-by: Vignesh R
Reviewed-by: Tom Rini
---
configs/am65x_evm_a53_defconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configs
Signed-off-by: Vignesh R
Reviewed-by: Tom Rini
---
drivers/dma/Kconfig |2 +
drivers/dma/Makefile |2 +
drivers/dma/ti/Kconfig| 14 +
drivers/dma/ti/Makefile |3 +
drivers/dma/ti/k3-udma-hwdef.h| 184 +++
drivers/dma/ti/k3
Merge drivers/soc/keystone/ into drivers/soc/ti/
and convert CONFIG_TI_KEYSTONE_SERDES into Kconfig.
Signed-off-by: Vignesh R
---
arch/arm/mach-keystone/Kconfig | 8
drivers/soc/Makefile | 1 -
drivers/soc/keystone/Makefile | 3
I-SCI firmware.
Signed-off-by: Peter Ujfalusi
Signed-off-by: Grygorii Strashko
Signed-off-by: Vignesh R
---
v2:
Update ti_sci node to use upstream linux compatible string
Align code to that of Linux driver for Resource management.
arch/arm/dts/k3-am65-wakeup.dtsi | 2 +-
drivers/fir
/cover/10612465/
Grygorii Strashko (5):
firmware: ti_sci: Add support for NAVSS resource management
soc: ti: k3: add navss ringacc driver
soc: ti: k3: add CPPI5 description and helpers
arm64: dts: ti: k3-am65: add mcu navss nodes
configs: am65x_evm_a53: Enable DMA related configs
Vignesh R (2):
From: Grygorii Strashko
Add TI Communications Port Programming Interface (CPPI) 5
interface description and helpers
Signed-off-by: Grygorii Strashko
Signed-off-by: Vignesh R
Reviewed-by: Tom Rini
---
include/linux/soc/ti/cppi5.h | 995 +++
1 file changed
x27;s done
this way because, Linux driver implements two stage Rings allocation and
configuration (allocate ring and configure ring) while TI-SCI Message
Protocol supports only one combined operation (allocate+configure).
Signed-off-by: Grygorii Strashko
Signed-off-by: Vignesh R
Reviewed-by
On 23/01/19 12:26 AM, Tom Rini wrote:
> On Tue, Jan 22, 2019 at 08:33:55PM +0530, Vignesh R wrote:
>
>> From: Grygorii Strashko
>>
>> The Ring Accelerator (RINGACC or RA) provides hardware acceleration to
>> enable straightforward passing of work between a produc
On 23/01/19 12:26 AM, Tom Rini wrote:
> On Tue, Jan 22, 2019 at 08:33:54PM +0530, Vignesh R wrote:
>
>> From: Grygorii Strashko
>>
>> Texas Instruments' System Control Interface (TI-SCI) Message Protocol
>> abstracts management of NAVSS resources, like PSI-L
Tom,
On 23/01/19 4:05 PM, Peter Ujfalusi wrote:
> Tom,
>
> On 22/01/2019 20.56, Tom Rini wrote:
>> On Tue, Jan 22, 2019 at 08:33:57PM +0530, Vignesh R wrote:
>>
>>> The UDMA-P is intended to perform similar (but significantly upgraded)
>>> functions
From: Grygorii Strashko
Enable TI K3 AM65x PSI-L, Ring Accelerator and UDMA drivers
Signed-off-by: Grygorii Strashko
---
configs/am65x_evm_a53_defconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig
inde
Signed-off-by: Vignesh R
---
drivers/dma/Kconfig |2 +
drivers/dma/Makefile |2 +
drivers/dma/ti/Kconfig| 14 +
drivers/dma/ti/Makefile |3 +
drivers/dma/ti/k3-udma-hwdef.h| 184 +++
drivers/dma/ti/k3-udma.c | 1749
From: Grygorii Strashko
Add TI Communications Port Programming Interface (CPPI) 5
interface description and helpers
Signed-off-by: Grygorii Strashko
Signed-off-by: Vignesh R
---
include/linux/soc/ti/cppi5.h | 995 +++
1 file changed, 995 insertions(+)
create
From: Grygorii Strashko
Add DT node for MCU NAVSS its components to get DMA working on AM654
SoC.
Signed-off-by: Grygorii Strashko
---
arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 49
1 file changed, 49 insertions(+)
diff --git a/arch/arm/dts/k3-am654-base-board-u-boot.
Strashko
Signed-off-by: Vignesh R
---
drivers/Kconfig |2 +
drivers/soc/Kconfig |5 +
drivers/soc/Makefile|1 +
drivers/soc/ti/Kconfig | 20 +
drivers/soc/ti/Makefile |5 +
drivers
From: Grygorii Strashko
Texas Instruments' System Control Interface (TI-SCI) Message Protocol
abstracts management of NAVSS resources, like PSI-L pairing and
unpairing, UDMAP tx/rx/flow configuration and Rings.
This patch adds support for requesting and configuring such resources
from TI-SCI fir
ringacc driver
soc: ti: k3: add CPPI5 description and helpers
arm64: dts: ti: k3-am65: add mcu navss nodes
configs: am65x_evm_a53: Enable DMA related configs
Vignesh R (1):
dma: ti: add driver to K3 UDMA
arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 49 +
configs/am65x_ev
On 21-Jan-19 5:40 PM, Jagan Teki wrote:
> On Mon, Jan 21, 2019 at 5:28 PM Vignesh R wrote:
>>
>>
>>
>> On 14/01/19 8:32 PM, Vignesh R wrote:
>>> Hi Jagan,
>>>
>>> Could you please review v2? If we plan to merge this series for
>>>
On 14/01/19 8:32 PM, Vignesh R wrote:
> Hi Jagan,
>
> Could you please review v2? If we plan to merge this series for
> v2019.04, we should probably plan to take it a bit early so as to
> address any regression or fall out in time. Thanks!
>
Gentle ping... Jagan could you
am43xx_evm_ethboot_defconfig is not being actively used and has not been
moved to DM or DT. Also, ethboot cannot be tested on AM43xx EVM as such
due EVM limitations. Therefore delete it.
Signed-off-by: Vignesh R
---
board/ti/am43xx/MAINTAINERS | 1 -
configs
These defconfigs don't seem be actively used any more, and have not been
moved to adapt DM or DT. Therefore delete them.
Signed-off-by: Vignesh R
---
board/ti/am335x/MAINTAINERS | 3 --
configs/am335x_evm_nor_defconfig | 52
co
Enable DM_SPI and DM_SPI_FLASH for actively used defconfigs for
am335x_evm.
Signed-off-by: Vignesh R
---
configs/am335x_evm_defconfig | 2 ++
configs/am335x_hs_evm_defconfig | 2 ++
configs/am335x_hs_evm_uart_defconfig | 2 ++
3 files changed, 6 insertions(+)
diff --git a/configs
On 15/01/19 9:12 PM, Abel Vesa wrote:
> On 19-01-15 18:38:00, Vignesh R wrote:
>>
>>
>> On 15/01/19 4:37 PM, Abel Vesa wrote:
>>> Some boards might need USB_STORAGE enabled in u-boot proper but not in SPL.
>>> Make a separate config for SPL and keep the
On 15/01/19 4:37 PM, Abel Vesa wrote:
> Some boards might need USB_STORAGE enabled in u-boot proper but not in SPL.
> Make a separate config for SPL and keep the same depends on conditions but
> for SPL.
>
> Signed-off-by: Abel Vesa
> ---
> common/Makefile| 2 +-
> configs/apa
Hi Jagan,
Could you please review v2? If we plan to merge this series for
v2019.04, we should probably plan to take it a bit early so as to
address any regression or fall out in time. Thanks!
Regards
Vignesh
On 21/12/18 12:08 PM, Vignesh R wrote:
> U-Boot SPI NOR support (sf layer) is qu
On 22/12/18 1:13 PM, Simon Goldschmidt wrote:
> Am 21.12.2018 um 14:29 schrieb Simon Goldschmidt:
>> Am 21.12.2018 um 12:11 schrieb Vignesh R:
>>> Hi Simon,
>>> [...]
>>>>
>>>> Hi Vignesh,
>>>>
>>>> I just did a quick t
On 17/12/18 7:02 PM, Vignesh R wrote:
> In arch/sandbox/include/asm/types.h we have
> Therefore for 32 bit Sandbox build BITS_PER_LONG turns out to be 32 as
> CONFIG_PHYS64 is not set
>
> This messes up the current logic of GENMASK macro due to mismatch b/w
> size of unsigned
AR and SF_DUAL_FLASH as these are no longer used
> RFC v2: https://patchwork.ozlabs.org/cover/1007589/
>
> Since RFC v1:
> Add lightweight SPI flash stack for boards with SPL size constraints
> Provide non DM version of spi-mem
> Fix build issues on different platf
Add myself as co-maintainer for U-Boot SPI NOR subsystem.
Signed-off-by: Vignesh R
---
MAINTAINERS | 9 +
1 file changed, 9 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 0fb089807c57..a6d2b6e1bd5a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -634,6 +634,15 @@ F: drivers
SF_DUAL_FLASH claims to enable support for SF_DUAL_STACKED_FLASH and
SF_DUAL_PARALLEL_FLASH. But, in current U-Boot code, grepping for above
enums yield no user and therefore support seems to be incomplete. Remove
these configs so as to avoid confusion.
Signed-off-by: Vignesh R
---
configs
ality.
Signed-off-by: Vignesh R
---
arch/arm/mach-omap2/am33xx/Kconfig | 1 -
configs/alt_defconfig| 1 -
configs/am57xx_evm_defconfig | 1 -
configs/am57xx_hs_evm_defconfig | 1 -
configs/ap121_defc
pport on top.
in order to gain 4 byte addressing support, SFDP support and a way to
support SPI controllers with MMIO flash interface.
Signed-off-by: Vignesh R
---
drivers/mtd/spi/spi-nor-core.c | 2590
include/linux/mtd/cfi.h| 32 +
include/linux/mtd/s
Enable SPI_FLASH_TINY to reduce SPL size on boards that are too short of
memory. SPI_FLASH_TINY provides a read only implementation of SPI NOR
stack for use in SPL.
Signed-off-by: Vignesh R
---
configs/axm_defconfig | 1 +
configs/da850_am18xxevm_defconfig | 1 +
configs
spi_flash and spi_flash_ids are no longer needed after SPI NOR
migration. Remove them.
Signed-off-by: Vignesh R
---
drivers/mtd/spi/spi_flash.c | 1337 ---
drivers/mtd/spi/spi_flash_ids.c | 211 -
2 files changed, 1548 deletions(-)
delete mode 100644
reducing spi flash id table by
Simon Goldschmidt
Signed-off-by: Vignesh R
---
common/spl/Kconfig | 10 +-
drivers/mtd/spi/Makefile | 10 +-
drivers/mtd/spi/sf_internal.h | 2 +
drivers/mtd/spi/spi-nor-core.c | 266 +--
drivers/mtd/spi/spi-nor-ids.c | 297
Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD
layer. Fix up sf_dataflash to work in legacy way. And update sandbox to
use new interfaces/defintions
Keep U-Boot feature SPI_FLASH_BAR as is.
Signed-off-by: Vignesh R
---
common/spl/Kconfig | 13 +-
drivers
Add hweight*() macros required for moving to new SF layer
Signed-off-by: Vignesh R
---
arch/sh/include/asm/bitops.h | 4
1 file changed, 4 insertions(+)
diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h
index 8cb8385d76db..765f28f116bc 100644
--- a/arch/sh/include
Add non DM version of SPI_MEM to support easy migration to new SPI NOR
framework. This can be removed once DM_SPI conversion is complete.
Signed-off-by: Vignesh R
---
drivers/spi/Kconfig| 4 +-
drivers/spi/Makefile | 1 +
drivers/spi/spi-mem-nodm.c | 89
It is necessary to call spi_claim_bus() before starting any SPI
transactions and this restriction would also apply when calling spi-mem
operationss. Therefore claim and release bus before requesting transfer
via exec_op.
Signed-off-by: Vignesh R
---
drivers/spi/spi-mem.c | 6 ++
1 file
are no longer used
RFC v2: https://patchwork.ozlabs.org/cover/1007589/
Since RFC v1:
Add lightweight SPI flash stack for boards with SPL size constraints
Provide non DM version of spi-mem
Fix build issues on different platforms as reported by travis-ci on v1
RFC v1: https://patchwork.ozlabs.org/cover/1004689/
Hi,
>>
>> Unfortunately thats a problem with U-Boot spi_flash layer today. Many
>> newer flashes like Micron's mt35x series dont support BAR registers.
>> Accessing above 16MB is broken for such flashes today.
>>
>>> Also, initially I wanted to make SFDP optional so that none of the drivers
>> are
On 18-Dec-18 6:02 PM, Jagan Teki wrote:
> On Sat, Dec 15, 2018 at 9:13 PM Vignesh R wrote:
>>
>>>>> 2) For BAR support, lets place it as it is and support via spi-nor
>>>>
>>>> Problem is, it not desirable to use BAR as default because its not
CONFIG_SANDBOX_BITS_PER_LONG which is set to 64/32
based on the host machine on which its being compiled.
Without this patch:
GENMASK(14,0) => 0x7fff
After this patch:
GENMASK(14,0) => 0x7fff
Signed-off-by: Vignesh R
---
I marked it as RFC because, I am not really sure if I am running Sandbox
>>> 2) For BAR support, lets place it as it is and support via spi-nor
>>
>> Problem is, it not desirable to use BAR as default because its not
>> stateless and does not work with all flash parts. OTOH, it seems like 4
>> byte addressing (stateless dedicated opcode or with enter/exit 4 byte
>> mode
>>> 2) For BAR support, lets place it as it is and support via spi-nor
>>
>> Problem is, it not desirable to use BAR as default because its not
>> stateless and does not work with all flash parts. OTOH, it seems like 4
>> byte addressing (stateless dedicated opcode or with enter/exit 4 byte
>> mode
>>
>> > 2) For BAR support, lets place it as it is and support via
> spi-nor
>>
> > Problem is, it not desirable to use BAR as default because its not
> > stateless and does not work with all flash parts. OTOH, it
> seems like 4
> > byte addressing (stateless dedicat
On 14-Dec-18 9:44 PM, Simon Goldschmidt wrote:
>
>
> Am Fr., 14. Dez. 2018, 16:59 hat Vignesh R <mailto:vigne...@ti.com>> geschrieben:
>
> On 14/12/18 3:43 PM, Jagan Teki wrote:
> > On Wed, Dec 12, 2018 at 11:02 PM Vignesh R <mailto:vigne...@ti
On 14/12/18 3:43 PM, Jagan Teki wrote:
> On Wed, Dec 12, 2018 at 11:02 PM Vignesh R wrote:
>>
>> U-Boot SPI NOR support (sf layer) is quite outdated as it does not
>> support 4 byte addressing opcodes, SFDP table parsing and different types of
>> quad mode enable seque
Hi,
On 14/12/18 3:32 PM, Jagan Teki wrote:
> On Thu, Dec 13, 2018 at 2:19 PM Vignesh R wrote:
>>
>>
>>
>> On 13/12/18 1:55 AM, Jagan Teki wrote:
>>> On Wed, Dec 12, 2018 at 11:08 PM Vignesh R wrote:
>>>>
>>>> Add non DM version of SPI
On 13/12/18 2:31 AM, Jagan Teki wrote:
> On Wed, Dec 12, 2018 at 11:19 PM Vignesh R <mailto:vigne...@ti.com>> wrote:
>>
>> Add myself as co-maintainer for U-Boot SPI NOR subsystem
>>
>> Signed-off-by: Vignesh R mailto:vigne...@ti.com>>
>> --
On 13/12/18 8:31 AM, Tom Rini wrote:
> On Thu, Dec 13, 2018 at 04:51:56AM +0530, Jagan Teki wrote:
>> On Thu, Dec 13, 2018 at 4:26 AM Tom Rini wrote:
>>>
>>> On Thu, Dec 13, 2018 at 02:01:15AM +0530, Jagan Teki wrote:
>>>> On Wed, Dec 12, 2018 at 11:10 PM
On 13/12/18 2:11 AM, Jagan Teki wrote:
> On Wed, Dec 12, 2018 at 11:15 PM Vignesh R wrote:
>>
>> Now that we have new SPI NOR framework in place that supports 4 byte
>> addressing mode by default, get rid of CONFIG_SPI_FLASH_BAR
>
> I already mentioned in prev
gt;>>> On Thu, Dec 13, 2018 at 2:10 AM Boris Brezillon
>>>> wrote:
>>>>>
>>>>> Hi Jagan,
>>>>>
>>>>> On Thu, 13 Dec 2018 01:55:08 +0530
>>>>> Jagan Teki wrote:
>>>>>
>>>>>> O
On 13/12/18 2:08 AM, Jagan Teki wrote:
> On Wed, Dec 12, 2018 at 11:12 PM Vignesh R wrote:
>>
>> spi_flash and spi_flash_ids are no longer needed after SPI NOR
>> migration. Remove them.
>>
>> Signed-off-by: Vignesh R
>> ---
>
On 13/12/18 1:55 AM, Jagan Teki wrote:
> On Wed, Dec 12, 2018 at 11:08 PM Vignesh R wrote:
>>
>> Add non DM version of SPI_MEM to support easy migration to new SPI NOR
>> framework. This can be removed once DM_SPI conversion is complete.
>
> Our intention to use new
Boris, Stefan, Daniel
On 12/12/18 11:02 PM, Vignesh R wrote:
> Now that there is new SPI NOR framework, simplify mtd device
> registration and read/write/erase operations.
>
> Signed-off-by: Vignesh R
> ---
Oops, sorry I messed up rebase-ing this patch onto latest mainline.
Add myself as co-maintainer for U-Boot SPI NOR subsystem
Signed-off-by: Vignesh R
---
Jagan,
If you agree, I can help in co-maintaining SPI NOR part especially for
the code that is added/sync'd from Linux.
MAINTAINERS | 8
1 file changed, 8 insertions(+)
diff --git a/MAINTAIN
SF_DUAL_FLASH claims to enable support for SF_DUAL_STACKED_FLASH and
SF_DUAL_PARALLEL_FLASH. But, in current U-Boot code, grepping for above
enums yield no user and therefore support seems to be incomplete. Remove
these configs so as to avoid confusion.
Signed-off-by: Vignesh R
---
configs
Enable tiny printf to reduce SPL size
Signed-off-by: Vignesh R
---
configs/turris_omnia_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig
index 38c5de18bb2d..4655d6561a13 100644
--- a/configs
Enable SPL simple malloc to reduce SPL size
Signed-off-by: Vignesh R
---
configs/taurus_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/taurus_defconfig b/configs/taurus_defconfig
index e53e075d4825..9c3a1276aa8f 100644
--- a/configs/taurus_defconfig
+++ b/configs
Enable CONFIG_SPL_SYS_MALLOC_SIMPLE in SPL to reduce SPL size
Signed-off-by: Vignesh R
---
configs/axm_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/axm_defconfig b/configs/axm_defconfig
index 89d6b6f2012c..16c093b37b83 100644
--- a/configs/axm_defconfig
+++ b/configs
Enable tiny printf to reduce SPL size
Signed-off-by: Vignesh R
---
configs/da850_am18xxevm_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/da850_am18xxevm_defconfig
b/configs/da850_am18xxevm_defconfig
index 58745fec8267..5fecfccba50c 100644
--- a/configs
Now that we have new SPI NOR framework in place that supports 4 byte
addressing mode by default, get rid of CONFIG_SPI_FLASH_BAR
Signed-off-by: Vignesh R
---
arch/arm/mach-omap2/am33xx/Kconfig | 1 -
configs/alt_defconfig| 1 -
configs
reducing spi flash id table by
Simon Goldschmidt
Signed-off-by: Vignesh R
---
common/spl/Kconfig | 9 +
drivers/mtd/spi/Makefile | 10 +-
drivers/mtd/spi/sf_internal.h | 2 +
drivers/mtd/spi/spi-nor-core.c | 266 +--
drivers/mtd/spi/spi-nor-ids.c | 294
Now that there is new SPI NOR framework, simplify mtd device
registration and read/write/erase operations.
Signed-off-by: Vignesh R
---
drivers/mtd/spi/sf_internal.h | 2 +-
drivers/mtd/spi/sf_mtd.c | 52 ++-
drivers/mtd/spi/sf_probe.c| 5 ++--
3 files
spi_flash and spi_flash_ids are no longer needed after SPI NOR
migration. Remove them.
Signed-off-by: Vignesh R
---
drivers/mtd/spi/spi_flash.c | 1337 ---
drivers/mtd/spi/spi_flash_ids.c | 211 -
2 files changed, 1548 deletions(-)
delete mode 100644
pport on top.
in order to gain 4 byte addressing support, SFDP support and a way to
support SPI controllers with MMIO flash interface.
Signed-off-by: Vignesh R
---
drivers/mtd/spi/spi-nor-core.c | 2647
include/linux/mtd/cfi.h| 32 +
include/linux/mtd/s
Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD
layer. Fix up sf_dataflash to work in legacy way. And update sandbox to
use new interfaces/defintions
Signed-off-by: Vignesh R
---
common/spl/Kconfig | 12 +-
drivers/mtd/spi/Kconfig| 15 ++-
drivers
It is necessary to call spi_claim_bus() before starting any SPI
transactions and this restriction would also apply when calling spi-mem
operationss. Therefore claim and release bus before requesting transfer
via exec_op.
Signed-off-by: Vignesh R
---
drivers/spi/spi-mem.c | 6 ++
1 file
Add non DM version of SPI_MEM to support easy migration to new SPI NOR
framework. This can be removed once DM_SPI conversion is complete.
Signed-off-by: Vignesh R
---
drivers/spi/Kconfig| 4 +-
drivers/spi/Makefile | 1 +
drivers/spi/spi-mem-nodm.c | 89
Add hweight*() macros required for moving to new SF layer
Signed-off-by: Vignesh R
---
arch/sh/include/asm/bitops.h | 4
1 file changed, 4 insertions(+)
diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h
index 8cb8385d76db..765f28f116bc 100644
--- a/arch/sh/include
SPI controllers support all types of SPI modes including dual/quad bus
widths. Therefore remove constraint wrt SPI mode from spi-mem layer.
Signed-off-by: Vignesh R
---
drivers/spi/spi-mem.c | 9 -
1 file changed, 9 deletions(-)
diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi
r used
RFC v2: https://patchwork.ozlabs.org/cover/1007589/
Since RFC v1:
Add lightweight SPI flash stack for boards with SPL size constraints
Provide non DM version of spi-mem
Fix build issues on different platforms as reported by travis-ci on v1
RFC v1: https://patchwork.ozlabs.org/cover/1004689/
On 10-Dec-18 6:32 PM, Jagan Teki wrote:
> On Thu, Dec 6, 2018 at 11:55 PM Vignesh R wrote:
>>
>> Hi Jagan,
>>
>> On 06-Dec-18 10:44 PM, Jagan Teki wrote:
>>> On Tue, Dec 4, 2018 at 5:56 PM Vignesh R wrote:
>>>>
>>>> U-Boot
On 07/12/18 3:21 PM, Boris Brezillon wrote:
> On Thu, 6 Dec 2018 23:55:30 +0530
> Vignesh R wrote:
>
>> On 06-Dec-18 10:44 PM, Jagan Teki wrote:
>>> On Tue, Dec 4, 2018 at 5:56 PM Vignesh R wrote:
>>>>
>>>> U-Boot SPI NOR support (sf layer)
On 06/12/18 9:49 PM, Simon Goldschmidt wrote:
> Am 06.12.2018 um 16:59 schrieb Tom Rini:
>> On Thu, Dec 06, 2018 at 04:23:00PM +0100, Miquel Raynal wrote:
>>> Hi Wolfgang,
>>>
>>> Wolfgang Denk wrote on Thu, 06 Dec 2018 10:32:14 +0100:
>>>
[...]
>> Please understand that there is a fundament
On 07/12/18 12:47 AM, Simon Goldschmidt wrote:
> Am 06.12.2018 um 18:39 schrieb Vignesh R:
>> On 06/12/18 10:06 PM, Simon Goldschmidt wrote:
>>> Am 06.12.2018 um 14:54 schrieb Simon Goldschmidt:
>>>> On Thu, Dec 6, 2018 at 2:45 PM Vignesh R wrote:
>>>&g
Hi Jagan,
On 06-Dec-18 10:44 PM, Jagan Teki wrote:
> On Tue, Dec 4, 2018 at 5:56 PM Vignesh R wrote:
>>
>> U-Boot SPI NOR support (sf layer) is quite outdated as it does not
>> support 4 byte addressing opcodes, SFDP table parsing and different types of
>> quad mode e
On 06/12/18 10:06 PM, Simon Goldschmidt wrote:
> Am 06.12.2018 um 14:54 schrieb Simon Goldschmidt:
>> On Thu, Dec 6, 2018 at 2:45 PM Vignesh R wrote:
>>>
>>> Hi Simon,
>>>
>>> On 06/12/18 2:15 AM, Simon Goldschmidt wrote:
>>>> Am 05.12.2
Hi Simon,
On 06/12/18 2:15 AM, Simon Goldschmidt wrote:
> Am 05.12.2018 um 07:55 schrieb Simon Goldschmidt:
>> On Wed, Dec 5, 2018 at 7:51 AM Vignesh R wrote:
[...]
>>>> I did some compilation tests first and I'm happy to say that with the
>>>> SPL_SPI_FLAS
On 05/12/18 12:34 PM, Simon Goldschmidt wrote:
> On Tue, Dec 4, 2018 at 1:27 PM Vignesh R wrote:
>>
>> Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD
>> layer. Fix up sf_dataflash to work in legacy way. And update sandbox to
>> us
On 05/12/18 12:31 PM, Simon Goldschmidt wrote:
> On Tue, Dec 4, 2018 at 1:27 PM Vignesh R wrote:
>>
>> Add a tiny SPI flash stack that just supports reading data/images from
>> SPI flash. This is useful for boards that have SPL size constraints and
>> would need to u
Hi Boris,
On 04/12/18 6:19 PM, Boris Brezillon wrote:
> On Tue, 4 Dec 2018 17:56:57 +0530
> Vignesh R wrote:
>
>> Now that there is new SPI NOR framework, simplify mtd device
>> registration and read/write/erase operations.
>>
>> Signed-off-by: Vign
On 05/12/18 1:41 AM, Simon Goldschmidt wrote:
> Am 04.12.2018 um 13:55 schrieb Boris Brezillon:
>> On Tue, 4 Dec 2018 17:56:48 +0530
>> Vignesh R wrote:
>>
>>> U-Boot SPI NOR support (sf layer) is quite outdated as it does not
>>> support 4 byte add
Hi Miquel,
On 05/12/18 5:26 AM, Miquel Raynal wrote:
> MTD must be enabled when there is a SPI NOR flash using the
> SPI_FLASH_MTD config entry.
>
I suggest to add Kconfig dependency b/w SPI_FLASH_MTD and MTD. Something like:
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
index
Enable CONFIG_SPL_SYS_MALLOC_SIMPLE in SPL to reduce SPL size
Signed-off-by: Vignesh R
---
configs/axm_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/axm_defconfig b/configs/axm_defconfig
index 89d6b6f2012c..16c093b37b83 100644
--- a/configs/axm_defconfig
+++ b/configs
Enable SPL simple malloc to reduce SPL size
Signed-off-by: Vignesh R
---
configs/taurus_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/taurus_defconfig b/configs/taurus_defconfig
index e53e075d4825..9c3a1276aa8f 100644
--- a/configs/taurus_defconfig
+++ b/configs
spi_flash and spi_flash_ids are no longer needed after SPI NOR
migration. Remove them.
Signed-off-by: Vignesh R
---
drivers/mtd/spi/spi_flash.c | 1337 ---
drivers/mtd/spi/spi_flash_ids.c | 211 -
2 files changed, 1548 deletions(-)
delete mode 100644
Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD
layer. Fix up sf_dataflash to work in legacy way. And update sandbox to
use new interfaces/defintions
Signed-off-by: Vignesh R
---
common/spl/Kconfig | 7 +
drivers/mtd/spi/Kconfig| 8 ++
drivers
Now that there is new SPI NOR framework, simplify mtd device
registration and read/write/erase operations.
Signed-off-by: Vignesh R
---
drivers/mtd/spi/sf_internal.h | 2 +-
drivers/mtd/spi/sf_mtd.c | 39 ---
drivers/mtd/spi/sf_probe.c| 2 +-
3 files
reducing spi flash id table by
Simon Goldschmidt
Signed-off-by: Vignesh R
---
common/spl/Kconfig | 9 +
drivers/mtd/spi/Makefile | 8 +-
drivers/mtd/spi/sf_internal.h | 2 +
drivers/mtd/spi/spi-nor-ids.c | 294
drivers/mtd/spi/spi-nor-tiny.c | 806
pport on top.
in order to gain 4 byte addressing support, SFDP support and a way to
support SPI controllers with MMIO flash interface.
Signed-off-by: Vignesh R
---
drivers/mtd/spi/spi-nor.c | 2613 +++
include/linux/mtd/cfi.h | 32 +
include/linux/mtd/spi-nor.
Add hweight*() macros required for moving to new SF layer
Signed-off-by: Vignesh R
---
arch/sh/include/asm/bitops.h | 4
1 file changed, 4 insertions(+)
diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h
index 8cb8385d76db..765f28f116bc 100644
--- a/arch/sh/include
It is necessary to call spi_claim_bus() before starting any SPI
transactions and this restriction would also apply when calling spi-mem
operationss. Therefore claim and release bus before requesting transfer
via exec_op.
Signed-off-by: Vignesh R
---
drivers/spi/spi-mem.c | 6 ++
1 file
Add non DM version of SPI_MEM to support easy migration to new SPI NOR
framework. This can be removed once DM_SPI conversion is complete.
Signed-off-by: Vignesh R
---
drivers/spi/Kconfig| 4 +-
drivers/spi/Makefile | 1 +
drivers/spi/spi-mem-nodm.c | 89
log:
v2:
Add lightweight SPI flash stack for boards with SPL size constraints
Provide non DM version of spi-mem
Fix build issues on different platforms as reported by travis-ci on v1
v1: https://patchwork.ozlabs.org/cover/1004689/
Vignesh R (11):
spi: spi-mem: Allow use of spi_mem_exec_op for
SPI controllers support all types of SPI modes including dual/quad bus
widths. Therefore remove constraint wrt SPI mode from spi-mem layer.
Signed-off-by: Vignesh R
---
drivers/spi/spi-mem.c | 9 -
1 file changed, 9 deletions(-)
diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi
Completely move CONFIG_SPI_FLASH from remaining board header files to
defconfigs
Signed-off-by: Vignesh R
---
Done with the help of moveconfig.py. Compile tested on travis-ci:
https://travis-ci.org/r-vignesh/u-boot/builds/463155999
configs/cgtqmx6eval_defconfig| 1 +
configs
Hi Boris,
On 29/11/18 9:34 PM, Boris Brezillon wrote:
> On Wed, 28 Nov 2018 22:56:02 +0530
> Vignesh R wrote:
>
>> +#if defined(CONFIG_DM_SPI) && defined(CONFIG_SPI_MEM)
>> +#define spi_nor_mem_exec_op spi_mem_exec_op
>> +#else
>> +/*
>> + * T
101 - 200 of 617 matches
Mail list logo