Re: [PATCH] ARC: enable unit tests on development platforms

2019-12-04 Thread Eugeniy Paltsev
Hi Alexey, ping! --- Eugeniy Paltsev From: Eugeniy Paltsev Sent: Thursday, November 28, 2019 18:54 To: uboot-snps-...@synopsys.com; Alexey Brodkin Cc: u-boot@lists.denx.de; Eugeniy Paltsev Subject: Re: [PATCH] ARC: enable unit tests on development

[PATCH 2/7] clk: stm32mp1: Add a clock entry for RNG1 device

2019-12-04 Thread Sughosh Ganu
Add an entry for allowing clock enablement for the random number generator peripheral, RNG1. Signed-off-by: Sughosh Ganu --- drivers/clk/clk_stm32mp1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c index 3718970..da66bde 100644 ---

[PATCH 0/7] Add a random number generator uclass

2019-12-04 Thread Sughosh Ganu
Add a random number generator(rng) uclass to facilitate adding drivers for rng devices. I plan to add an implementation of the EFI_RNG_PROTOCOL, which would get the random number from the rng uclass -- the protocol would be used by the efi stub for getting a random number for the kaslr feature.

[PATCH 1/7] dm: rng: Add random number generator(rng) uclass

2019-12-04 Thread Sughosh Ganu
Add a uclass for reading a random number seed from a random number generator device. Signed-off-by: Sughosh Ganu --- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/rng/Kconfig | 7 +++ drivers/rng/Makefile | 6 ++ drivers/rng/rng-uclass.c | 23

Re: [PATCH v2 00/16] efi_loader: add secure boot support

2019-12-04 Thread AKASHI Takahiro
On Wed, Dec 04, 2019 at 08:31:26AM +0100, Heinrich Schuchardt wrote: > On 12/4/19 3:43 AM, AKASHI Takahiro wrote: > >Tom, Simon, Heinrich, > > > >I have submitted three major patch sets for UEFI secure boot: > >* x509/pkcs7 parser > >* RSA library extension > >* UEFI secure boot > > > >I have no

[PATCH 3/3] cmd: sata: Add block unbind device function

2019-12-04 Thread Peng Ma
If we didn't unbind the sata from block device, the same devices would be added after sata remove, This patch is to resolve this issue as below: => sata info SATA#0: (3.0 Gbps) SATA#1: (3.0 Gbps) Device 0: Model: INTEL SSDSA2BW300G3D Firm: 4PC10362 Ser#: BTPR247005PY30

Re: [U-Boot] [PATCH v1 1/2] common: fdt_support: add support for setting usable memory

2019-12-04 Thread Igor Opaniuk
Hi Stefano, On Tue, Dec 3, 2019 at 11:28 AM Stefano Babic wrote: > > Hi Igor, > > On 28/11/19 16:23, Igor Opaniuk wrote: > > Hi Stefano, > > > > On Mon, Oct 14, 2019 at 3:40 PM wrote: > >> > >>> From: Igor Opaniuk > >>> Add support for setting linux,usable-memory property in the memory > >>>

[PATCH 2/3] ata: fsl_sata: Continue probing other sata port when failed current port.

2019-12-04 Thread Peng Ma
In the initialization of sata driver, we want to initialize all port probes, Therefore, any detection failure between of them should continue initialization by skipping the current port instead of exit. Signed-off-by: Peng Ma --- drivers/ata/fsl_sata.c | 58

Re: [PATCH 1/2] rockchip: misc: Only assign serial# variable if unset

2019-12-04 Thread Paul Kocialkowski
Hi Heiko, On Tue 03 Dec 19, 20:50, Heiko Stuebner wrote: > Hi Paul, > > On 03.12.19 16:46, Paul Kocialkowski wrote: > > The serial# environment variable is a read-only special variable, that > > can only be set once. As a result, if the environment was saved to a > > persistent storage location,

RE: [PATCH] ARC: enable unit tests on development platforms

2019-12-04 Thread Alexey Brodkin
Hi Eugeniy, > > From: Eugeniy Paltsev > Sent: Friday, November 8, 2019 18:31 > To: uboot-snps-...@synopsys.com; Alexey Brodkin > Cc: u-boot@lists.denx.de; Eugeniy Paltsev > Subject: [PATCH] ARC: enable unit tests on development platforms > > Enable unit

Re: [PATCH v2 1/2] common: fdt_support: add support for setting usable memory

2019-12-04 Thread Igor Opaniuk
Hi Joakim, On Tue, Dec 3, 2019 at 5:02 PM Joakim Tjernlund wrote: > > On Tue, 2019-12-03 at 14:04 +0200, Igor Opaniuk wrote: > > CAUTION: This email originated from outside of the organization. Do not > > click links or open attachments unless you recognize the sender and know > > the content

Re: [U-Boot] [PATCH 1/4] mmc: meson-gx: Fix tx phase in the tuning process

2019-12-04 Thread Neil Armstrong
Hi, On 27/11/2019 15:42, Anand Moon wrote: > Hi Neil, > > On Wed, 27 Nov 2019 at 18:30, Neil Armstrong wrote: >> >> Hi, >> >> On 26/11/2019 22:12, Anand Moon wrote: >>> odroid n2 eMMC module would failed to boot up, >>> because of TX phase clk failure, fix the typo in >>> TX phase macro to help

[PATCH 1/1] efi_loader: use hardware device tree by default

2019-12-04 Thread Heinrich Schuchardt
If the bootefi command is called without passing the address of a device tree, the internal device tree is used. For devices with a hardware device tree it is preferable to used the hardware device tree in this case. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 22

[PATCH 3/7] stm32mp1: rng: Add a driver for random number generator(rng) device

2019-12-04 Thread Sughosh Ganu
Add a driver for the rng device found on stm32mp1 platforms. The driver provides a routine for reading the random number seed from the hardware device. Signed-off-by: Sughosh Ganu --- drivers/rng/Kconfig| 7 ++ drivers/rng/Makefile | 1 + drivers/rng/stm32mp1_rng.c | 164

Re: [RFC PATCH] spi: spi-nor: Add dual flash support in spi-nor framework

2019-12-04 Thread Jagan Teki
On Tue, Nov 26, 2019 at 12:40 PM Michal Simek wrote: > > On 19. 11. 19 15:20, Ashok Reddy Soma wrote: > > Add dual parallel and dual stacked support in spi-nor framework. > > Add dual flash support for nor-scan, read and write. > > > > Signed-off-by: Ashok Reddy Soma > > --- > > Hi, > > > > I

Re: [RFC PATCH] spi: spi-nor: Add dual flash support in spi-nor framework

2019-12-04 Thread Vignesh Raghavendra
Hi, On 26/11/19 12:39 pm, Michal Simek wrote: > On 19. 11. 19 15:20, Ashok Reddy Soma wrote: >> Add dual parallel and dual stacked support in spi-nor framework. >> Add dual flash support for nor-scan, read and write. >> How does the DT representation of these flashes look like? Is it in

Re: [U-Boot] [PATCH] net: cpsw: Add NULL pointer check

2019-12-04 Thread Tom Rini
On Mon, Nov 11, 2019 at 03:22:56PM +0530, Faiz Abbas wrote: > Add null pointer check to take care of out of memory errors. > > Signed-off-by: Faiz Abbas > Reviewed-by: Grygorii Strashko Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH 1/3] ata: sata_sil: Continue probing other sata port when failed current port.

2019-12-04 Thread Peng Ma
In the initialization of sata driver, we want to initialize all port probes, Therefore, any detection failure between of them should continue initialization by skipping the current port instead of exit. Signed-off-by: Peng Ma --- drivers/ata/sata_sil.c | 60

[PATCH] RFE: tools: fix parallel build of tools-all

2019-12-04 Thread Peter Robinson
Commit 4d90f6cd9813 breaks parallel builds in 2020.01-rc series. This fixes the issue, reverting it also fixes it. Not sure which is the best route. Signed-off-by: Peter Robinson --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index

[PATCH v1 5/5] colibri_vf: add update_uboot wrapper

2019-12-04 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Usage example: > tftpboot ${loadaddr} ${board_name}/u-boot-nand.imx > run update_uboot Signed-off-by: Igor Opaniuk --- include/configs/colibri_vf.h | 6 ++ 1 file changed, 6

[PATCH v2 1/5] board: fsl: lx2160a: free up arch_misc_init

2019-12-04 Thread Alex Marginean
Currently LX2 board code uses arch_misc_init to set up the board mux on RDB and QDS. Move this code to misc_init_r. This is consistent with LS gen 2 and T series SoCs/boards. Signed-off-by: Alex Marginean --- arch/arm/Kconfig | 2 --

Re: [PATCH 3/7] stm32mp1: rng: Add a driver for random number generator(rng) device

2019-12-04 Thread Sughosh Ganu
hi Patrice, On Wed, 4 Dec 2019 at 18:54, Patrice CHOTARD wrote: > Hi Sughosh > > On 12/4/19 12:53 PM, Sughosh Ganu wrote: > > Add a driver for the rng device found on stm32mp1 platforms. The > > driver provides a routine for reading the random number seed from the > > hardware device. > > > >

RE: [RFC PATCH] spi: spi-nor: Add dual flash support in spi-nor framework

2019-12-04 Thread Ashok Reddy Soma
Hi Vignesh, Jagan, Thanks for the review comments. I will split in to patches and revert. Vignesh, I will do some cleanup and try to address your comments wherever applicable in the next drop. Thanks, Ashok > -Original Message- > From: Vignesh Raghavendra > Sent: Wednesday,

Re: [PATCH 6/7] configs: sandbox: Enable random number generator(rng) device

2019-12-04 Thread Patrice CHOTARD
On 12/4/19 12:53 PM, Sughosh Ganu wrote: > Enable support for random number generator on sandbox configs. This is > aimed primarily at adding unit test support for rng uclass. > > Signed-off-by: Sughosh Ganu > --- > configs/sandbox64_defconfig | 2 ++ > configs/sandbox_defconfig | 2 ++ > 2

What is the difference between ARCH_XXX MACH_XXX TARGET_XXX macros

2019-12-04 Thread Tim Williams
Hello, I am trying to port u-boot to a new board, There are several macros, how to use them properly? CONFIG_ARCH_XXX CONFIG_MACH_XXX CONFIG_TARGET_XXX for example, my board has: SoC: LS2K1000 ISA: MIPS32r1, MIPS32r2, MIPS64r1, MIPS64r2 Board: UselessRouter or HelloRouter, TBD NIC: 4

Re: [PATCH 4/7] configs: stm32mp15: Enable random number generator(rng) device

2019-12-04 Thread Patrice CHOTARD
On 12/4/19 12:53 PM, Sughosh Ganu wrote: > Enable support for the rng device on the stm32mp15 configs. > > Signed-off-by: Sughosh Ganu > --- > configs/stm32mp15_basic_defconfig | 2 ++ > configs/stm32mp15_optee_defconfig | 2 ++ > configs/stm32mp15_trusted_defconfig | 2 ++ > 3 files

[PATCH v1 3/5] colibri_imx6: add update_uboot wrapper

2019-12-04 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. > tftpboot ${loadaddr} ${board_name}/u-boot.img > run update_uboot > tftpboot ${loadaddr} ${board_name}/SPL > run update_spl Signed-off-by: Igor Opaniuk ---

[PATCH v1 4/5] colibri-imx6ull: add update_uboot wrapper

2019-12-04 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Usage example: > tftpboot ${loadaddr} ${board_name}/u-boot-nand.imx > run update_uboot Signed-off-by: Igor Opaniuk --- include/configs/colibri-imx6ull.h | 8 1 file changed,

Re: [PATCH] RFE: tools: fix parallel build of tools-all

2019-12-04 Thread Tom Rini
On Wed, Dec 04, 2019 at 11:11:34AM +, Peter Robinson wrote: > Commit 4d90f6cd9813 breaks parallel builds in 2020.01-rc series. This > fixes the issue, reverting it also fixes it. Not sure which is the best > route. > > Signed-off-by: Peter Robinson > --- > Makefile | 6 +++--- > 1 file

Re: [PATCH] RFE: tools: fix parallel build of tools-all

2019-12-04 Thread Peter Robinson
> > Commit 4d90f6cd9813 breaks parallel builds in 2020.01-rc series. This > > fixes the issue, reverting it also fixes it. Not sure which is the best > > route. > > > > Signed-off-by: Peter Robinson > > --- > > Makefile | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff

[PATCH 6/7] configs: sandbox: Enable random number generator(rng) device

2019-12-04 Thread Sughosh Ganu
Enable support for random number generator on sandbox configs. This is aimed primarily at adding unit test support for rng uclass. Signed-off-by: Sughosh Ganu --- configs/sandbox64_defconfig | 2 ++ configs/sandbox_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git

[PATCH v2 4/5] board: fsl: ls1028a: free up arch_misc_init

2019-12-04 Thread Alex Marginean
Currently LS1028A board code uses arch_misc_init to set up the board mux on QDS. Move this code to misc_init_r. This is consistent with LS gen 2 and T series SoCs/boards. Signed-off-by: Alex Marginean --- arch/arm/Kconfig | 1 - board/freescale/ls1028a/ls1028a.c

[PATCH 2/2] drivers: net: phy: aquantia: make it less verbose

2019-12-04 Thread Alex Marginean
The driver now unconditionally prints some information that's not universally useful. Replace printf with debug. Signed-off-by: Alex Marginean --- drivers/net/phy/aquantia.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[PATCH 5/7] sandbox: rng: Add a random number generator(rng) driver

2019-12-04 Thread Sughosh Ganu
Add a sandbox driver for random number generation. Mostly aimed at providing a unit test for rng uclass. Signed-off-by: Sughosh Ganu --- arch/sandbox/dts/test.dts | 4 drivers/rng/Kconfig | 7 +++ drivers/rng/Makefile | 1 + drivers/rng/sandbox_rng.c | 36

[PATCH v2 0/5] FSL/Layerscape gen 3: export serdes cfg to env

2019-12-04 Thread Alex Marginean
Exports the serdes configuration as an environment variable for LS gen 3 SoCs, so it can be used in u-boot command line. It should particularly be useful for applying Linux DT overlays for the given serdes configuration. First 4 patches free up arch_misc_init, which is now implemented in

[PATCH v2 3/5] board: fsl: ls1088a: remove empty arch_misc_init

2019-12-04 Thread Alex Marginean
The arch_misc_init function is empty on LS108x SoCs/boards, remove it. Signed-off-by: Alex Marginean --- arch/arm/Kconfig | 2 -- board/freescale/ls1088a/ls1088a.c | 7 --- 2 files changed, 9 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index

[PATCH 1/2] board: solidrun lx2160a-cex7: new board

2019-12-04 Thread Baruch Siach
Add board level support code for the SolidRun LX2160A based COM-Express 7 system. Signed-off-by: Baruch Siach --- arch/arm/Kconfig | 13 + arch/arm/cpu/armv8/Kconfig | 2 +- board/solidrun/lx2160acex7/Kconfig | 15 ++

[PATCH 2/2] arm: dts: lx2160a-cex7: new dts

2019-12-04 Thread Baruch Siach
Add DT description of the SolidRun LX2160A COM-Express system. Signed-off-by: Baruch Siach --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/fsl-lx2160a-cex7.dts | 42 +++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644

[PATCH v1 0/5] toradex: imx: add update_uboot wrapper

2019-12-04 Thread Igor Opaniuk
This patch series introduces universtal update_uboot wrapper that helps to update U-Boot image on internal storage. Example of usage: > tftpboot ${loadaddr} ${board_name}/u-boot.img > run update_uboot > tftpboot ${loadaddr} ${board_name}/SPL > run update_spl Igor Opaniuk (5): colibri_imx7:

[PATCH 7/7] test: rng: Add basic test for random number generator(rng) uclass

2019-12-04 Thread Sughosh Ganu
Add a unit test for testing the rng uclass functionality using the sandbox rng driver. Signed-off-by: Sughosh Ganu --- test/dm/Makefile | 1 + test/dm/rng.c| 26 ++ 2 files changed, 27 insertions(+) create mode 100644 test/dm/rng.c diff --git a/test/dm/Makefile

[PATCH 4/7] configs: stm32mp15: Enable random number generator(rng) device

2019-12-04 Thread Sughosh Ganu
Enable support for the rng device on the stm32mp15 configs. Signed-off-by: Sughosh Ganu --- configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_optee_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 2 ++ 3 files changed, 6 insertions(+) diff --git

Re: [PATCH 3/7] stm32mp1: rng: Add a driver for random number generator(rng) device

2019-12-04 Thread Patrice CHOTARD
Hi Sughosh On 12/4/19 12:53 PM, Sughosh Ganu wrote: > Add a driver for the rng device found on stm32mp1 platforms. The > driver provides a routine for reading the random number seed from the > hardware device. > > Signed-off-by: Sughosh Ganu > --- > drivers/rng/Kconfig| 7 ++ >

[PATCH v2 5/5] arch: armv8: fsl-layerscape: export serdes config to environment

2019-12-04 Thread Alex Marginean
Exports the serdes configuration as an environment variable for LS gen 3 SoCs, so it can be used in u-boot command line. It should particularly be useful for applying Linux DT overlays for the given serdes configuration. This code is called from arch_misc_init and not from the existing

Re: [PATCH 5/7] sandbox: rng: Add a random number generator(rng) driver

2019-12-04 Thread Patrice CHOTARD
On 12/4/19 12:53 PM, Sughosh Ganu wrote: > Add a sandbox driver for random number generation. Mostly aimed at > providing a unit test for rng uclass. > > Signed-off-by: Sughosh Ganu > --- > arch/sandbox/dts/test.dts | 4 > drivers/rng/Kconfig | 7 +++ > drivers/rng/Makefile

[PATCH 1/2] drivers: net: phy: aquantia: drop XGMII as a valid system interface proto

2019-12-04 Thread Alex Marginean
Use either USXGMII or XFI in aquantia_set_proto and drop XGMII as a valid protocol configuration. The PHY doesn't support it, it's just used as an alias for one of the other two protocols. Signed-off-by: Florin Chiculita Signed-off-by: Alex Marginean --- Depends on:

[PATCH v2 2/5] board: fsl: ls2080a/ls2081a: remove empty arch_misc_init

2019-12-04 Thread Alex Marginean
The arch_misc_init function is empty on LS2 SoCs/boards, remove it. Signed-off-by: Alex Marginean --- arch/arm/Kconfig| 5 - board/freescale/ls2080a/ls2080a.c | 7 --- board/freescale/ls2080aqds/ls2080aqds.c | 7 ---

Re: [PATCH 2/7] clk: stm32mp1: Add a clock entry for RNG1 device

2019-12-04 Thread Patrice CHOTARD
Hi Sughosh On 12/4/19 12:53 PM, Sughosh Ganu wrote: > Add an entry for allowing clock enablement for the random number > generator peripheral, RNG1. > > Signed-off-by: Sughosh Ganu > --- > drivers/clk/clk_stm32mp1.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

[PATCH v1 1/5] colibri_imx7: add update_uboot wrapper

2019-12-04 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Usage example: > tftpboot ${loadaddr} ${board_name}/u-boot-dtb.imx > run update_uboot Signed-off-by: Igor Opaniuk --- include/configs/colibri_imx7.h | 18 ++ 1 file

Re: [PATCH 1/7] dm: rng: Add random number generator(rng) uclass

2019-12-04 Thread Patrice CHOTARD
Hi Sughosh On 12/4/19 12:53 PM, Sughosh Ganu wrote: > Add a uclass for reading a random number seed from a random number > generator device. > > Signed-off-by: Sughosh Ganu > --- > drivers/Kconfig | 2 ++ > drivers/Makefile | 1 + > drivers/rng/Kconfig | 7 +++ >

Re: [PATCH 1/4] cmd: dtimg: Report invalid index argument

2019-12-04 Thread Sam Protsenko
Hi, On Fri, Nov 29, 2019 at 9:30 PM Eugeniu Rosca wrote: > > Being user-friendly is paramount to make any product likeable and > easy to use. Hence, instead of [1], print [2]. > > [1] dtimg start 0x4800 not-a-number myvar > Error: Wrong index > > [2] dtimg start 0x4800 not-a-number myvar

[PATCH v3 02/10] dma: ti: k3-udma: Query DMA channels allocated from Resource Manager

2019-12-04 Thread Vignesh Raghavendra
On K3 SoCs, DMA channels are shared across multiple entities, therefore U-Boot DMA driver needs to query resource range from centralised resource management controller i.e SystemFirmware and use DMA channels allocated for A72 host. Add support for the same. Signed-off-by: Vignesh Raghavendra

[PATCH v3 3/6] net: ti: am65-cpsw-nuss: Rework RX flow ID handling

2019-12-04 Thread Vignesh Raghavendra
Get flow ID information for RX DMA channel using dma_get_cfg() interface instead of reading from DT. This is required in order to avoid DT update whenever there is change in the range of flow ID allocated to the host. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by:

[PATCH 03/20] clk: imx: pllv3: register PLLV3 GENERIC and USB as 2 different clocks

2019-12-04 Thread Giulio Benetti
Better to register the 2 clock as 2 different drivers because they work slightly differently depending on power_bit and powerup_set bits coming on next patches. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 20 +++- 1 file changed, 15 insertions(+), 5

[PATCH 15/20] serial_lpuart: add support for i.MXRT

2019-12-04 Thread Giulio Benetti
Add i.MXRT compatible string and cpu type support to lpuart driver, to use little endian 32 bits configurations. Also according to RM, the Receive RX FIFO Enable (RXFE) field in LPUART FIFO register is bit 3, so this definition should change to 0x08 as done for i.MX8. It needs also to set

[PATCH 08/20] clk: imx: pllv3: add PLLV3_SYS support

2019-12-04 Thread Giulio Benetti
Add PLLV3_SYS support by adding set/get_rate() for PLLV3_SYS but keeping generic enable()/disable(). Add a different driver because ops are different respect to GENERIC/USB. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 53 + 1 file changed,

[PULL] u-boot-sh/master

2019-12-04 Thread Marek Vasut
The following changes since commit 94d022bb400890f22fe35220d2519c3bce73f05e: Merge tag 'efi-2020-01-rc5' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi (2019-12-03 18:12:58 -0500) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch

Re: [U-Boot] [PATCH 16/17] imx: add dtsi for i.MX8MN

2019-12-04 Thread Troy Kisky
On 12/3/2019 6:13 PM, Peng Fan wrote: Troy >> >> So, is this code buggy ? > > Yes, please use devfdt_get_addr_size_index > > Regards, > Peng. > Thanks, that was my problem. BR Troy

[PATCH v3 03/10] soc: ti: k3-navss-ringacc: Flush/invalidate caches on ring push/pop

2019-12-04 Thread Vignesh Raghavendra
Flush caches when pushing an element to ring and invalidate caches when popping an element from ring in Exposed Ring mode. Otherwise DMA transfers don't work properly in R5 SPL (with caches enabled) where the core is not in coherency domain. Signed-off-by: Vignesh Raghavendra Reviewed-by:

[PATCH v3 4/6] net: ti: am65-cpsw-nuss: Add new compatible for J721e

2019-12-04 Thread Vignesh Raghavendra
Add new compatible to handle J721e SoC Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c| 2 +- drivers/net/ti/am65-cpsw-nuss.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Eugeniu Rosca
Hi Sam, On Mon, Dec 02, 2019 at 09:07:15PM +0200, Sam Protsenko wrote: > I'd like this patch series to be applied ASAP (probably before DTBO > patches you mention are merged). It's been too long as it is. Once > merged and we are unblocked w.r.t. Android boot stuff, we can then > look into DTBO

[PATCH v3 0/6] J721e: Add networking support

2019-12-04 Thread Vignesh Raghavendra
This patch enables networking support for TI's J721e SoC. Patch 1 adds a new interface to DMA uclass to get channel specific private/configuration data. Patch 2 to 4 use this interface to pass data from J721e's UDMA driver to CPSW ethernet driver. Last two patches add DMA and CPSW DT nodes and

[PATCH v3 07/10] dma: ti: k3-udma: Switch to exposed ring mode

2019-12-04 Thread Vignesh Raghavendra
Exposed ring mode works well with 32 bit and 64 bit cores without need for Proxies for 32 bit cores. Therefore switch to exposed ring mode. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Eugeniu Rosca
Hello Sam, Please, see one more suggestion below. On Tue, Dec 03, 2019 at 08:29:10PM +0100, Eugeniu Rosca wrote: > Hi Sam, > Cc: Aleksandr, Roman > > As expressed in the attached e-mail, to minimize the headaches extending > the argument list of "bootimg" in future, can we please agree on below?

[PATCH v3 6/6] configs: j721e_evm_a72_defconfig: Enable DMA and Ethernet

2019-12-04 Thread Vignesh Raghavendra
Enable configs related to DMA and Ethernet so as to support networking at U-Boot prompt Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by: Grygorii Strashko --- configs/j721e_evm_a72_defconfig | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 10/20] clk: imx: pfd: add set_rate()

2019-12-04 Thread Giulio Benetti
Implement set_rate() for pfd. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pfd.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/clk/imx/clk-pfd.c b/drivers/clk/imx/clk-pfd.c index 188b2b3b90..4ae55f5a07 100644 --- a/drivers/clk/imx/clk-pfd.c +++

[PATCH 00/20] Add i.MXRT family support

2019-12-04 Thread Giulio Benetti
This patchset add support for i.MXRT family starting from i.MXRT1050 SoC. It provides: - i.MXRT1050 SoC entry - i.MXRT pinctrl driver - i.MXRT serial driver tweaking - i.MXRT sdram controller driver - i.MXRT usdhc driver tweaking - i.MXRT1050-evk initial support It uses all DM clocks all around

Re: [PATCH 7/7] test: rng: Add basic test for random number generator(rng) uclass

2019-12-04 Thread Patrice CHOTARD
On 12/4/19 12:53 PM, Sughosh Ganu wrote: > Add a unit test for testing the rng uclass functionality using the > sandbox rng driver. > > Signed-off-by: Sughosh Ganu > --- > test/dm/Makefile | 1 + > test/dm/rng.c| 26 ++ > 2 files changed, 27 insertions(+) > create

[PATCH v3 01/10] lib: Import few bitmap functions from Linux

2019-12-04 Thread Vignesh Raghavendra
Import few basic bitmap functions (bitmap_{weight,fill,set,clear,or}()) and their dependencies from Linux. These are required for upcoming DMA resource allocation support for TI's K3 SoCs. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- include/linux/bitmap.h | 133

[PATCH v3 10/10] dma: ti: k3-udma: Add new compatible to J721e

2019-12-04 Thread Vignesh Raghavendra
Add new compatible to handle UDMA support for J721e SoC Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 92c7af910406..cccffb600c4c 100644

[PATCH 2/2] rpi: Enable DRAM bank initialization on arm64

2019-12-04 Thread matthias . bgg
From: Matthias Brugger Up to now we only update the DRAM banks when we are define CONFIG_BCM2711. But our one binary approach uses a config that supports BCM2837 and BCM2711. As a result we only see one gigabyte of RAM on Raspberry Pi 4, although it has more RAM. Fix this by calling

[PATCH v3 5/6] arm: dts: k3-j721e-common-proc-board: Add DMA and CPSW related DT nodes

2019-12-04 Thread Vignesh Raghavendra
Add DT nodes related to DMA and CPSW to -u-boot.dtsi to get networking up on J721e EVM. Signed-off-by: Vignesh Raghavendra Acked-by: Joe Hershberger Reviewed-by: Grygorii Strashko --- .../k3-j721e-common-proc-board-u-boot.dtsi| 238 ++ 1 file changed, 238 insertions(+)

[PATCH 1/2] rpi: fix dram bank initialization

2019-12-04 Thread matthias . bgg
From: Matthias Brugger To update the dram bank information from device-tree we use fdtdec_decode_ram_size() which expectes the the size-cells and address-cells to be defined in the memory node. For normal system RAM these values are defined in the root node. When the values differ from the

[PATCH 11/20] clk: imx: add i.IMXRT1050 clk driver

2019-12-04 Thread Giulio Benetti
Add i.MXRT1050 clk driver support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/Kconfig | 16 ++ drivers/clk/imx/Makefile| 2 + drivers/clk/imx/clk-imxrt1050.c | 292 include/dt-bindings/clock/imxrt1050-clock.h |

[PATCH 07/20] clk: imx: pllv3: add set_rate() support

2019-12-04 Thread Giulio Benetti
Add generic set_rate() support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index 9b37cd9cd9..a721dbee94 100644 ---

[PATCH 06/20] clk: imx: pllv3: add disable() support

2019-12-04 Thread Giulio Benetti
Add disable() support. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index d8cbe3dd4e..9b37cd9cd9 100644 --- a/drivers/clk/imx/clk-pllv3.c +++

[PATCH 09/20] clk: imx: pllv3: add support for PLLV3_AV type

2019-12-04 Thread Giulio Benetti
Add support for PLLV3 AV type. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 76 + 1 file changed, 76 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index d5087a104e..fc16416d5f 100644 ---

[PATCH v3 05/10] dma: ti: k3-udma: Remove coherency check for cache ops

2019-12-04 Thread Vignesh Raghavendra
Remove redundant coherency checks before calling cache ops in UDMA driver. This is now handled in arch specific cache operation implementation based on Kconfig option Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 49

[PATCH v3 06/10] dma: ti: k3-udma: Fix debug prints during enabling MEM_TO_DEV transfers

2019-12-04 Thread Vignesh Raghavendra
Fix up the debug prints that were dumping state of TCHAN RT registers to use tchan for MEM_TO_DEV transfers. Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v3 04/10] soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle

2019-12-04 Thread Vignesh Raghavendra
Instead of looking getting reference to SYSFW device using name which is not guaranteed to be constant, use phandle supplied in the DT node to get reference to SYSFW Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/soc/ti/k3-navss-ringacc.c | 3 ++- 1 file changed,

[PATCH v3 1/6] dma: Introduce dma_get_cfg() interface

2019-12-04 Thread Vignesh Raghavendra
Sometimes, there would be a need to exchange data between DMA provider and DMA client which are very specific to DMA driver of the SoC/platform and are not generic enough to be put into struct dma. Therefore, introduce dma_get_cfg() interface to get DMA provider specific data from client device.

[PATCH 05/20] clk: imx: pllv3: add enable() support

2019-12-04 Thread Giulio Benetti
Before set_rate() pllv3 needs enable() to power the pll up. Add enable() taking into account different power_bit and different powerup_set, because some pll needs its power_bit to be set or reset to be powered on. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 24

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Eugeniu Rosca
Hi again, [I would be willing to take this discussion offline, if you consider it too noisy for ML] On Wed, Oct 23, 2019 at 05:34:22PM +0300, Sam Protsenko wrote: > +U_BOOT_CMD( > + bootimg, CONFIG_SYS_MAXARGS, 0, do_bootimg, > + "manipulate Android Boot Image", > + "set_addr \n" > +

[PATCH 13/20] ARM: dts: imxrt1050: add dtsi file

2019-12-04 Thread Giulio Benetti
Add dtsi file for i.MXRT1050. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 146 +++ include/dt-bindings/pinctrl/pins-imxrt1050.h | 993 +++ 2 files changed, 1139 insertions(+) create mode 100644 arch/arm/dts/imxrt1050.dtsi create mode 100644

[PATCH v1 2/5] apalis_imx6: add update_uboot wrapper

2019-12-04 Thread Igor Opaniuk
From: Igor Opaniuk Add universal update_uboot wrapper that helps to update U-Boot image on internal storage. Usage example: > tftpboot ${loadaddr} ${board_name}/u-boot.img > run update_uboot > tftpboot ${loadaddr} ${board_name}/SPL > run update_spl Signed-off-by: Igor Opaniuk ---

[PATCH v3 09/10] dma: ti: k3-udma: Fix build warnings when building for 32 bit platforms

2019-12-04 Thread Vignesh Raghavendra
Cast pointers properly so as to avoid warnings when driver is built for 32 bit platforms Signed-off-by: Vignesh Raghavendra Reviewed-by: Grygorii Strashko --- drivers/dma/ti/k3-udma.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c

[PATCH 01/20] armv7m: cache: add mmu_set_region_dcache_behaviour() stub for compatibility

2019-12-04 Thread Giulio Benetti
Since some driver requires this function add it as an empty stub when DCACHE is OFF. Signed-off-by: Giulio Benetti --- arch/arm/cpu/armv7m/cache.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c index f4ba3ad50e..7353698557

[PATCH 02/20] spl: fix entry_point equal to load_addr

2019-12-04 Thread Giulio Benetti
At the moment entry_point is set to image_get_load(header) that sets it to "load address" instead of "entry point", assuming entry_point is equal to load_addr, but it's not true. Then load_addr is set to "entry_point - header_size", but this is wrong too since load_addr is not an entry point. So

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Sam Protsenko
Hi, On Wed, Dec 4, 2019 at 8:25 PM Eugeniu Rosca wrote: > > Hi again, > > [I would be willing to take this discussion offline, if you consider it > too noisy for ML] > Agreed. Please find me on freenode IRC, nick: joeskb7. There is #u-boot channel, or #linaro-android, whichever suits you best.

Re: [PATCH 2/4] cmd: dtimg: Merge duplicated prints

2019-12-04 Thread Sam Protsenko
Hi, On Fri, Nov 29, 2019 at 9:30 PM Eugeniu Rosca wrote: > > Getting DTB/DTBO header address happens twice (in do_dtimg_dump and > in dtimg_get_fdt) with duplicating below error messages: > - Error: Wrong image address > - Error: DT image header is incorrect > Actually, I intentionally left

[PATCH v3 00/10] dma: ti: k3-udma: Add support for J721e

2019-12-04 Thread Vignesh Raghavendra
This series adds DMA support for J721e using exist K3 UDMA driver. One main change is thati, on J721e, DMA resources such as DMA channels are shared between different entities running on different cores of the SoC. Therefore, U-Boot running on A72 core should request range of resources allocated

[PATCH v3 2/6] dma: ti: k3-udma: Implement dma_get_cfg() interface

2019-12-04 Thread Vignesh Raghavendra
Implement dma_get_cfg() interface to pass flow id information for DMA clients to use. This is needed because on K3 SoCs, CPSW (ethernet) and UDMA (DMA provider) support "flows" within a given RX DMA channel. This allows different network packets to be segregated while using same RX DMA channel. In

[PATCH v3 08/10] dma: ti: k3-udma: Fix ring push operation for 32 bit cores

2019-12-04 Thread Vignesh Raghavendra
UDMA always expects 64 bit address pointer of the transfer descriptor in the Ring. But on 32 bit cores like R5, pointer is always 32 bit in size. Therefore copy over 32 bit pointer value to 64 bit variable before pushing it over to the ring, so that upper 32 bits are 0s. Signed-off-by: Vignesh

[PATCH 04/20] clk: imx: pllv3: set div_mask differently if PLLV3 is GENERIC or USB

2019-12-04 Thread Giulio Benetti
div_mask is different for GENERIC and USB pll, so set it according. Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-pllv3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index d1e4c3fe30..02c75c37ea 100644 ---

Re: [PATCH 3/4] cmd: dtimg: Make an optional argument

2019-12-04 Thread Sam Protsenko
Hi, On Fri, Nov 29, 2019 at 9:30 PM Eugeniu Rosca wrote: > > Unlike dtimg, U-Boot commands like part [1], fstype [2] and uuid [3] > accept an _optional_ parameter, which means that they will > output the result to console whenever is skipped. This is > extremely useful during development. > >

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Sam Protsenko
Hi, On Tue, Dec 3, 2019 at 9:29 PM Eugeniu Rosca wrote: > > Hi Sam, > Cc: Aleksandr, Roman > > As expressed in the attached e-mail, to minimize the headaches extending > the argument list of "bootimg" in future, can we please agree on below? > > On Wed, Oct 23, 2019 at 05:34:22PM +0300, Sam

Re: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-12-04 Thread Sam Protsenko
Hi, On Wed, Dec 4, 2019 at 7:33 PM Eugeniu Rosca wrote: > > Hello Sam, > Please, see one more suggestion below. > > On Tue, Dec 03, 2019 at 08:29:10PM +0100, Eugeniu Rosca wrote: > > Hi Sam, > > Cc: Aleksandr, Roman > > > > As expressed in the attached e-mail, to minimize the headaches extending

Re: [U-Boot] Sharing a hardware lab

2019-12-04 Thread Tom Rini
On Fri, Nov 29, 2019 at 09:23:43PM -0700, Simon Glass wrote: > Hi Tom, > > I have been meaning to have a crack at setting up a little hardware > lab for a while. > > I made some progress recently and hooked up a rpi_3 with sdwire for > USB/SD, ykush for power and a little computer to control

Re: [PATCH 4/4] cmd: dtimg: Get start and size based on --id and --rev

2019-12-04 Thread Sam Protsenko
Hi, On Fri, Nov 29, 2019 at 9:31 PM Eugeniu Rosca wrote: > > Currently, it is only possible to get the ${index}'s entry of a DTB/DTBO > image [*]. The "dtimg" command is agnostic on the "id" and "rev" fields > and is unable to take them as input for a more fine-grained DTB/DTBO >

[PATCH 14/20] serial_lpuart: add clock enable if CONFIG_CLK is defined

2019-12-04 Thread Giulio Benetti
This driver assumes that lpuart clock is already enabled before probing but using DM only lpuart won't be automatically enabled so add clk_enable() when probing if CONFIG_CLK is defined. Signed-off-by: Giulio Benetti --- drivers/serial/serial_lpuart.c | 13 + 1 file changed, 13

[PATCH] Makefile: Ensure tools directory exists in output prior to use

2019-12-04 Thread Tom Rini
With the change to make tools/version.h a file we need to make sure that the output directory exists first otherwise we will get a build failure. Reported-by: Peter Robinson Tested-by: Peter Robinson Fixes: 4d90f6cd9813 ("tools: Avoid creating symbolic links for tools/version.h") Signed-off-by:

  1   2   >