[PATCHv3 26/36] dts: T104x: Add ESPI DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI controller DT node for T104x. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - Move the eSPI DT node back to path /soc, in v2 the patch command put the eSPI node to the path /cpus by mistake. arch/powerpc/dts/t104x.dtsi | 9 + 1 file

[PATCHv3 27/36] dts: T1042D4RDB: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for T1042D4RDB. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/t1042d4rdb.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/powerpc/dts/t1042d4rdb.dts

[PATCHv3 28/36] configs: T1042D4RDB: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in T1042D4RDB defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/T1042D4RDB_NAND_defconfig | 2 ++ configs/T1042D4RDB_SDCARD_defconfig | 2 ++ configs/T1042D4RDB_SPIFLASH_defconfig | 2 ++

[PATCHv3 30/36] configs: T2080RDB: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in T2080RDB defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/T2080RDB_NAND_defconfig | 2 ++ configs/T2080RDB_SDCARD_defconfig | 2 ++ configs/T2080RDB_SPIFLASH_defconfig | 2 ++

[PATCHv3 29/36] dts: T2080RDB: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for T2080RDB. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/t2080rdb.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/powerpc/dts/t2080rdb.dts b/arch/powerpc/dts/t2080rdb.dts

[PATCHv3 23/36] dts: T102x: Add ESPI DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI controller DT node for T102x. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - Move the eSPI DT node back to path /soc, in v2 the patch command put the eSPI node to the path /cpus by mistake. arch/powerpc/dts/t102x.dtsi | 9 + 1 file

[PATCHv3 25/36] configs: T1024RDB: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in T1024RDB defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/T1024RDB_NAND_defconfig | 2 ++ configs/T1024RDB_SDCARD_defconfig | 2 ++ configs/T1024RDB_SPIFLASH_defconfig | 2 ++

[PATCHv3 24/36] dts: T1024RDB: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for T1024RDB. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/t1024rdb.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/powerpc/dts/t1024rdb.dts b/arch/powerpc/dts/t1024rdb.dts

Re: [PATCH v3 1/4] Makefile: Drop to handle rkspi image type

2020-06-04 Thread Philipp Tomsich
> On 04.06.2020, at 16:51, Jagan Teki wrote: > > On rockchip platforms, SPI boot image creation is not > straightforward like MMC boot image creation where former > requires to specify tpl, spl in multimage format in mkimage, > and later simply do a concatenate mkimaged-tpl with spl. > > On

[PATCH v2 0/6] crypto/fsl: add RNG support

2020-06-04 Thread Michael Walle
First, improve the compatibility on newer Era CAAMs. These introduced new version registers. Secondly, add RNG support for the CAAM. This way we get random number generator support for EFI for free and KASLR will work with ARM64 kernels booted with bootefi. Changes since v1: - instantiate RNG

[PATCH v2 1/6] crypto/fsl: make SEC%u status line consistent

2020-06-04 Thread Michael Walle
Align the status line with all the other output in U-Boot. Before the change: DDR3.9 GiB (DDR3, 32-bit, CL=11, ECC on) SEC0: RNG instantiated WDT: Started with servicing (60s timeout) After the change: DDR3.9 GiB (DDR3, 32-bit, CL=11, ECC on) SEC0: RNG instantiated WDT: Started with

Re: [PATCH v4 1/2] net: cortina_ni: Add eth support for Cortina Access CAxxxx SoCs

2020-06-04 Thread Ramon Fried
On Wed, Jun 3, 2020 at 11:05 AM Alex Nemirovsky wrote: > > From: Aaron Tseng > > Add Cortina Access Ethernet device driver for CA SoCs. > This driver supports only the DM_ETH network model. > > Signed-off-by: Aaron Tseng > Signed-off-by: Alex Nemirovsky > > CC: Joe Hershberger > CC: Abbie

[PULL] u-boot-atmel-fixes-2020.07-a

2020-06-04 Thread Eugen.Hristev
Hello Tom, Please pull tag u-boot-atmel-fixes-2020.07-a , the first set of changes for the 2020.07 cycle. This set includes just two small commits that fix a build warning and add a missing serial node. Thanks ! Eugen The following changes since commit

Re: Pull request for UEFI sub-system for efi-2020-07-rc4

2020-06-04 Thread Tom Rini
On Wed, Jun 03, 2020 at 07:49:48PM +0200, Heinrich Schuchardt wrote: > The following changes since commit ecd4d99f654f3f7bfb96001891d69c3125e70b69: > > Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 (2020-06-01 > 23:34:18 -0400) > > are available in the Git repository at: > >

[PATCHv5 2/3] spi: Move DM_SPI_FLASH and SPI_FLASH_DATAFLASH to Kconfig (for ls1021aXXX)

2020-06-04 Thread Zhiqiang Hou
From: Lukasz Majewski This patch moves the CONFIG_DM_SPI_FLASH and CONFIG_SPI_FLASH_DATAFLASH to be defined in Kconfig, not in board specific header file (include/configs/.h). Before this change the CONFIG_DM_SPI_FLASH was not set in .config (so it was not possible to use

[PATCHv5 3/3] spi: Convert CONFIG_DM_SPI* to CONFIG_$(SPL_TPL_)DM_SPI*

2020-06-04 Thread Zhiqiang Hou
From: Lukasz Majewski This change allows more fine tuning of driver model based SPI support in SPL and TPL. It is now possible to explicitly enable/disable the DM_SPI support in SPL and TPL via Kconfig option. Before this change it was necessary to use: /* SPI Flash Configs */ #if

[PATCHv5 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2020-06-04 Thread Zhiqiang Hou
From: Hou Zhiqiang Rebased the patch set below, and fixed build warning on ls1046a by removing SPL_DM_SPI from target ls1046 boards. https://patchwork.ozlabs.org/project/uboot/list/?series=129069=both=* Lukasz Majewski (3): spi: Move DM_SPI_FLASH to Kconfig (for NXP's ls1043a) spi: Move

[PATCHv5 1/3] spi: Move DM_SPI_FLASH to Kconfig (for NXP's ls1043a)

2020-06-04 Thread Zhiqiang Hou
From: Lukasz Majewski This patch fixes issue with defining the DM_SPI_FLASH in the configs/include/ instead of enabling this option in Kconfig. The problem is that CONFIG_IS_ENABLED(DM_SPI_FLASH) shows false as there is no DM_SPI_FLASH=y in .config (but the define is set in u-boot.cfg). As a

Re: [PATCH 4/4] crypto/fsl: add RNG support

2020-06-04 Thread Heinrich Schuchardt
On 04.06.20 15:20, Michael Walle wrote: > Am 2020-06-04 14:58, schrieb Heinrich Schuchardt: >> On 04.06.20 14:52, Michael Walle wrote: >>> Am 2020-06-04 14:26, schrieb Heinrich Schuchardt: On 04.06.20 10:05, Horia Geantă wrote: > On 6/4/2020 5:31 AM, Heinrich Schuchardt wrote: >>> >

Re: [PATCH 07/10] dm: doc: update of-plat with new phandle support

2020-06-04 Thread Simon Glass
On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > Update documentation to reflect the new phandle support when OF_PLATDATA > is used. Now phandles are implemented as pointers to U_BOOT_DEVICE, > which makes it possible to get a pointer to the actual device. > > Signed-off-by: Walter Lozano

Re: [PATCH 10/10] dtoc add test for cd-gpios

2020-06-04 Thread Simon Glass
On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > Add a test for dtoc taking into account the cd-gpios property. > > Signed-off-by: Walter Lozano > --- > tools/dtoc/dtoc_test_phandle_cd_gpios.dts | 42 ++ > tools/dtoc/test_dtoc.py | 67 +++

Re: [PATCH 04/10] core: drop const for struct driver_info

2020-06-04 Thread Simon Glass
On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > In order to prepare for a new support of phandle when OF_PLATDATA is used > drop the const for struct driver_info as this struct will need to be > updated on runtime. > > Signed-off-by: Walter Lozano > --- > drivers/core/device.c| 2

Re: [PATCH 05/10] core: extend struct driver_info to point to device

2020-06-04 Thread Simon Glass
Hi Walter, On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > Currently when creating an U_BOOT_DEVICE entry a struct driver_info > is declared, which contains the data needed to instantiate the device. > However, the actual device is created at runtime and there is no proper > way to get

Re: [PATCH 01/10] dtoc: add support to scan drivers

2020-06-04 Thread Simon Glass
Hi Walter, On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > Currently dtoc scans dtbs to convert them to struct platdata and > to generate U_BOOT_DEVICE entries. These entries need to be filled > with the driver name, but at this moment the information used is the > compatible name present

Re: [PATCH 03/10] dm: doc: update of-plat with the suppor for driver aliases

2020-06-04 Thread Simon Glass
On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > Update the documentation with the support for driver aliases using > U_BOOT_DRIVER_ALIAS. > > Signed-off-by: Walter Lozano > --- > doc/driver-model/of-plat.rst | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) >

[PATCH 1/1] efi_loader: comments EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL

2020-06-04 Thread Heinrich Schuchardt
Provide missing comments for the functions implementing the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 124 --- 1 file changed, 115 insertions(+), 9 deletions(-) diff --git

Re: [PULL] u-boot-atmel-fixes-2020.07-a

2020-06-04 Thread Tom Rini
On Thu, Jun 04, 2020 at 02:01:02PM +, eugen.hris...@microchip.com wrote: > Hello Tom, > > Please pull tag u-boot-atmel-fixes-2020.07-a , the first set of changes > for the 2020.07 cycle. > > This set includes just two small commits that fix a build warning and > add a missing serial node.

[PATCHv3 09/36] dts: P2020RDB: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for P2020RDB. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p2020rdb-pc.dts | 15 +++ arch/powerpc/dts/p2020rdb-pc_36b.dts | 15 +++ 2 files changed, 30 insertions(+) diff

[PATCHv3 07/36] configs: P1020RDB: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in P1020RDB defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/P1020RDB-PC_36BIT_NAND_defconfig | 2 ++ configs/P1020RDB-PC_36BIT_SDCARD_defconfig | 2 ++

[PATCHv3 06/36] dts: P1020RDB: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for P1020RDB. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p1020rdb-pc.dts | 15 +++ arch/powerpc/dts/p1020rdb-pc_36b.dts | 15 +++ arch/powerpc/dts/p1020rdb-pd.dts | 15

[PATCHv3 05/36] dts: P1020: Add ESPI DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI controller DT node for P1020. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p1020-post.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/dts/p1020-post.dtsi

[PATCHv3 04/36] configs: enable espi device module in T2080QDS

2020-06-04 Thread Zhiqiang Hou
From: Chuanhua Han This patch is to enable espi DM for T2080QDS in uboot Signed-off-by: Chuanhua Han Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/T2080QDS_NAND_defconfig | 2 ++ configs/T2080QDS_SDCARD_defconfig | 2 ++

[PATCHv3 08/36] dts: P2020: Add ESPI DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI controller DT node for P2020. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p2020-post.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/dts/p2020-post.dtsi

Re: [PULL] u-boot-atmel-fixes-2020.07-a

2020-06-04 Thread Tom Rini
On Thu, Jun 04, 2020 at 03:26:24PM +, eugen.hris...@microchip.com wrote: > On 04.06.2020 18:05, Tom Rini wrote: > > > > Applied to u-boot/master, thanks! > > > But please note that building for all of "sama5" gives a ton of device > > tree warnings, can you please look in to them?

[PATCH 1/1] sandbox: handling out of memory

2020-06-04 Thread Heinrich Schuchardt
assert() only works in debug mode. So checking a successful memory allocation should not use assert(). Signed-off-by: Heinrich Schuchardt --- arch/sandbox/cpu/state.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c

[PATCH 1/2] cmd: booti: Fix spelling of "environment".

2020-06-04 Thread Vagrant Cascadian
Signed-off-by: Vagrant Cascadian --- cmd/booti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/booti.c b/cmd/booti.c index ae37975494..af0603b96e 100644 --- a/cmd/booti.c +++ b/cmd/booti.c @@ -141,7 +141,7 @@ static char booti_help_text[] = "\tspecifying the

[PATCH 2/2] doc: sifive: Fix spelling of "environment".

2020-06-04 Thread Vagrant Cascadian
Signed-off-by: Vagrant Cascadian --- doc/board/sifive/fu540.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst index 43402cb2e5..39fb8d8990 100644 --- a/doc/board/sifive/fu540.rst +++ b/doc/board/sifive/fu540.rst

Re: [PATCH 3/8] regmap: Allow specifying read/write width

2020-06-04 Thread Pratyush Yadav
On 31/05/20 08:08AM, Simon Glass wrote: > Hi Pratyush, > > On Wed, 27 May 2020 at 06:52, Pratyush Yadav wrote: > > > > Right now, regmap_read() and regmap_write() read/write a 32-bit value > > only. To write other lengths, regmap_raw_read() and regmap_raw_write() > > need to be used. > > > >

Re: [PATCH 2/8] regmap: zero out the regmap on allocation

2020-06-04 Thread Pratyush Yadav
Hi Simon, On 31/05/20 08:08AM, Simon Glass wrote: > Hi Pratyush, > > On Wed, 27 May 2020 at 06:52, Pratyush Yadav wrote: > > > > Some fields will be introduced in the regmap structure that should be > > set to 0 by default. So, once we allocate a regmap, make sure it is > > zeroed out to avoid

[PATCHv3 34/36] dts: P1010: Add eSPI controller DT node

2020-06-04 Thread Zhiqiang Hou
From: Hou Zhiqiang Add eSPI controller DT node for P1010. Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p1010si-post.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/powerpc/dts/p1010si-post.dtsi b/arch/powerpc/dts/p1010si-post.dtsi index

[PATCHv3 35/36] dts: P1010RDB: Add eSPI slave DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Hou Zhiqiang Add DT nodes for eSPI slave device SPI flash. Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p1010rdb-pa.dts | 1 + arch/powerpc/dts/p1010rdb-pa_36b.dts | 1 + arch/powerpc/dts/p1010rdb.dtsi | 17 + 3 files changed, 19

[PATCHv3 36/36] configs: P1010RDB: Enable eSPI controller and SPI flash DM driver

2020-06-04 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_SPI and DM_SPI_FLASH in P1010RDB defconfigs except SECBOOT defconfigs. Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/P1010RDB-PA_36BIT_NAND_defconfig | 2 ++ configs/P1010RDB-PA_36BIT_NOR_defconfig | 2 ++

[PATCHv3 33/36] configs: T4240RDB: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in T4240RDB defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/T4240RDB_SDCARD_defconfig | 2 ++ configs/T4240RDB_defconfig| 2 ++ 2 files changed, 4 insertions(+) diff --git

[PATCHv3 32/36] dts: T4240RDB: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for T4240RDB. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/t4240rdb.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/powerpc/dts/t4240rdb.dts b/arch/powerpc/dts/t4240rdb.dts

[PATCH] test_sleep.py: make sleep time and margin configurable

2020-06-04 Thread Heiko Schocher
make the sleep time and the margin configurable. Signed-off-by: Heiko Schocher --- travis build: https://travis-ci.org/github/hsdenx/u-boot-test/builds/694545225 This patch is needed as I start test/py now within tbot [1]. On some configurations U-Boot is compiled on a build machine for

[PATCH] sata_sil: make it buildable with DM_PCI

2020-06-04 Thread Marcin Juszkiewicz
Linker complained about lack of `pci_virt_to_mem` function. Looks like driver was not ready for device model - I took solution from e1000.c driver. Signed-off-by: Marcin Juszkiewicz --- drivers/ata/sata_sil.c | 4 1 file changed, 4 insertions(+) diff --git drivers/ata/sata_sil.c

Re: [PULL] u-boot-atmel-fixes-2020.07-a

2020-06-04 Thread Eugen.Hristev
On 04.06.2020 18:05, Tom Rini wrote: > Applied to u-boot/master, thanks! > But please note that building for all of "sama5" gives a ton of device > tree warnings, can you please look in to them? Thanks! Hi Tom, Any changes in the DTC version or something? there are no changes in the

[PATCHv3 31/36] dts: T4240: Add ESPI DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI controller DT node for T4240. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - Move the eSPI DT node back to path /soc, in v2 the patch command put the eSPI node to the path /cpus by mistake. arch/powerpc/dts/t4240.dtsi | 9 + 1 file

Re: [PATCH 08/10] dtoc: update tests to match new platdata

2020-06-04 Thread Simon Glass
On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > After using a new approach to link nodes when OF_PLATDATA is enabled > the test cases need to be update. > > This patch updates the tests based on this new implementation. > > Signed-off-by: Walter Lozano > --- > tools/dtoc/test_dtoc.py |

Re: [PATCH 02/10] dtoc: add option to disable warnings

2020-06-04 Thread Simon Glass
Hi Walter, On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > As dtoc now performs checks for valid driver names, when running dtoc > tests several warnings arise as these tests don't use valid driver > names. > > This patch adds an option to disable those warning, which is only > intended

Re: [PATCH 09/10] dtoc: update dtb_platdata to support cd-gpios

2020-06-04 Thread Simon Glass
On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > Currently dtoc does not support the property cd-gpios used to declare > the gpios for card detect in mmc. > > This patch adds support to cd-gpios property. > > Signed-off-by: Walter Lozano > --- > tools/dtoc/dtb_platdata.py | 13

Re: [PATCH 06/10] dtoc: extend dtoc to use struct driver_info when linking nodes

2020-06-04 Thread Simon Glass
On Fri, 29 May 2020 at 12:15, Walter Lozano wrote: > > In the current implementation, when dtoc parses a dtb to generate a struct > platdata it converts the information related to linked nodes as pointers > to struct platdata of destination nodes. By doing this, it makes > difficult to get

Re: [PATCH v4] net: tftp: Add client support for RFC 7440

2020-06-04 Thread Ramon Fried
On Wed, Jun 3, 2020 at 5:55 AM Ravik Hasija wrote: > > Ramon Fried-4 wrote > > + if (strcmp((char *)pkt + i, "windowsize") == 0) { > > For servers that doesnt support windowsize option the above check could > > result in accessing memory outside of valid range. Please check

Re: [PATCH v3 1/4] Makefile: Drop to handle rkspi image type

2020-06-04 Thread Jagan Teki
On Thu, Jun 4, 2020 at 8:25 PM Philipp Tomsich wrote: > > > > > On 04.06.2020, at 16:51, Jagan Teki wrote: > > > > On rockchip platforms, SPI boot image creation is not > > straightforward like MMC boot image creation where former > > requires to specify tpl, spl in multimage format in mkimage,

[PATCHv3 14/36] dts: P3041: Add ESPI DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI controller DT node for P3041. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - Move the eSPI DT node back to path /soc, in v2 the patch command put the eSPI node to the path /cpus by mistake. arch/powerpc/dts/p3041.dtsi | 9 + 1 file

[PATCHv3 16/36] configs: P3041DS: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in P3041DS defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/P3041DS_NAND_defconfig | 2 ++ configs/P3041DS_SDCARD_defconfig | 2 ++ configs/P3041DS_SPIFLASH_defconfig | 2 ++

[PATCHv3 18/36] dts: P4080DS: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for P4080DS. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p4080ds.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/dts/p4080ds.dts b/arch/powerpc/dts/p4080ds.dts index

[PATCHv3 11/36] dts: P2041: Add ESPI DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI controller DT node for P2041. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - Move the eSPI DT node back to path /soc, in v2 the patch command put the eSPI node to the path /cpus by mistake. arch/powerpc/dts/p2041.dtsi | 9 + 1 file

[PATCHv3 12/36] dts: P2041RDB: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for P2041RDB. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p2041rdb.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/dts/p2041rdb.dts b/arch/powerpc/dts/p2041rdb.dts

[PATCHv3 10/36] configs: P2020RDB: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in P2020RDB defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/P2020RDB-PC_36BIT_NAND_defconfig | 2 ++ configs/P2020RDB-PC_36BIT_SDCARD_defconfig | 2 ++

[PATCHv3 15/36] dts: P3041DS: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for P3041DS. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p3041ds.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/dts/p3041ds.dts b/arch/powerpc/dts/p3041ds.dts index

[PATCHv3 17/36] dts: P4080: Add ESPI DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI controller DT node for P4080. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - Move the eSPI DT node back to path /soc, in v2 the patch command put the eSPI node to the path /cpus by mistake. arch/powerpc/dts/p4080.dtsi | 9 + 1 file

[PATCHv3 13/36] configs: P2041RDB: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in P2041RDB defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/P2041RDB_NAND_defconfig | 2 ++ configs/P2041RDB_SDCARD_defconfig | 2 ++ configs/P2041RDB_SPIFLASH_defconfig | 2 ++

[PATCHv3 21/36] dts: P5040DS: Add ESPI slave device node

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI slave node for P5040DS. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. arch/powerpc/dts/p5040ds.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/powerpc/dts/p5040ds.dts b/arch/powerpc/dts/p5040ds.dts index

[PATCHv3 19/36] configs: P4080DS: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in P4080DS defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/P4080DS_SDCARD_defconfig | 2 ++ configs/P4080DS_SPIFLASH_defconfig | 2 ++ configs/P4080DS_defconfig | 2 ++ 3 files changed, 6

[PATCHv3 22/36] configs: P5040DS: Enable ESPI driver

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Enable the DM ESPI driver in P5040DS defconfig. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - No change. configs/P5040DS_NAND_defconfig | 2 ++ configs/P5040DS_SDCARD_defconfig | 2 ++ configs/P5040DS_SPIFLASH_defconfig | 2 ++

[PATCHv3 20/36] dts: P5040: Add ESPI DT nodes

2020-06-04 Thread Zhiqiang Hou
From: Xiaowei Bao Add ESPI controller DT node for P5040. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V3: - Move the eSPI DT node back to path /soc, in v2 the patch command put the eSPI node to the path /cpus by mistake. arch/powerpc/dts/p5040.dtsi | 9 + 1 file

[PATCH v2 4/6] crypto/fsl: don't regenerate secure keys

2020-06-04 Thread Michael Walle
The secure keys (TDKEK, JDKEK, TDSK) can only be generated once after a POR. Otherwise the RNG4 will throw an error. Signed-off-by: Michael Walle --- drivers/crypto/fsl/jobdesc.c | 4 ++-- drivers/crypto/fsl/jobdesc.h | 2 +- drivers/crypto/fsl/jr.c | 9 + include/fsl_sec.h

[PATCH v2 6/6] crypto/fsl: add RNG support

2020-06-04 Thread Michael Walle
Register the random number generator with the rng subsystem in u-boot. This way it can be used by EFI as well as for the 'rng' command. Signed-off-by: Michael Walle --- drivers/crypto/fsl/Kconfig | 14 ++ drivers/crypto/fsl/Makefile | 1 + drivers/crypto/fsl/jobdesc.c | 10 +

[PATCH v2 2/6] crypto/fsl: export caam_get_era()

2020-06-04 Thread Michael Walle
We need the era in other modules, too. For example, to get the RNG version. Signed-off-by: Michael Walle Reviewed-by: Horia Geantă --- drivers/crypto/fsl/sec.c | 10 +- include/fsl_sec.h| 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git

[PATCH v2 5/6] crypto/fsl: instantiate the RNG with prediciton resistance

2020-06-04 Thread Michael Walle
If it is already instantiated tear it down first and then reinstanciate it again with prediction resistance. Signed-off-by: Michael Walle --- drivers/crypto/fsl/desc.h| 2 ++ drivers/crypto/fsl/jobdesc.c | 12 ++- drivers/crypto/fsl/jobdesc.h | 2 ++ drivers/crypto/fsl/jr.c | 66

[PATCH v2 3/6] crypto/fsl: support newer SEC modules

2020-06-04 Thread Michael Walle
Since Era 10, the version registers changed. Add the version registers and use them on newer modules. Signed-off-by: Michael Walle Reviewed-by: Horia Geantă --- drivers/crypto/fsl/jr.c | 12 -- include/fsl_sec.h | 51 +++-- 2 files changed, 54

Re: Re: [PATCH v2 00/35] dm: Add programmatic generation of ACPI tables (part B)

2020-06-04 Thread Simon Glass
Hi Wolfgang, On Thu, 4 Jun 2020 at 07:27, Wolfgang Wallner wrote: > > Hi Simon, > > -"U-Boot" schrieb: - > > Betreff: Antwort: Re: [PATCH v2 00/35] dm: Add programmatic generation of > > ACPI tables (part B) > > > > Hi Bin, > > > > -"Bin Meng" schrieb: - > > > Betreff: Re:

Re: [PATCH v4] net: tftp: Add client support for RFC 7440

2020-06-04 Thread Ravik Hasija
On Wed, Jun 3, 2020 at 5:55 AM Ravik Hasija rahasij@.microsoft wrote: > > Ramon Fried-4 wrote > > + if (strcmp((char *)pkt + i, "windowsize") == 0) { > > For servers that doesnt support windowsize option the above check could > > result in accessing memory outside of valid

[PATCH] net: cpsw: Add __maybe_unused to generated inlines

2020-06-04 Thread Tom Rini
We generate a number of helper inline functions to make accesses easier. However not all permutations of each function will be used and clang will warn about unused ones. Decorate all of them with __maybe_unused because of this. Cc: Lokesh Vutla Signed-off-by: Tom Rini ---

[PATCH] usb: eth: lan78xx: Fix logic in lan78xx_read_otp() to avoid a warning

2020-06-04 Thread Tom Rini
In lan78xx_read_otp() we want to know if sig is LAN78XX_OTP_INDICATOR_1 or LAN78XX_OTP_INDICATOR_2. In the case of matching the first one we set offset to itself, and clang warns about this. Rework the logic so that if sig is the second indicator we adjust the offset as today and if it does not

[PATCH] crypto/fsl: fix unaligned access

2020-06-04 Thread Michael Walle
On aarch64 running with dcache off, will result in an unaligned access exception: => dcache off => hash sha1 $kernel_addr_r 100 "Synchronous Abort" handler, esr 0x9661 elr: 960317d8 lr : 960316a4 (reloc) elr: fbd787d8 lr : fbd786a4 [..] The

[PATCH] usb: gadget: ether: Fix warnings about unused code

2020-06-04 Thread Tom Rini
When building this with clang we see a few new warnings. There are a handful of structs that we declare and use only in the case of !defined(CONFIG_USB_ETH_CDC) && defined(CONFIG_USB_ETH_SUBSET) so update the guards used to match this as well as cover all members rather than just a few. Finally,

[PATCH v3 2/6] sifive: fu540: Add Booting from SPI

2020-06-04 Thread Jagan Teki
Add booting from SPI for SiFive Unleashed board. Signed-off-by: Jagan Teki --- Changes for v3: - updated based on master arch/riscv/cpu/fu540/Kconfig | 2 + .../dts/hifive-unleashed-a00-u-boot.dtsi | 12 ++ configs/sifive_fu540_defconfig| 4 ++

[PATCH v3 6/6] sifive: fu540: Enable SF distro bootcmd

2020-06-04 Thread Jagan Teki
Enable SPI flash(SF) distro boot command in Sifive FU540. This distro boot will read the boot script at specific location at the flash and start sourcing the same. Included the SF device at the last of the target devices list since all the rest of the devices on the list have more possibility to

[PATCH v3 4/6] sifive: fu540: Mark the default env as SPI flash

2020-06-04 Thread Jagan Teki
Mark the default U-Boot environment as SPI flash since this is an on board flash device. Reviewed-by: Bin Meng Signed-off-by: Jagan Teki --- Changes for v3: - none board/sifive/fu540/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/board/sifive/fu540/Kconfig

[PATCH v3 5/6] sifive: fu540: Add boot flash script offset, size

2020-06-04 Thread Jagan Teki
HiFive-Unleashed-A00 has SPI flash with 32MiB size. So, let's use the script offset at the end of 4K. This way it cannot overlap any offsets being used by software components in flash layout. So, SF distrocmd will pick the script at desired script address and run. Signed-off-by: Jagan Teki ---

Re: [PATCH] usb: eth: lan78xx: Fix logic in lan78xx_read_otp() to avoid a warning

2020-06-04 Thread Marek Vasut
On 6/4/20 10:35 PM, Tom Rini wrote: > In lan78xx_read_otp() we want to know if sig is LAN78XX_OTP_INDICATOR_1 > or LAN78XX_OTP_INDICATOR_2. In the case of matching the first one we > set offset to itself, and clang warns about this. Rework the logic so > that if sig is the second indicator we

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

2020-06-04 Thread Tom Rini
On Thu, Jun 04, 2020 at 10:18:07AM +0800, ub...@andestech.com wrote: > Hi Tom, > > Please pull some riscv updates: > > - Fixes 7e249bc13aaf: ("riscv: Move all SMP related SBI calls to SBI_v01") >Move sbi_probe_extension() out of CONFIG_SBI_V01. > - SiFive FU540 support SPL. > > Thanks >

[PATCH] gpio: omap_gpio: Fix unused function warning in non-DM case

2020-06-04 Thread Tom Rini
In the case of non-DM_GPIO the function get_gpio_index() will never be called, and clang will warn about this. Move this to be with the other non-DM code for easier removal later. Cc: Lokesh Vutla Signed-off-by: Tom Rini --- drivers/gpio/omap_gpio.c | 9 - 1 file changed, 4

[PATCH] mmc: omap_hsmmc: Add guards around omap_hsmmc_get_cfg()

2020-06-04 Thread Tom Rini
We only call the function omap_hsmmc_get_cfg in the case of OMAP34XX or when we have to iodelay recalibration. Add guards for these checks as clang will otherwise warn. Cc: Peng Fan Cc: Lokesh Vutla Signed-off-by: Tom Rini --- Aside, Lokesh, can you please add drivers/mmc/omap_hsmmc.c to the

[PATCH] usb: musb-new: Fix unused function warnings from clang

2020-06-04 Thread Tom Rini
The functions dsps_readb and dsps_writeb are only used by code that is under a !__UBOOT__ guard today. Add that guard around these functions as well to avoid the warning. Cc: Marek Vasut Signed-off-by: Tom Rini --- drivers/usb/musb-new/musb_dsps.c | 4 1 file changed, 4 insertions(+)

Re: [PATCH v5 05/21] arm: mvebu: x530: Disable smart hwcaps selection

2020-06-04 Thread Chris Packham
On 5/06/20 12:44 am, Pratyush Yadav wrote: > The option SPI_FLASH_SMART_HWCAPS will be introduced in a future commit. > It is enabled by default. It updates the hwcaps selection of SPI NOR to > use the SPI MEM's supports_op() hook. But this leads to a code size > increase and so the SPL binary

[PATCH] board: ti: am335x_evm: Remove duplicate setting of bd_ram_ofs member

2020-06-04 Thread Tom Rini
With clang we get a report that we are setting this member twice. Fortunately it is to the same value, so drop the hard-coded value line. Signed-off-by: Tom Rini --- board/ti/am335x/board.c | 1 - 1 file changed, 1 deletion(-) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c

[PATCH] board: ti: common: Fix pointer-bool-conversion warnings

2020-06-04 Thread Tom Rini
When building this code with clang-10 a number of warnings will be generated along the lines of: warning: address of array 'ep->version' will always evaluate to 'true' Convert these checks to checking the strlen of the part of the array we care about. As this array will be null terminated

Re: [PATCH u-boot] eth/r8152: update the firmware

2020-06-04 Thread Marek Vasut
On 6/4/20 5:45 AM, Hayes Wang wrote: > Marek Vasut [mailto:ma...@denx.de] >> Sent: Tuesday, June 02, 2020 7:59 PM > [...] >> Can you be more specific about the problem you are fixing here ? >> What is the problem ? > > There is low probability that the device may be lost when

Re: [PATCH] usb: musb-new: Fix unused function warnings from clang

2020-06-04 Thread Marek Vasut
On 6/4/20 10:09 PM, Tom Rini wrote: > The functions dsps_readb and dsps_writeb are only used by code that is > under a !__UBOOT__ guard today. Add that guard around these functions > as well to avoid the warning. > > Cc: Marek Vasut > Signed-off-by: Tom Rini Reviewed-by: Marek Vasut

[PATCH v3 3/6] env: Enable SPI flash env for SiFive FU540

2020-06-04 Thread Jagan Teki
SPI flash device on HiFive Unleashed has 32MiB Size. This patch add SPI flash environment after U-Boot proper partition with a size of 128KiB. SPI flash partition layout(32MiB): 0 - 34 : reserved for GPT header 35 - 39 : unused 40 - 2087: loader1 (SPL, FSBL) 2088 - 10279

[PATCH v3 1/6] sifive: fu540: Add runtime boot mode detection

2020-06-04 Thread Jagan Teki
Add support to detect boot mode at runtime for SiFive FU540 boards. Signed-off-by: Jagan Teki --- Changes for v3: - new patch board/sifive/fu540/fu540.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/board/sifive/fu540/fu540.c

[PATCH v3 0/6] riscv: sifive/fu540: SPI boot

2020-06-04 Thread Jagan Teki
Updated series with boot device detection directly on spl_boot_device function instead of having separate board driver. Previous version changes are at [1]. Changes for v3: - fixed env definitions build - added boot device detection in board Changes for v2: - fu540 board driver - runtime

Re: [PATCH v2 6/8] rockchip: puma: remove separate fit generator

2020-06-04 Thread Kever Yang
On 2020/6/4 下午6:09, Heiko Stuebner wrote: From: Heiko Stuebner The introduction of the puma-specific generator was mainly a way to split the pmu firmware from the ATF binary and not having to distribute that 4GB (sparse) image that was created before moving to the bl31.elf as base. Looking

Re: [PATCH v2 8/8] rockchip: puma: enable new usb config options

2020-06-04 Thread Kever Yang
On 2020/6/4 下午6:09, Heiko Stuebner wrote: From: Heiko Stuebner With recently added changes we get support for usb3 including handling of the phys (type-c and inno-usb2), so enable the necessary config options on puma. Signed-off-by: Heiko Stuebner Reviewed-by: Kever Yang Thanks, -

Re: [PATCH v2 7/8] rockchip: puma: drop special handling of usb host regulator

2020-06-04 Thread Kever Yang
On 2020/6/4 下午6:09, Heiko Stuebner wrote: From: Heiko Stuebner With the current usb stack in u-boot, all host ports on puma work flawlessly without any additional special handling, so drop that usb hub hacking from the puma board. Tested with mass-storage and usb-ethernet on both usb3 and

Re: [PATCH 3/6] checkpatch.pl: Add a check for tests needed for uclasses

2020-06-04 Thread Tom Rini
On Fri, May 22, 2020 at 04:32:37PM -0600, Simon Glass wrote: > A common problem when submitting a new uclass is to forget to add sandbox > tests. Add a warning for this. > > Of course tests should always be added for new code, but this one seems to > be missed by nearly every new contributor. >

Re: [PATCH 2/6] checkpatch.pl: Add a U-Boot option

2020-06-04 Thread Tom Rini
On Fri, May 22, 2020 at 04:32:36PM -0600, Simon Glass wrote: > Add an option to indicate that U-Boot-specific checks should be enabled. > Add a function to house the code that will be added. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description:

  1   2   3   >