Re: [PATCH 1/1] efi_loader: pre-seed UEFI variables

2020-07-15 Thread Heinrich Schuchardt
On 7/16/20 4:08 AM, AKASHI Takahiro wrote: > Heinrich, > > On Wed, Jul 15, 2020 at 07:42:15PM +0200, Heinrich Schuchardt wrote: >> Include a file with the initial values for non-volatile UEFI variables >> into the U-Boot binary. If this variable is set, changes to variable PK >> will not be

[PATCH 1/1] efi_loader: describe EFI_VAR_FILE_MAGIC

2020-07-15 Thread Heinrich Schuchardt
Add documentation for EFI_VAR_FILE_MAGIC used in the file format for UEFI variables. Signed-off-by: Heinrich Schuchardt --- include/efi_variable.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/efi_variable.h b/include/efi_variable.h index

Re: [RFC] dfu: remove UPDATE_TFTP

2020-07-15 Thread Heinrich Schuchardt
On 7/16/20 3:52 AM, AKASHI Takahiro wrote: > On Wed, Jul 15, 2020 at 04:42:20PM +0200, Heinrich Schuchardt wrote: > On 15.07.20 16:06, Michal Simek wrote: On 15. 07. 20 15:23, Lukasz Majewski wrote: > Hi Heinrich, > > On 15.07.20 13:24, Lukasz Majewski wrote: Hi

[PATCH v2 3/9] test: Add tests for SOC uclass

2020-07-15 Thread Dave Gerlach
Add a sandbox SOC driver, and some tests for the SOC uclass. Reviewed-by: Simon Glass Signed-off-by: Dave Gerlach --- arch/sandbox/dts/test.dts | 4 + configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 +

[PATCH v2 9/9] arm: mach-k3: Use SOC driver for device identification

2020-07-15 Thread Dave Gerlach
Make use of UCLASS_SOC to find device family and revision for print_cpuinfo. Signed-off-by: Dave Gerlach --- arch/arm/mach-k3/common.c| 48 ++-- arch/arm/mach-k3/common.h| 6 --- arch/arm/mach-k3/include/mach/hardware.h | 1 - 3 files

[PATCH v2 6/9] arm: dts: k3-j721e-mcu-wakeup: Introduce chipid node

2020-07-15 Thread Dave Gerlach
Introduce a chipid node to provide a UCLASS_SOC driver to identify TI K3 SoCs. Signed-off-by: Dave Gerlach --- arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi | 4 arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 5 + 2 files changed, 9 insertions(+) diff --git

[PATCH v2 1/9] doc: Add new doc for soc ID driver model

2020-07-15 Thread Dave Gerlach
Add a new documentation file for UCLASS_SOC and its usage to describe the SoC Device ID framework that allows SoC identification and device data matching. Signed-off-by: Dave Gerlach --- doc/driver-model/index.rst | 1 + doc/driver-model/soc-framework.rst | 68

[PATCH v2 2/9] dm: soc: Introduce UCLASS_SOC for SOC ID and attribute matching

2020-07-15 Thread Dave Gerlach
Introduce UCLASS_SOC to be used for SOC identification and attribute matching based on the SoC ID info. This allows drivers to be provided for SoCs to retrieve SoC identifying information and also for matching device attributes for selecting SoC specific data. This is useful for other device

[PATCH v2 7/9] configs: am65x_evm: Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3

2020-07-15 Thread Dave Gerlach
Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3 so the TI K3 SoC driver can be used for SoC detection. Signed-off-by: Dave Gerlach --- configs/am65x_evm_a53_defconfig| 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ configs/am65x_hs_evm_a53_defconfig | 2 ++

[PATCH v2 0/9] Introduce UCLASS_SOC

2020-07-15 Thread Dave Gerlach
Hi, This is v2 of the series to introduce UCLASS_SOC to be used for SOC identification and attribute matching based on SoC ID info. The first version of this series can be found at [1]. Biggest change is the addition of a patch to add documentation for the SOC ID framework as requested by

[PATCH v2 4/9] dm: soc: Introduce soc_ti_k3 driver for TI K3 SoCs

2020-07-15 Thread Dave Gerlach
Introduce an soc_ti_k3_driver that allows identification and selection of SoC specific data based on the JTAG ID register for device identification, as described for AM65x[0] and J721E[1] devices. [0] http://www.ti.com/lit/ug/spruid7e/spruid7e.pdf [1]

[PATCH v2 5/9] arm: dts: k3-am65-wakeup: Introduce chipid node

2020-07-15 Thread Dave Gerlach
Introduce a chipid node to provide a UCLASS_SOC driver to identify TI K3 SoCs. Signed-off-by: Dave Gerlach --- arch/arm/dts/k3-am65-wakeup.dtsi | 5 + arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 4 2 files changed, 9 insertions(+) diff --git

[PATCH v2 8/9] configs: j721e_evm: Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3

2020-07-15 Thread Dave Gerlach
Enable CONFIG_SOC_DEVICE and CONFIG_SOC_DEVICE_TI_K3 so the TI K3 SoC driver can be used for SoC detection. Signed-off-by: Dave Gerlach --- configs/j721e_evm_a72_defconfig| 2 ++ configs/j721e_evm_r5_defconfig | 2 ++ configs/j721e_hs_evm_a72_defconfig | 2 ++

Re: [RFC] dfu: remove UPDATE_TFTP

2020-07-15 Thread Heinrich Schuchardt
Am 16. Juli 2020 03:36:13 MESZ schrieb AKASHI Takahiro : >Heinrich, > >On Wed, Jul 15, 2020 at 12:45:18PM +0200, Heinrich Schuchardt wrote: >> Using UPDATE_TFTP the firmware can be updated from tFTP by writing to >NOR >> flash. The same is possible by defining a dfu command in >CONFIG_PREBOOT. >>

Re: [PATCH 1/2] Revert "riscv: Allow use of reset drivers"

2020-07-15 Thread Leo Liang
On Wed, Jul 08, 2020 at 03:04:42AM -0400, Sean Anderson wrote: > On 7/8/20 2:44 AM, Bin Meng wrote: > > From: Bin Meng > > > > This reverts commit 958a3f464c7f8ef7e10db9feb663e9e80445ce2f. > > > > A more appropriate change below is already in mainline. > > Commit fd31e4fd184f ("riscv: Do not

[PATCH 4/4] ram: sifive: Avoid using hardcoded ram base and size

2020-07-15 Thread Bin Meng
From: Bin Meng At present the SiFive FU540 RAM driver uses hard-coded memory base address and size to initialize the DDR controller. This may not be true when this driver is used on another board based on FU540. Update the driver to read the memory information from DT and use that during the

[PATCH 3/4] riscv: dts: hifive-unleashed-a00: Make memory node available to SPL

2020-07-15 Thread Bin Meng
From: Bin Meng Make memory node available to SPL in prepration to updates to SiFive DDR RAM driver to read memory information from DT. Signed-off-by: Bin Meng --- arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 1/4] fdtdec: Add fdtdec_get_mem_size_base()

2020-07-15 Thread Bin Meng
From: Bin Meng This adds a new API fdtdec_get_mem_size_base() that does similar thing to fdtdec_setup_mem_size_base_fdt(), but without assigning gd->ram_size and gd->ram_base. Signed-off-by: Bin Meng --- include/fdtdec.h | 22 ++ lib/fdtdec.c | 24

[PATCH 2/4] fdtdec: Update fdtdec_setup_mem_size_base_fdt() to call fdtdec_get_mem_size_base()

2020-07-15 Thread Bin Meng
From: Bin Meng The only difference betwen fdtdec_setup_mem_size_base_fdt() and fdtdec_get_mem_size_base() is that the former does the assignment to gd->ram_size and gd->ram_base. Simplify the codes to call fdtdec_get_mem_size_base() directly. Signed-off-by: Bin Meng --- lib/fdtdec.c | 19

RE: [PATCHv2 00/13] powerpc: covert p1010, p1020 and p2020 RDB board to DM_ETH

2020-07-15 Thread Z.q. Hou
Hi Vladimir, > -Original Message- > From: Vladimir Oltean > Sent: 2020年7月16日 5:22 > To: Priyanka Jain (OSS) > Cc: Z.q. Hou ; u-boot@lists.denx.de; > bmeng...@gmail.com > Subject: Re: [PATCHv2 00/13] powerpc: covert p1010, p1020 and p2020 RDB > board to DM_ETH > > Hi Priyanka, > > On

Re: [PATCH] Revert "riscv: Clean up IPI initialization code"

2020-07-15 Thread Bin Meng
Hi Sean, On Wed, Jul 8, 2020 at 6:48 PM Sean Anderson wrote: > > On 7/8/20 6:09 AM, Bin Meng wrote: > > Hi Sean, > > > > On Wed, Jul 8, 2020 at 5:34 PM Sean Anderson wrote: > >> > >> On 7/8/20 1:02 AM, Bin Meng wrote: > >>> From: Bin Meng > >>> > >>> This reverts commit

Re: [PATCH] github: azure: Update our GitHub template to note for CI

2020-07-15 Thread Tom Rini
On Fri, Jul 10, 2020 at 04:00:08PM -0400, Tom Rini wrote: > While the general policy of not taking changes to the project via pull > requests directly on GitHub has not changed, it can be useful to submit > a PR there in order to trigger a CI run on Azure. These are run > automatically and the

Re: [PATCH v2 1/1] .gitlab-ci.yml: copy GRUB to correct build path

2020-07-15 Thread Tom Rini
On Tue, Jul 14, 2020 at 12:23:58AM +0200, Heinrich Schuchardt wrote: > The GRUB binaries are expected in $UBOOT_TRAVIS_BUILD_DIR. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] Azure: copy GRUB to correct build path

2020-07-15 Thread Tom Rini
On Tue, Jul 14, 2020 at 12:40:19AM +0200, Heinrich Schuchardt wrote: > The GRUB binaries are expected in $UBOOT_TRAVIS_BUILD_DIR. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[PATCH 8/9] arm: dts: lx2160ardb: support eMMC HS400 mode

2020-07-15 Thread Yangbo Lu
Add properties related to eMMC HS400 mode. mmc-hs400-1_8v; bus-width = <8>; Signed-off-by: Yangbo Lu --- arch/arm/dts/fsl-lx2160a-rdb.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/fsl-lx2160a-rdb.dts b/arch/arm/dts/fsl-lx2160a-rdb.dts index d787778..5fbdd90 100644 ---

[PATCH 9/9] configs: lx2160ardb: enable eMMC HS400 mode support

2020-07-15 Thread Yangbo Lu
Enable eMMC HS400 mode support on LX2160ARDB. Signed-off-by: Yangbo Lu --- configs/lx2160ardb_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160ardb_tfa_defconfig | 1 + configs/lx2160ardb_tfa_stmm_defconfig| 1 + 3 files changed, 3 insertions(+) diff --git

[PATCH 6/9] mmc: add a mmc_hs400_prepare_ddr() interface

2020-07-15 Thread Yangbo Lu
Add a mmc_hs400_prepare_ddr() interface for controllers which needs preparation before switching to DDR mode for HS400 mode. Signed-off-by: Yangbo Lu --- drivers/mmc/mmc-uclass.c | 15 +++ drivers/mmc/mmc.c| 2 ++ include/mmc.h| 15 ++- 3 files

[PATCH 4/9] mmc: fsl_esdhc: clean TBCTL[TB_EN] manually during init

2020-07-15 Thread Yangbo Lu
Clean TBCTL[TB_EN] manually during init since it is not able to be reset by reset all operation. Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 5ad01ac..607b420 100644 ---

[PATCH 7/9] mmc: fsl_esdhc: support eMMC HS400 mode

2020-07-15 Thread Yangbo Lu
The process for eMMC HS400 mode for eSDHC is, 1. Perform the Tuning Process at the HS400 target operating frequency. Latched the clock division value. 2. if read transaction, then set the SDTIMNGCTL[FLW_CTL_BG]. 3. Switch to High Speed mode and then set the card clock frequency to a value

[PATCH 5/9] mmc: add a hs400_tuning flag

2020-07-15 Thread Yangbo Lu
Add a hs400_tuning flag to identify the tuning for HS400 mode. Signed-off-by: Yangbo Lu --- drivers/mmc/mmc.c | 2 ++ include/mmc.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index a53f93a..a18e75d 100644 --- a/drivers/mmc/mmc.c +++

[PATCH 2/9] mmc: fsl_esdhc: add a reinit() callback

2020-07-15 Thread Yangbo Lu
Add a reinit() callback for mmc rescan. Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index a4b923a..d1f2e4a 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c

[PATCH 3/9] mmc: fsl_esdhc: support tuning for eMMC HS200

2020-07-15 Thread Yangbo Lu
Support tuning process for eMMC HS200 for eSDHC. Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 106 ++-- include/fsl_esdhc.h | 17 ++-- 2 files changed, 116 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c

[PATCH 1/9] mmc: add a reinit() API

2020-07-15 Thread Yangbo Lu
For DM_MMC, the controller re-initialization is needed to clear old configuration for mmc rescan. Signed-off-by: Yangbo Lu --- drivers/mmc/mmc-uclass.c | 15 +++ drivers/mmc/mmc.c| 8 ++-- include/mmc.h| 10 ++ 3 files changed, 31 insertions(+), 2

[PATCH 0/9] mmc: fsl_esdhc: support eMMC HS200/HS400 modes

2020-07-15 Thread Yangbo Lu
This patch-set is to support eMMC HS200 and HS400 speed modes for eSDHC, and enable them on LX2160ARDB board. CI build link https://travis-ci.org/github/yangbolu1991/u-boot-test/builds/708215558 Yangbo Lu (9): mmc: add a reinit() API mmc: fsl_esdhc: add a reinit() callback mmc: fsl_esdhc:

Re: [PATCH 1/1] efi_loader: pre-seed UEFI variables

2020-07-15 Thread AKASHI Takahiro
Heinrich, On Wed, Jul 15, 2020 at 07:42:15PM +0200, Heinrich Schuchardt wrote: > Include a file with the initial values for non-volatile UEFI variables > into the U-Boot binary. If this variable is set, changes to variable PK > will not be allowed. Why do you want to impose this restriction

Re: [RFC] dfu: remove UPDATE_TFTP

2020-07-15 Thread AKASHI Takahiro
On Wed, Jul 15, 2020 at 04:42:20PM +0200, Heinrich Schuchardt wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 15.07.20 16:06, Michal Simek wrote: > > > > > > On 15. 07. 20 15:23, Lukasz Majewski wrote: > >> Hi Heinrich, > >> > >> On 15.07.20 13:24, Lukasz Majewski wrote: > >

Re: [RFC] dfu: remove UPDATE_TFTP

2020-07-15 Thread AKASHI Takahiro
Heinrich, On Wed, Jul 15, 2020 at 12:45:18PM +0200, Heinrich Schuchardt wrote: > Using UPDATE_TFTP the firmware can be updated from tFTP by writing to NOR > flash. The same is possible by defining a dfu command in CONFIG_PREBOOT. > > The dfu command cannot only write to NOR but also to other

Re: [PATCH 1/2] Revert "riscv: Allow use of reset drivers"

2020-07-15 Thread Bin Meng
Hi Rick, On Wed, Jul 8, 2020 at 3:04 PM Sean Anderson wrote: > > On 7/8/20 2:44 AM, Bin Meng wrote: > > From: Bin Meng > > > > This reverts commit 958a3f464c7f8ef7e10db9feb663e9e80445ce2f. > > > > A more appropriate change below is already in mainline. > > Commit fd31e4fd184f ("riscv: Do not

Re: [PATCH] test: use virt-make-fs to build image

2020-07-15 Thread AKASHI Takahiro
Heinrich, On Wed, Jul 15, 2020 at 08:55:15AM -0400, Tom Rini wrote: > On Wed, Jul 15, 2020 at 01:19:20PM +0900, AKASHI Takahiro wrote: > > Heinrich, > > > > On Tue, Jul 14, 2020 at 01:18:04AM +0200, Heinrich Schuchardt wrote: > > > Am 14. Juli 2020 01:02:07 MESZ schrieb AKASHI Takahiro > > > :

Re: [PATCH v3 04/17] common: update: add a generic interface for FIT image

2020-07-15 Thread AKASHI Takahiro
Heinrich, On Wed, Jul 15, 2020 at 09:07:26AM +0200, Heinrich Schuchardt wrote: > On 15.07.20 06:28, AKASHI Takahiro wrote: > > Heinrich, > > > > On Fri, Jul 10, 2020 at 06:24:45PM +0200, Heinrich Schuchardt wrote: > >> On 10.07.20 03:25, AKASHI Takahiro wrote: > >>> The main purpose of this patch

[PATCH] Fix corner case in bad block table handling.

2020-07-15 Thread Doyle, Patrick
In the unlikely event that both blocks 10 and 11 are marked as bad (on a 32 bit machine), then the process of marking block 10 as bad stomps on cached entry for block 11. There are (of course) other examples. Signed-off-by: Patrick Doyle --- drivers/mtd/nand/bbt.c | 2 +- 1 file changed, 1

Re: [PATCH 1/4] fs/squashfs: new filesystem

2020-07-15 Thread Tom Rini
On Fri, Jul 10, 2020 at 11:13:50AM +0200, Thomas Petazzoni wrote: > On Fri, 10 Jul 2020 10:54:24 +0200 > Rasmus Villemoes wrote: > > > > It's very much like the FAT filesystem case: if you have U-Boot proper > > > and your Linux kernel image in a FAT filesystem, > > > > No, this is very much

Re: [PATCH 1/4] fs/squashfs: new filesystem

2020-07-15 Thread Tom Rini
On Thu, Jul 09, 2020 at 07:51:45PM +0200, Joao Marcos Costa wrote: > Add support for SquashFS filesystem. Right now, it does not support > compression but support for zlib will be added in a follow-up commit. > > Signed-off-by: Joao Marcos Costa Sorry for the delay. If you run this patch

Re: [PATCHv2 00/13] powerpc: covert p1010, p1020 and p2020 RDB board to DM_ETH

2020-07-15 Thread Vladimir Oltean
Hi Priyanka, On Mon, Jun 08, 2020 at 09:52:57AM +, Priyanka Jain (OSS) wrote: > >-Original Message- > >From: U-Boot On Behalf Of Zhiqiang Hou > >Sent: Friday, June 5, 2020 2:25 PM > >To: u-boot@lists.denx.de; Priyanka Jain ; > >bmeng...@gmail.com; olte...@gmail.com > >Cc: Z.q. Hou >

[PATCH] arm: mach-k3: Clean non-coherent lines out of L3 cache

2020-07-15 Thread Andrew F. Davis
When switching on or off the ARM caches some care must be taken to ensure existing cache line allocations are not left in an inconsistent state. An example of this is when cache lines are considered non-shared by and L3 controller even though the lines are shared. To prevent these and other issues

[PATCH] fs/squashfs/sqfs.c: use sqfs_read_sblk() in sqfs_probe()

2020-07-15 Thread Thomas Petazzoni
sqfs_probe() currently duplicates what sqfs_read_sblk() is doing, so use the latter in the former to avoid some small code duplication. Signed-off-by: Thomas Petazzoni --- fs/squashfs/sqfs.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/fs/squashfs/sqfs.c

[PATCH 3/3] fs/squashfs: do not use CMD_RET_* defines in the filesystem code

2020-07-15 Thread Thomas Petazzoni
Using CMD_RET_* defines in fs/squashfs/ breaks the build as they are not defined. These defines are really meant to be used as return values of commands, not internally in filesystem code. Instead, appropriate errno codes should be used. This patch changes fs/squashfs to use proper errno code. In

[PATCH 0/3] squashfs fixes

2020-07-15 Thread Thomas Petazzoni
Hello Joao, As I started reviewing your patch series, I encountered a number of build issues after applying your patches, and building on the latest master. The following patches address the build failures I have encountered. Could you squash them into your commits, so that those fixes are part

[PATCH 2/3] fs/squashfs: use "struct disk_partition" instead of "disk_partition_t"

2020-07-15 Thread Thomas Petazzoni
disk_partition_t was dropped in 0528979fa7ab ("part: Drop disk_partition_t typedef"). Signed-off-by: Thomas Petazzoni --- fs/squashfs/sqfs.c | 5 +++-- include/squashfs.h | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index

[PATCH 1/3] cmd/sqfs.c, include/fs.h: fix build failures, don't expose do_sqfs_*() functions globally

2020-07-15 Thread Thomas Petazzoni
The cmd_tbl_t type has been removed upstream since commit 09140113108 ("command: Remove the cmd_tbl_t typedef"), so we must use "struct cmd_tbl" instead. The include was missing in cmd/sqfs.c, without which U_BOOT_CMD() is not defined. Finally, there is no reason to globally expose do_sqfs_ls()

Re: [v2] test: Have test_fs work with non-functional guestmount tools

2020-07-15 Thread Tom Rini
On Thu, Jul 09, 2020 at 09:42:25AM -0400, Tom Rini wrote: > Since 2011 Ubuntu has intentionally broken support for guestmount[1] by > default and requires sysadmin intervention to re-enable support. This > in turn exposed that in our tests if guestmount is available but fails > we do not fall

Re: [PATCH 3/4] fs/squashfs: add sources for zlib decompression

2020-07-15 Thread Thomas Petazzoni
Hello Joao, On Thu, 9 Jul 2020 19:51:47 +0200 Joao Marcos Costa wrote: > Add zlib (v1.2.11) functions to U-Boot. SquashFS depends on those > functions to decompress data from a raw disk image. The actual support > for zlib into SquashFS sources will be added in a follow-up commit. > >

Re: [PATCH v2 13/14] blkcache: Extend blkcache_init to cover CONFIG_NEEDS_MANUAL_RELOC

2020-07-15 Thread Eric Nelson
On 7/10/20 3:19 AM, Ovidiu Panait wrote: Extend manual relocation of block_cache list pointers to all platforms that enable CONFIG_NEEDS_MANUAL_RELOC. Remove m68k-specific checks and provide a single implementation that adds gd->reloc_off to the pre-relocation pointers. Cc: Angelo Durgehello

Re: [PATCH v3 29/49] rockchip: Enable building a SPI ROM image on bob

2020-07-15 Thread Jagan Teki
Hi Simon, On Thu, Jul 16, 2020 at 12:10 AM Simon Glass wrote: > > Hi Jagan, > > On Mon, 13 Jul 2020 at 09:36, Jagan Teki wrote: > > > > On Fri, Jul 10, 2020 at 6:11 AM Simon Glass wrote: > > > > > > Add a simple binman config and enable CONFIG_HAS_ROM so that U-Boot > > > produces a ROM for

Re: [PATCH v3 29/49] rockchip: Enable building a SPI ROM image on bob

2020-07-15 Thread Simon Glass
Hi Jagan, On Mon, 13 Jul 2020 at 09:36, Jagan Teki wrote: > > On Fri, Jul 10, 2020 at 6:11 AM Simon Glass wrote: > > > > Add a simple binman config and enable CONFIG_HAS_ROM so that U-Boot > > produces a ROM for bob. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > >

Re: uboot-test-hooks: dfu-util

2020-07-15 Thread Heinrich Schuchardt
On 15.07.20 19:38, Heinrich Schuchardt wrote: > On 15.07.20 17:57, Stephen Warren wrote: >> On 7/15/20 4:34 AM, Heinrich Schuchardt wrote: >>> Hello Stephen, >>> >>> I have just looked into dfu testing. >>> >>> Do we still need a custom dfu-util? At least the dfu-util provided by >>> Ubuntu

Re: [PATCH v1 0/2] use dt and UCLASS_IRQ/SYSCON to get gic details

2020-07-15 Thread Rayagonda Kokatanur
Hi Simon, On Wed, Jul 8, 2020 at 12:45 PM Rayagonda Kokatanur wrote: > > Use device tree and driver class (UCLASS_IRQ and UCLASS_SYSCON) to get > gic details like GICD, GICR base address, max number of redistributors > and git lpi address. > > Rayagonda Kokatanur (2): > arch: arm: use dt and

Re: [PATCH for v2020.10 1/1] cmd: drop fitupd command

2020-07-15 Thread Heinrich Schuchardt
On 17.06.20 11:29, Lukasz Majewski wrote: > On Wed, 17 Jun 2020 11:09:03 +0200 > Heinrich Schuchardt wrote: > >> The `fitupd' command is not used by any board. The `dfu tftp' command >> provides the same capabilities. >> >> So let's drop the `fitupd' command. >> >> Signed-off-by: Heinrich

[PATCH 1/1] efi_loader: pre-seed UEFI variables

2020-07-15 Thread Heinrich Schuchardt
Include a file with the initial values for non-volatile UEFI variables into the U-Boot binary. If this variable is set, changes to variable PK will not be allowed. Signed-off-by: Heinrich Schuchardt --- include/asm-generic/sections.h | 2 ++ include/efi_variable.h | 8

Re: uboot-test-hooks: dfu-util

2020-07-15 Thread Heinrich Schuchardt
On 15.07.20 17:57, Stephen Warren wrote: > On 7/15/20 4:34 AM, Heinrich Schuchardt wrote: >> Hello Stephen, >> >> I have just looked into dfu testing. >> >> Do we still need a custom dfu-util? At least the dfu-util provided by >> Ubuntu bionic/universe in our Docker image provides the -p

[PATCH v5 2/2] configs: ns3: enable tee and optee driver

2020-07-15 Thread Rayagonda Kokatanur
Enable tee and optee drivers. Signed-off-by: Vikas Gupta Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index

[PATCH v5 0/2] add optee support for broadcom NS3 soc

2020-07-15 Thread Rayagonda Kokatanur
This is fourth patch set series prepared on top of third patch set ("add FIT image support for broadcom NS3 soc"). This patch adds optee support. Changes from v4: -Address review comments from Simon, Add blank line before return. Changes from v3: -Address review comments from Simon,

[PATCH v5 1/2] drivers: tee: broadcom: add optee based bnxt fw load driver

2020-07-15 Thread Rayagonda Kokatanur
From: Vikas Gupta Add optee based bnxt fw load driver. bnxt is Broadcom NetXtreme controller Ethernet card. This driver is used to load bnxt firmware binary using OpTEE. Signed-off-by: Vikas Gupta Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- Changes from v4:

[PATCH v4 3/3] board: ns3: add development keys used in FIT

2020-07-15 Thread Rayagonda Kokatanur
From: Pramod Kumar Add development keys used in FIT. Signed-off-by: Pramod Kumar Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- board/broadcom/bcmns3/fit/keys/dev.crt | 21 +++ board/broadcom/bcmns3/fit/keys/dev.key | 28 ++ 2 files

[PATCH v4 1/3] configs: ns3: enable FIT config

2020-07-15 Thread Rayagonda Kokatanur
Enable FIT config for NS3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index ab26617158..0e078f3244 100644 ---

[PATCH v4 2/3] board: ns3: add FIT image its file

2020-07-15 Thread Rayagonda Kokatanur
From: Pramod Kumar Add FIT image its file. Signed-off-by: Pramod Kumar Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- board/broadcom/bcmns3/fit/multi.its | 59 + 1 file changed, 59 insertions(+) create mode 100644

[PATCH v4 0/3] add FIT image support for broadcom NS3 soc

2020-07-15 Thread Rayagonda Kokatanur
This is third patch set series prepared on top of second patch set ("add basic driver support for broadcom NS3 soc"). This patch set enables FIT config and add FIT image its files and keys. Changes from v3: - Rebase on top of second patch set. Changes from v2: - Rebase on top of second patch

[PATCH v5 2/7] dt-bindings: pinctrl: add ns3 pads definition

2020-07-15 Thread Rayagonda Kokatanur
Add NS3 pads definitions. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- .../dt-bindings/pinctrl/brcm,pinctrl-ns3.h| 41 +++ 1 file changed, 41 insertions(+) create mode 100644 include/dt-bindings/pinctrl/brcm,pinctrl-ns3.h diff --git

[PATCH v5 4/7] configs: ns3: enable mmc commands

2020-07-15 Thread Rayagonda Kokatanur
Enable mmc commands for NS3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 432237b56d..a1ee866e54 100644 --- a/configs/bcm_ns3_defconfig

[PATCH v5 7/7] configs: ns3: enable sp805 watchdog driver

2020-07-15 Thread Rayagonda Kokatanur
Enable sp805 watchdog driver for ns3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 66fbdb20d6..ab26617158 100644 ---

[PATCH v5 5/7] configs: ns3: enable gpt commands

2020-07-15 Thread Rayagonda Kokatanur
Enable gpt commands for ns3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index a1ee866e54..0f23f30db2 100644 --- a/configs/bcm_ns3_defconfig

[PATCH v5 3/7] configs: ns3: enable BCM IPROC mmc driver

2020-07-15 Thread Rayagonda Kokatanur
Enable BCM IPROC mmc driver ns3. Enable DMA for MMC Host to have better reads and writes. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig

[PATCH v5 6/7] configs: ns3: enable EXT4 and FAT fs support

2020-07-15 Thread Rayagonda Kokatanur
Enable EXT4 and FAT fs support for ns3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 0f23f30db2..66fbdb20d6 100644 ---

[PATCH v5 0/7] add basic driver support for broadcom NS3 soc

2020-07-15 Thread Rayagonda Kokatanur
This is the second patch set series prepared on top of the first patch set ("add initial support for broadcom NS3 soc"). This patch set will add following, -defconfig options for basic device like pinctrl, gpio, mmc, qspi, wdt, i2c and pcie. -start wdt service -Enable GPT commands -Enable EXT4

[PATCH v5 1/7] configs: ns3: enable pinctrl driver

2020-07-15 Thread Rayagonda Kokatanur
Enable pinctrl driver for ns3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 9adb44cb51..328b0e2b4e 100644 ---

[PATCH 1/1] efi_loader: simplify 'printenv -e'

2020-07-15 Thread Heinrich Schuchardt
Currently default output of 'printenv -e' is restricted to variables with GUID EFI_GLOBAL_VARIABLE. This excludes db and dbx. As the number of variables is small there is no need for this restriction. If no GUID is provided, print all matching variables irrespective of GUID. Always show the

[PATCH v5 15/15] MAINTAINERS: update maintainers for broadcom ns3 platform

2020-07-15 Thread Rayagonda Kokatanur
Update MAINTAINERS for broadcom ns3 platform (TARGET_NS3). Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- MAINTAINERS | 15 +++ 1 file changed, 15 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2a281a9a0f..f96993b84c 100644 --- a/MAINTAINERS +++

[PATCH v5 14/15] doc: add README doc for bcmns3 platform

2020-07-15 Thread Rayagonda Kokatanur
Add README doc for bcmns3 platform. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- doc/README.bcmns3 | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 doc/README.bcmns3 diff --git a/doc/README.bcmns3 b/doc/README.bcmns3

[PATCH v5 13/15] include/configs: ns3: add support for flashing images

2020-07-15 Thread Rayagonda Kokatanur
From: Bharat Gooty Add support for flashing images into QSPI and eMMC. Signed-off-by: Bharat Gooty Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- include/configs/bcm_ns3.h | 491 +- 1 file changed, 490 insertions(+), 1 deletion(-) diff

[PATCH v5 11/15] board: ns3: limit U-boot relocation within 16MB memory

2020-07-15 Thread Rayagonda Kokatanur
From: Bharat Kumar Reddy Gooty By default relocation happens to a higher address of DDR, i.e, DDR start + DDR size. U-Boot shall be used to collect the ramdump. Restrict U-Boot to use only the 16MB memory, so that this memory can be reserved. Limit relocation to happen within 16MB memory, start

[PATCH v5 09/15] dt-bindings: memory: ns3: add ddr memory definition

2020-07-15 Thread Rayagonda Kokatanur
Add ddr memory definitions. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- include/dt-bindings/memory/bcm-ns3-mc.h | 31 - 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/memory/bcm-ns3-mc.h

[PATCH v5 08/15] configs: ns3: enable GIC_V3 ITS

2020-07-15 Thread Rayagonda Kokatanur
Enables the Generic Interrupt Controller (GIC) V3 Interrupt Translation Service (ITS) Locality-specific Peripheral Interrupts (LPI) configuration table and LPI table. Signed-off-by: Rayagonda Kokatanur Signed-off-by: Bharat Kumar Reddy Gooty Reviewed-by: Simon Glass ---

[PATCH v5 12/15] include/configs: ns3: add env variables for Linux boot

2020-07-15 Thread Rayagonda Kokatanur
From: Bharat Gooty Add env variables and commands for booting Linux. Signed-off-by: Bharat Gooty Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- include/configs/bcm_ns3.h | 294 ++ 1 file changed, 294 insertions(+) diff --git

[PATCH v5 10/15] board: ns3: define ddr memory layout

2020-07-15 Thread Rayagonda Kokatanur
Add both DRAM banks memory information and the corresponding MMU page table mappings. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- arch/arm/dts/ns3-board.dts | 23 board/broadcom/bcmns3/ns3.c | 106

[PATCH v5 04/15] dt-bindings: memory: ns3: add memory definitions

2020-07-15 Thread Rayagonda Kokatanur
Add NS3 memory definitions. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- Changes from v4: -Address self review comments, Correction u-boot to U-Boot. include/dt-bindings/memory/bcm-ns3-mc.h | 34 + 1 file changed, 34 insertions(+) create mode

[PATCH v5 05/15] board: ns3: add api to save boot parameters passed from BL31

2020-07-15 Thread Rayagonda Kokatanur
From: Abhishek Shah Add API to save boot parameters passed from BL31 Use assembly implementation of save_boot_params instead of c function. Because generally ATF does not set up SP_EL2 on exiting. Thus, usage of a C function immediately after exiting with no stack setup done by ATF explicitly,

[PATCH v5 07/15] board: ns3: program GIC LPI tables

2020-07-15 Thread Rayagonda Kokatanur
U-boot programs the GIC LPI configuration tables and enables the LPI table. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- board/broadcom/bcmns3/ns3.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v5 03/15] configs: ns3: enable clock subsystem

2020-07-15 Thread Rayagonda Kokatanur
Enable clock subsystem for ns3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index a81541e394..7e51a926f7 100644 ---

[PATCH v5 06/15] board: ns3: default reset type to L3

2020-07-15 Thread Rayagonda Kokatanur
Default "reset" from U-Boot to L3 reset. "reset" command with argument will trigger L1 reset. Signed-off-by: Rajesh Ravi Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- Changes from v4: -Address review comments from Simon, Move hash

[PATCH v5 02/15] arm: cpu: armv8: add L3 memory flush support

2020-07-15 Thread Rayagonda Kokatanur
Add L3 memory flush support for NS3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/bcmns3/Makefile | 5 ++ arch/arm/cpu/armv8/bcmns3/lowlevel.S | 89 3 files changed, 95

[PATCH v5 00/15] add initial support for broadcom NS3 soc

2020-07-15 Thread Rayagonda Kokatanur
This patch series adds initial support for Broadcom Northstar 3 SoC. NS3 is a octo-core 64-bit ARMv8 Cortex-A72 processors targeting a broad range of networking applications. Changes from v4: -Address review comments from Simon, Move hash defines at top of file and add comment, Correct

[PATCH v5 01/15] board: ns3: add support for Broadcom Northstar 3

2020-07-15 Thread Rayagonda Kokatanur
Add support for Broadcom Northstar 3 SoC. NS3 is a octo-core 64-bit ARMv8 Cortex-A72 processors targeting a broad range of networking applications. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- arch/arm/Kconfig | 10 ++ arch/arm/dts/Makefile | 2 ++

Re: uboot-test-hooks: dfu-util

2020-07-15 Thread Stephen Warren
On 7/15/20 4:34 AM, Heinrich Schuchardt wrote: > Hello Stephen, > > I have just looked into dfu testing. > > Do we still need a custom dfu-util? At least the dfu-util provided by > Ubuntu bionic/universe in our Docker image provides the -p parameter. Yes, it looks like the -p option is

Re: [PATCH v4 14/15] doc: add README doc for bcmns3 platform

2020-07-15 Thread Rayagonda Kokatanur
On Wed, Jul 15, 2020 at 6:59 PM Tom Rini wrote: > > On Fri, Jul 10, 2020 at 02:22:19PM +0530, Rayagonda Kokatanur wrote: > > > Add README doc for bcmns3 platform. > > > > Signed-off-by: Rayagonda Kokatanur > > --- > > doc/README.bcmns3 | 74 +++ > > 1

Re: [RFC] dfu: remove UPDATE_TFTP

2020-07-15 Thread Michal Simek
On 15. 07. 20 16:42, Heinrich Schuchardt wrote: > On 15.07.20 16:06, Michal Simek wrote: > > >> On 15. 07. 20 15:23, Lukasz Majewski wrote: >>> Hi Heinrich, >>> >>> On 15.07.20 13:24, Lukasz Majewski wrote: >> Hi Heinrich, >> >>> Using UPDATE_TFTP the firmware can be updated from

Re: [RFC] dfu: remove UPDATE_TFTP

2020-07-15 Thread Heinrich Schuchardt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 15.07.20 16:06, Michal Simek wrote: > > > On 15. 07. 20 15:23, Lukasz Majewski wrote: >> Hi Heinrich, >> >> On 15.07.20 13:24, Lukasz Majewski wrote: > Hi Heinrich, > >> Using UPDATE_TFTP the firmware can be updated from tFTP >>

Re: [PATCH v2 06/14] board_f: m68k: Factor out m68k-specific bdinfo setup

2020-07-15 Thread Ovidiu Panait
Hi Simon, On 15.07.2020 04:05, Simon Glass wrote: On Fri, 10 Jul 2020 at 04:25, Ovidiu Panait wrote: Factor out m68k-specific bdinfo setup to arch_setup_bdinfo in arch/m68k/lib/bdinfo.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2

Re: [RFC] dfu: remove UPDATE_TFTP

2020-07-15 Thread Michal Simek
On 15. 07. 20 15:23, Lukasz Majewski wrote: > Hi Heinrich, > > On 15.07.20 13:24, Lukasz Majewski wrote: Hi Heinrich, > Using UPDATE_TFTP the firmware can be updated from tFTP by > writing to NOR flash. The same is possible by defining a dfu > command in CONFIG_PREBOOT.

[PATCH 6/6] usb.c: Add a retry in the usb_prepare_device()

2020-07-15 Thread Jason Wessel
I have found through testing some USB 2 composite mouse/keyboard devices do not response to the usb_set_address call immediately following the port reset. It can take anywhere from 2ms to 20ms. This patch adds a retry and delay for usb_prepare_device() and allows all the USB keyboards I tried to

[PATCH 5/6] xhci-ring: Fix crash when issuing "usb reset"

2020-07-15 Thread Jason Wessel
If a "usb reset" is issued when the poll_pend state is set the abort_td() function will hit one of the BUG() statements in abort_td() or the BUG() statement at the end of xhci_wait_for_event(). The controller has been reset, so the rest of the cleanup should be skipped and poll_pend flag should

  1   2   >