Re: [PATCH v4 7/7] test/py: efi_secboot: add test for intermediate certificates

2020-07-20 Thread AKASHI Takahiro
Heinrich, On Mon, Jul 20, 2020 at 08:29:45AM +0200, Heinrich Schuchardt wrote: > On 7/20/20 7:52 AM, AKASHI Takahiro wrote: > > Heinrich, > > > > On Fri, Jul 17, 2020 at 12:29:06PM +0200, Heinrich Schuchardt wrote: > >> On 17.07.20 09:16, AKASHI Takahiro wrote: > >>> In this test case, an image ma

RE: [v2, 01/11] mmc: add a reinit() API

2020-07-20 Thread Y.b. Lu
Hi Peng, > -Original Message- > From: Peng Fan > Sent: Monday, July 20, 2020 9:33 AM > To: Y.b. Lu ; u-boot@lists.denx.de; Priyanka Jain > ; 'Jaehoon Chung' > Cc: Y.b. Lu > Subject: RE: [v2, 01/11] mmc: add a reinit() API > > > Subject: [v2, 01/11] mmc: add a reinit() API > > > > For D

RE: [v2, 05/11] mmc: add a hs400_tuning flag

2020-07-20 Thread Y.b. Lu
Hi Peng, > -Original Message- > From: Peng Fan > Sent: Monday, July 20, 2020 9:37 AM > To: Y.b. Lu ; u-boot@lists.denx.de; Priyanka Jain > ; 'Jaehoon Chung' > Cc: Y.b. Lu > Subject: RE: [v2, 05/11] mmc: add a hs400_tuning flag > > > Subject: [v2, 05/11] mmc: add a hs400_tuning flag > >

RE: [v2, 06/11] mmc: add a mmc_hs400_prepare_ddr() interface

2020-07-20 Thread Y.b. Lu
Hi Peng, > -Original Message- > From: Peng Fan > Sent: Monday, July 20, 2020 9:40 AM > To: Y.b. Lu ; u-boot@lists.denx.de; Priyanka Jain > ; 'Jaehoon Chung' > Cc: Y.b. Lu > Subject: RE: [v2, 06/11] mmc: add a mmc_hs400_prepare_ddr() interface > > > Subject: [v2, 06/11] mmc: add a mmc_h

RE: [v2, 07/11] mmc: fsl_esdhc: support eMMC HS400 mode

2020-07-20 Thread Y.b. Lu
Hi Peng, > -Original Message- > From: Peng Fan > Sent: Monday, July 20, 2020 9:42 AM > To: Y.b. Lu ; u-boot@lists.denx.de; Priyanka Jain > ; 'Jaehoon Chung' > Cc: Y.b. Lu > Subject: RE: [v2, 07/11] mmc: fsl_esdhc: support eMMC HS400 mode > > > Subject: [v2, 07/11] mmc: fsl_esdhc: suppo

RE: [v2, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode

2020-07-20 Thread Y.b. Lu
Hi Peng, > -Original Message- > From: Peng Fan > Sent: Monday, July 20, 2020 9:45 AM > To: Y.b. Lu ; u-boot@lists.denx.de; Priyanka Jain > ; 'Jaehoon Chung' > Cc: Y.b. Lu > Subject: RE: [v2, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode > > > Subject: [v2, 10/11] arm: dts: lx216

Re: [PATCH v4 1/2] arm: move CONFIG_PREBOOT="usb start" to KConfig

2020-07-20 Thread Neil Armstrong
Hi, On 19/07/2020 15:56, Jonas Smedegaard wrote: > This commit moves CONFIG_PREBOOT="usb start" to common/KConfig > for all boards also declaring USB_KEYBOARD. > > Besides simplifying defconfig files, this also enables support for > board-specific CONFIG_PREBOOT for sunxi boards: > commit 37304aa

Re: [PATCH v2 2/2] ram: sifive: Avoid using hardcoded ram base and size

2020-07-20 Thread Leo Liang
On Sun, Jul 19, 2020 at 11:06:35PM -0700, Bin Meng wrote: > 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 d

Re: [PATCH 07/10] compiler*.h: sync include/linux/compiler*.h with Linux 5.7-rc5

2020-07-20 Thread Jagan Teki
On Thu, May 14, 2020 at 6:03 PM Tom Rini wrote: > > Copy these from Linux v5.7-rc5 tag. > > This brings in some handy new attributes and is otherwise important to > keep in sync. > > We drop the reference to smp_read_barrier_depends() as it is not > relevant on the architectures we support at this

[PATCHv2] lmb/bdinfo: dump lmb info via bdinfo

2020-07-20 Thread Tero Kristo
Dump lmb status from the bdinfo command. This is useful for seeing the reserved memory regions from the u-boot cmdline. Signed-off-by: Tero Kristo --- v2: * rebased to latest master cmd/bdinfo.c | 6 ++ include/lmb.h | 1 + lib/lmb.c | 42 +++---

RE: [v2, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode

2020-07-20 Thread Peng Fan
> Subject: RE: [v2, 10/11] arm: dts: lx2160ardb: support eMMC HS400 mode > > Hi Peng, > > > -Original Message- > > From: Peng Fan > > Sent: Monday, July 20, 2020 9:45 AM > > To: Y.b. Lu ; u-boot@lists.denx.de; Priyanka Jain > > ; 'Jaehoon Chung' > > Cc: Y.b. Lu > > Subject: RE: [v2,

Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

2020-07-20 Thread Rick Chen
Hi Pragnesh > Hi Rick, > > Any comments on this patch ? Applied to u-boot-riscv/master ! Thanks, Rick > >From: U-Boot On Behalf Of Pragnesh Patel > >Sent: 24 June 2020 13:14 > >To: Bin Meng ; Rick Chen > >Cc: U-Boot Mailing List ; Atish Patra > >; palmerdabb...@google.com; Paul Walmsley ( Sif

Re: [PATCH v6 3/3] gpio: search for gpio label if gpio is not found through bank name

2020-07-20 Thread Michal Simek
Hi Heiko, pá 22. 5. 2020 v 11:10 odesílatel Heiko Schocher napsal: > > dm_gpio_lookup_name() searches for a gpio through > the bank name. But we have also gpio labels, and it > makes sense to search for a gpio also in the labels > we have defined, if no gpio is found through the > bank name defin

[PATCH] rockpro64: Enable USB3.0 Host

2020-07-20 Thread Jagan Teki
Enable USB3.0 Host support for RockPro64 boards. Signed-off-by: Jagan Teki --- configs/rockpro64-rk3399_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/rockpro64-rk3399_defconfig b/configs/rockpro64-rk3399_defconfig index 31b3ee2aa4..25cf5c781c 100644 --- a/configs/roc

RE: [PATCH v2 2/2] ram: sifive: Avoid using hardcoded ram base and size

2020-07-20 Thread Pragnesh Patel
Hi Bin, >-Original Message- >From: Bin Meng >Sent: 20 July 2020 11:37 >To: Rick Chen ; Pragnesh Patel >; Sagar Kadam ; U- >Boot Mailing List >Cc: Bin Meng >Subject: [PATCH v2 2/2] ram: sifive: Avoid using hardcoded ram base and size > >[External Email] Do not click links or attachments

RE: [PATCH v2 1/2] riscv: dts: hifive-unleashed-a00: Make memory node available to SPL

2020-07-20 Thread Pragnesh Patel
>-Original Message- >From: Bin Meng >Sent: 20 July 2020 11:37 >To: Rick Chen ; Pragnesh Patel >; Sagar Kadam ; U- >Boot Mailing List >Cc: Bin Meng >Subject: [PATCH v2 1/2] riscv: dts: hifive-unleashed-a00: Make memory node >available to SPL > >[External Email] Do not click links or attac

Re: [PATCH v2 0/2] add broadcom spi driver

2020-07-20 Thread Rayagonda Kokatanur
Hi Jagan, On Sun, May 17, 2020 at 12:54 PM Rayagonda Kokatanur wrote: > > This patchset, > -adds Broadcom SPI driver for iproc-based platforms and > -extends Micron SPI commands for dual and quad SPI transfers on Micon SPI. > > Changes from v1: > -Address review comments from Jagan Teki, > Rem

Re: [PATCH v2 2/2] ram: sifive: Avoid using hardcoded ram base and size

2020-07-20 Thread Bin Meng
Hi Pragnesh, On Mon, Jul 20, 2020 at 5:28 PM Pragnesh Patel wrote: > > Hi Bin, > > >-Original Message- > >From: Bin Meng > >Sent: 20 July 2020 11:37 > >To: Rick Chen ; Pragnesh Patel > >; Sagar Kadam ; U- > >Boot Mailing List > >Cc: Bin Meng > >Subject: [PATCH v2 2/2] ram: sifive: Avoi

Re: [PATCH v2 2/3] watchdog: rti_wdt: Add support for loading firmware

2020-07-20 Thread Jan Kiszka
On 29.06.20 20:44, Jan Kiszka wrote: On 29.06.20 14:37, Tom Rini wrote: On Mon, Jun 29, 2020 at 07:56:53AM +0530, Lokesh Vutla wrote: +Tom On 23/06/20 8:11 pm, Jan Kiszka wrote: On 23.06.20 14:37, Jan Kiszka wrote: On 23.06.20 13:50, Lokesh Vutla wrote: On 23/06/20 4:45 pm, Jan Kiszka wro

RE: [PATCH v2 2/2] ram: sifive: Avoid using hardcoded ram base and size

2020-07-20 Thread Pragnesh Patel
Hi Bin, >-Original Message- >From: Bin Meng >Sent: 20 July 2020 15:04 >To: Pragnesh Patel >Cc: Bin Meng ; Sagar Kadam >; Rick Chen ; U-Boot >Mailing List >Subject: Re: [PATCH v2 2/2] ram: sifive: Avoid using hardcoded ram base and >size > >[External Email] Do not click links or attachme

RE: [PATCH v3 3/5] fu540: dtsi: add reset producer and consumer entries

2020-07-20 Thread Pragnesh Patel
>-Original Message- >From: Sagar Kadam >Sent: 10 July 2020 14:08 >To: u-boot@lists.denx.de >Cc: r...@andestech.com; Paul Walmsley ( Sifive) >; pal...@dabbelt.com; anup.pa...@wdc.com; >atish.pa...@wdc.com; lu...@denx.de; Pragnesh Patel >; bin.m...@windriver.com; >ja...@amarulasolutions.com;

RE: [PATCH v3 2/5] fu540: prci: use common reset indexes defined in binding header

2020-07-20 Thread Pragnesh Patel
>-Original Message- >From: Sagar Kadam >Sent: 10 July 2020 14:08 >To: u-boot@lists.denx.de >Cc: r...@andestech.com; Paul Walmsley ( Sifive) >; pal...@dabbelt.com; anup.pa...@wdc.com; >atish.pa...@wdc.com; lu...@denx.de; Pragnesh Patel >; bin.m...@windriver.com; >ja...@amarulasolutions.com;

RE: [PATCH v3 1/5] dt-bindings: prci: add indexes for reset signals available in prci

2020-07-20 Thread Pragnesh Patel
>-Original Message- >From: Sagar Kadam >Sent: 10 July 2020 14:08 >To: u-boot@lists.denx.de >Cc: r...@andestech.com; Paul Walmsley ( Sifive) >; pal...@dabbelt.com; anup.pa...@wdc.com; >atish.pa...@wdc.com; lu...@denx.de; Pragnesh Patel >; bin.m...@windriver.com; >ja...@amarulasolutions.com;

[PATCH] rockchip: ram: fix debug funcfion define when RAM_ROCKCHIP_DEBUG not set

2020-07-20 Thread Kever Yang
The empty function define should not be in the header file, or else the build will error with function multi definition after CONFIG_RAM_ROCKCHIP_DEBUG is disabled. Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/sdram_common.h | 15 --- drivers/ram/rockchip/sdram_c

Re: [PATCH] rockchip: ram: fix debug funcfion define when RAM_ROCKCHIP_DEBUG not set

2020-07-20 Thread Jagan Teki
Hi Kever, On Mon, Jul 20, 2020 at 4:08 PM Kever Yang wrote: > > The empty function define should not be in the header file, or else the > build will error with function multi definition after > CONFIG_RAM_ROCKCHIP_DEBUG > is disabled. Any specific reason why? usually, it has in the header in mo

Re: [PATCH v4 3/4] rtc: rk8xx: Add base support for the RK808 PMIC RTC

2020-07-20 Thread Jagan Teki
Hi Kever, On Sat, Jul 18, 2020 at 5:41 PM Kever Yang wrote: > > Hi Jagan, > > On 2020/7/10 下午11:50, Jagan Teki wrote: > > From: Suniel Mahesh > > > > Rockchip RK808 PMIC provides an integrated RTC module. It is > > commonly used with Rockchip SoCs. Add basic support to access > > date and time.

[PATCH v2 00/18] Add new board: Xen guest for ARM64

2020-07-20 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko This work introduces Xen [1] guest ARM64 board support in U-Boot with para-virtualized (PV) [2] block and serial drivers: xenguest_arm64. This board is to be run as a virtual Xen guest with U-boot as its primary bootloader. The rationale behind introducing this board

[PATCH v2 01/18] Add MIT License

2020-07-20 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko --- Licenses/README | 1 + Licenses/mit.txt | 20 2 files changed, 21 insertions(+) create mode 100644 Licenses/mit.txt diff --git a/Licenses/README b/Licenses/README index 486e18d0d8..c23ad216fc 100644 --

[PATCH v2 05/18] xen: Port Xen hypervizor related code from mini-os

2020-07-20 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Port hypervizor related code from mini-os. Update essential arch code to support required bit operations, memory barriers etc. Copyright for the bits ported belong to at least the following authors, please see related files for details: Copyright (c) 2002-2003, K A

[PATCH v2 02/18] Kconfig: Introduce CONFIG_XEN

2020-07-20 Thread Anastasiia Lukianenko
From: Peng Fan Introduce CONFIG_XEN to make U-Boot could be used as bootloader for a virtual machine. Without bootloader, we could successfully boot up android on XEN, but we need need bootloader to support A/B, dm verify and etc. Signed-off-by: Peng Fan Signed-off-by: Oleksandr Andrushchenko

[PATCH v2 06/18] xen: Port Xen event channel driver from mini-os

2020-07-20 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Make required updates to run on u-boot. Strip functionality not needed by U-boot. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- drivers/xen/Makefile | 1 + drivers/xen/events.c | 195

[PATCH v2 04/18] board: Introduce xenguest_arm64 board

2020-07-20 Thread Anastasiia Lukianenko
From: Andrii Anisov Introduce a minimal Xen guest board running as a virtual machine under Xen Project's hypervisor [1], [2]. Part of the code is ported from Xen mini-os and also uses work initially done by different authors from NXP: please see relevant files for their copyrights. [1] https://

[PATCH v2 07/18] serial: serial_xen: Add Xen PV serial driver

2020-07-20 Thread Anastasiia Lukianenko
From: Peng Fan Add support for Xen para-virtualized serial driver. This driver fully supports serial console for the virtual machine. Please note that as the driver is initialized late, so no banner nor memory size is visible. Signed-off-by: Peng Fan Signed-off-by: Oleksandr Andrushchenko Sig

[PATCH v2 09/18] lib: sscanf: add sscanf implementation

2020-07-20 Thread Anastasiia Lukianenko
From: Andrii Anisov Port sscanf implementation from mini-os and introduce new Kconfig option to enable it: CONFIG_SSCANF. Disable by default. Signed-off-by: Andrii Anisov Signed-off-by: Anastasiia Lukianenko Signed-off-by: Oleksandr Andrushchenko --- include/vsprintf.h | 8 + lib/Kconfig

[PATCH v2 08/18] linux/compat.h: Add wait_event_timeout macro

2020-07-20 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Add wait_event_timeout - sleep until a condition gets true or a timeout elapses. This is a stripped version of the same from Linux kernel with the following u-boot specific modifications: - no wait queues supported - use u-boot timer to detect timeouts - check for

[PATCH v2 11/18] xen: Port Xen grant table driver from mini-os

2020-07-20 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Make required updates to run on u-boot. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- board/xen/xenguest_arm64/xenguest_arm64.c | 13 ++ drivers/xen/Makefile | 1 + drivers/xen/gnttab.c

[PATCH v2 10/18] xen: Port Xen bus driver from mini-os

2020-07-20 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Make required updates to run on u-boot and strip test code. Signed-off-by: Anastasiia Lukianenko Signed-off-by: Oleksandr Andrushchenko --- arch/arm/Kconfig | 1 + board/xen/xenguest_arm64/xenguest_arm64.c | 16 +- drivers/xen/Makefile

[PATCH v2 13/18] xen: pvblock: Enumerate virtual block devices

2020-07-20 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Enumerate Xen virtual block devices found in XenStore and instantiate pvblock devices. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- drivers/xen/pvblock.c | 112 +- 1 file changed, 110 insert

[PATCH v2 12/18] xen: pvblock: Add initial support for para-virtualized block driver

2020-07-20 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Add initial infrastructure for Xen para-virtualized block device. This includes compile-time configuration and the skeleton for the future driver implementation. Add new class UCLASS_PVBLOCK which is going to be a parent for virtual block devices. Add new interface typ

[PATCH v2 15/18] xen: pvblock: Implement front-back protocol and do IO

2020-07-20 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Implement Xen para-virtual frontend to backend communication and actually read/write disk data. This is based on mini-os implementation of the para-virtual block frontend driver. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko --- drive

[PATCH v2 14/18] xen: pvblock: Read XenStore configuration and initialize

2020-07-20 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Read essential virtual block device configuration data from XenStore, initialize front ring and event channel. Update block device description with actual block size. Use code for XenStore from mini-os. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasii

[PATCH v2 16/18] xen: pvblock: Print found devices indices

2020-07-20 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko Reviewed-by: Simon Glass --- drivers/xen/pvblock.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/xen/pvblock.c b/drivers/xen/pvblock.c index 1284bc4cca..

[PATCH v2 18/18] doc: xen: Add Xen guest ARM64 board documentation

2020-07-20 Thread Anastasiia Lukianenko
From: Anastasiia Lukianenko Signed-off-by: Anastasiia Lukianenko --- doc/board/index.rst | 1 + doc/board/xen/index.rst | 9 doc/board/xen/xenguest_arm64.rst | 81 3 files changed, 91 insertions(+) create mode 100644 doc/board/xen/i

[PATCH v2 17/18] board: xen: De-initialize before jumping to Linux

2020-07-20 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Free resources used by Xen board before jumping to Linux kernel. Signed-off-by: Oleksandr Andrushchenko Signed-off-by: Anastasiia Lukianenko Reviewed-by: Simon Glass --- board/xen/xenguest_arm64/xenguest_arm64.c | 6 ++ drivers/xen/hypervisor.c

[PATCH 1/1] arm: Add SPL build check to SPL early bss clear

2020-07-20 Thread Brian Moyer
SPL_CLEAR_BSS is called regardless of build type if CONFIG_SPL_EARLY_BSS is defined. Add a guard for CONFIG_SPL_BUILD to fix. Signed-off-by: Brian Moyer --- arch/arm/lib/crt0.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/crt0.S b/arch/arm/lib/crt0.S index df

[PATCH v2 03/18] xen: Add essential and required interface headers

2020-07-20 Thread Anastasiia Lukianenko
From: Oleksandr Andrushchenko Add essential and required Xen interface headers only taken from the stable Linux kernel stable/linux-5.7.y at commit 66dfe4522160 Linux 5.7.5. These are better suited for U-boot than the original headers from Xen as they are the stripped versions of the same. At t

Re: [PATCH] bcmgenet: fix DMA buffer management

2020-07-20 Thread Etienne Dublé
Hi Jason, Thanks for testing and for the additional fix. In my case (with dhcp followed by 3 TFTP transfers), the board booted fine 20 times in a row with only my fix applied. Previously it was booting once in 10 trials or so. The driver resets tx_index in bcmgenet_gmac_eth_send() if it is hig

[PATCH 0/1] Fix SPL_EARLY_BSS applying to normal build

2020-07-20 Thread Brian Moyer
SPL_CLEAR_BSS is called regardless of build type if CONFIG_SPL_EARLY_BSS is defined. This seems to break u-boot proper and doesn't seem like the correct behavior. Brian Moyer (1): arm: Add SPL build check to SPL early bss clear arch/arm/lib/crt0.S | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH] find dtb in android boot image with header version 2 during bootm

2020-07-20 Thread chenshuo
This patch is about bootm process, android boot image and device tree. Android 10 updates the boot image header to version 2, which includes a section to store the device tree blob (DTB) image. include/android_image.h has updated the struct andr_img_hdr, but not used in bootm process. This patch

Re: [PATCH v2] mkimage: Fix error message if write less data then expected

2020-07-20 Thread Mylene Josserand
Hello, On 7/17/20 10:58 PM, Tom Rini wrote: On Wed, Jul 08, 2020 at 11:52:50AM +0200, Mylène Josserand wrote: Add a new error message in case the size of data written are shorter than the one expected. Currently, it will lead to the following error message: "mkimage: Write error on uImage: S

Re: [PATCH v2 1/1] Dockerfile: provide kernel for libguestfs-tools

2020-07-20 Thread Tom Rini
On Mon, Jul 20, 2020 at 08:26:14AM +0200, Heinrich Schuchardt wrote: > On 7/15/20 12:10 AM, Tom Rini wrote: > > On Wed, Jul 15, 2020 at 12:00:25AM +0200, Heinrich Schuchardt wrote: > >> Am 14. Juli 2020 23:28:21 MESZ schrieb Tom Rini : > >>> On Tue, Jul 14, 2020 at 08:18:56AM +0200, Heinrich Schuch

Re: [PATCH 07/10] compiler*.h: sync include/linux/compiler*.h with Linux 5.7-rc5

2020-07-20 Thread Tom Rini
On Mon, Jul 20, 2020 at 01:33:30PM +0530, Jagan Teki wrote: > On Thu, May 14, 2020 at 6:03 PM Tom Rini wrote: > > > > Copy these from Linux v5.7-rc5 tag. > > > > This brings in some handy new attributes and is otherwise important to > > keep in sync. > > > > We drop the reference to smp_read_barri

[PATCH v2 0/5] Add support for the SquashFS filesystem

2020-07-20 Thread Joao Marcos Costa
Hello! This series adds support for the SquashFS filesystem. For now, zlib is the only supported compression type. This is my first contribution to U-Boot as well as to a major Open Source project. Changes in v2: - Replace sqfs_ls() by U-Boot's fs_ls_generic() - Add info. to MAINT

[PATCH v2 2/5] fs/squashfs: add filesystem commands

2020-07-20 Thread Joao Marcos Costa
Add 'ls' and 'load' commands. Signed-off-by: Joao Marcos Costa --- Changes in v2: - Add info. to MAINTAINERS - Add 'static' keyword to do_sqfs_*(). These functions' prototypes are no longer needed in include/fs.h. - Change commit message. MAINTAINERS | 1 + cmd/

[PATCH v2 5/5] fs/fs.c: add symbolic link case to fs_ls_generic()

2020-07-20 Thread Joao Marcos Costa
Adds an 'else if' statement inside the loop to check for symbolic links. Signed-off-by: Joao Marcos Costa --- Changes in v2: - Changed commit title and message, which were wrong and/or misleading in v1. fs/fs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/fs.c b/fs/f

[PATCH v2 4/5] fs/squashfs: add support for zlib decompression

2020-07-20 Thread Joao Marcos Costa
Add call to zlib's 'uncompress' function. Add function to display the right error message depending on the decompression's return value. Signed-off-by: Joao Marcos Costa --- Changes in v2: - Changed commit title and message, which were wrong and/or misleading in v1. fs/squashfs/s

[PATCH v2 3/5] include/u-boot, lib/zlib: add sources for zlib decompression

2020-07-20 Thread Joao Marcos Costa
Add zlib (v1.2.11) uncompr() function to U-Boot. SquashFS depends on this function to decompress data from a raw disk image. The actual support for zlib into SquashFS sources will be added in a follow-up commit. Signed-off-by: Joao Marcos Costa --- Changes in v2: - Changed commit title an

[PATCH v2 1/5] fs/squashfs: new filesystem

2020-07-20 Thread Joao Marcos Costa
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 --- Changes in v2: - Add info. to MAINTAINERS - Replace sqfs_ls() by U-Boot's fs_ls_generic() - Improv

Re: [PATCH v4 1/2] arm: move CONFIG_PREBOOT="usb start" to KConfig

2020-07-20 Thread Tom Rini
On Sun, Jul 19, 2020 at 03:56:31PM +0200, Jonas Smedegaard wrote: > This commit moves CONFIG_PREBOOT="usb start" to common/KConfig > for all boards also declaring USB_KEYBOARD. > > Besides simplifying defconfig files, this also enables support for > board-specific CONFIG_PREBOOT for sunxi boards:

[PATCH v3 06/17] board_f: Introduce setup_bdinfo initcall

2020-07-20 Thread Ovidiu Panait
Introduce setup_bdinfo initcall as a generic routine to populate bdinfo fields. Signed-off-by: Ovidiu Panait --- common/board_f.c | 6 ++ include/init.h | 10 ++ 2 files changed, 16 insertions(+) diff --git a/common/board_f.c b/common/board_f.c index 88ff0424a7..72446f6da5 10064

[PATCH v3 05/17] cmd: bdinfo: Move sram info prints to generic code

2020-07-20 Thread Ovidiu Panait
bi_sramstart and bi_sramsize are generic members of the bd_info structure, so move the m68k/powerpc-specific prints to generic code. Also, print them only if SRAM support is enabled via CONFIG_SYS_HAS_SRAM. Signed-off-by: Ovidiu Panait --- arch/m68k/lib/bdinfo.c| 4 arch/powerpc/lib/bd

[PATCH v3 01/17] Kconfig: Introduce CONFIG_SYS_HAS_SRAM

2020-07-20 Thread Ovidiu Panait
In order to be able to replace "#ifdef CONFIG_SYS_SRAM_BASE" sequences with the IS_ENABLED() equivalent, introduce a new boolean Kconfig option that signals whether the platform has SRAM support. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- Kconfig | 11 +++ 1 file changed

[PATCH v3 07/17] board_f: Introduce arch_setup_bdinfo initcall

2020-07-20 Thread Ovidiu Panait
Certain architectures (ppc, mips, sh, m68k) use setup board_part1 and setup_board_part2 calls during pre-relocation init to populate gd->bd boardinfo fields. This makes the generic init sequence cluttered with arch-specific ifdefs. In order to clean these arch-specific sequences from generic init,

[PATCH v3 08/17] board_f: Introduce board_setup_bdinfo_mem initcall

2020-07-20 Thread Ovidiu Panait
In most cases (arc, ppc, mips, sh, m68k) gd->bd->bi_memsize and gd->bd->bi_memstart are populated in a similar fashion: bd->bi_memstart = CONFIG_SYS_SDRAM_BASE; bd->bi_memsize = gd->ram_size; However, there is a special case in board/cadence/xtfpga/xtfpga.c that populates those fields in

[PATCH v3 02/17] Kconfig: Convert CONFIG_SYS_SRAM_BASE to Kconfig

2020-07-20 Thread Ovidiu Panait
This converts ad-hoc CONFIG_SYS_SRAM_BASE to Kconfig. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- Kconfig | 5 + include/configs/pic32mzdask.h | 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Kcon

[PATCH v3 09/17] board_f: Move sram bdinfo assignments to generic code

2020-07-20 Thread Ovidiu Panait
Move sram related bdinfo from arch-specific setup_board_part1 to generic code in setup_bdinfo. Also use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of "#ifdef CONFIG_SYS_SRAM_BASE". Signed-off-by: Ovidiu Panait --- common/board_f.c | 12 +++- 1 file changed, 7 insertions(+), 5 deleti

[PATCH v3 13/17] dm: blk: Use IS_ENABLED() instead of #ifdefs in blk_post_probe

2020-07-20 Thread Ovidiu Panait
Use IS_ENABLED() instead of #ifdef in blk_post_probe function. No functional change intended. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- drivers/block/blk-uclass.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/block/blk-uclass.c b/drivers/

[PATCH v3 04/17] Kconfig: Remove CONFIG_SYS_SRAM_START

2020-07-20 Thread Ovidiu Panait
Remove ad-hoc CONFIG_SYS_SRAM_START and use CONFIG_SYS_SRAM_BASE instead. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- Kconfig | 2 ++ include/configs/devkit8000.h | 3 --- include/configs/tricorder.h | 3 --- scripts/config_whitelist.txt | 1 - 4 files chang

[PATCH v3 12/17] board_f: Remove setup_board_part1

2020-07-20 Thread Ovidiu Panait
Now that all arch specific code was converted to setup_bdinfo, we can remove setup_board_part1. Signed-off-by: Ovidiu Panait --- common/board_f.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 7eb65fc224..25e805faa1 100

[PATCH v3 03/17] Kconfig: Convert CONFIG_SYS_SRAM_SIZE to Kconfig

2020-07-20 Thread Ovidiu Panait
This converts ad-hoc CONFIG_SYS_SRAM_SIZE to Kconfig. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- Kconfig | 7 +++ include/configs/devkit8000.h | 1 - include/configs/pic32mzdask.h | 2 -- include/configs/tricorder.h | 1 - scripts/config_whitelist.tx

[PATCH v3 10/17] board_f: m68k: Factor out m68k-specific bdinfo setup

2020-07-20 Thread Ovidiu Panait
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 --- arch/m68k/lib/bdinfo.c | 21 + common/board_f.c | 19 --- 2 files changed

[PATCH v3 17/17] common/board_r: Move blkcache_init call earlier in the boot sequence

2020-07-20 Thread Ovidiu Panait
blkcache_init manually relocates blkcache list pointers when CONFIG_NEEDS_MANUAL_RELOC is enabled. However, it is called very late in the boot sequence, which could be a problem if previous boot calls execute blkcache operations with the non-relocated pointers. For example, mmc is initialized earli

[PATCH v3 11/17] board_f: ppc: Factor out ppc-specific bdinfo setup

2020-07-20 Thread Ovidiu Panait
Factor out ppc-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/powerpc/lib/bdinfo.c. Signed-off-by: Ovidiu Panait --- arch/powerpc/lib/bdinfo.c | 25 + common/board_f.c | 36 ++-- 2 files changed, 27

[PATCH v3 15/17] common/board_r: Remove initr_serial wrapper

2020-07-20 Thread Ovidiu Panait
Remove the initr_serial->serial_initialize indirection and call serial_initialize directly. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- common/board_r.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index 67dc25c7d2

[PATCH v3 14/17] drivers: serial: Make serial_initialize return int

2020-07-20 Thread Ovidiu Panait
serial_initialize is called only during the common init sequence, after relocation (in common/board_r.c). Because it has a void return value, it has to wrapped in initr_serial. In order to be able to get rid of this indirection, make serial_initialize return int. Remove extern from prototype in or

[PATCH v3 16/17] blkcache: Extend blkcache_init to cover CONFIG_NEEDS_MANUAL_RELOC

2020-07-20 Thread Ovidiu Panait
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. Acked-by: Angelo Dureghello Tested-by: Angelo Dureghello Reviewed-

RE: [PATCH] configs: ls1046aqds: Configure QSPI related configs

2020-07-20 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Kuldeep Singh >Sent: Tuesday, June 23, 2020 3:07 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Kuldeep Singh > >Subject: [PATCH] configs: ls1046aqds: Configure QSPI related configs > >LS1046A-QDS has "s25fl128s" flash of size with 16M with

RE: [PATCH] configs: ls1043aqds: Configure QSPI related configs

2020-07-20 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Kuldeep Singh >Sent: Thursday, June 11, 2020 12:13 PM >To: u-boot@lists.denx.de >Cc: Priyanka Jain ; Kuldeep Singh > >Subject: [PATCH] configs: ls1043aqds: Configure QSPI related configs > >LS1043A-QDS has "s25fl128s" flash of size 16M with 64

Re: [PATCH v2 8/8] test: dm: add a test for class button

2020-07-20 Thread Philippe REYNES
Hi Simon, > Hi Philippe, > > On Fri, 17 Jul 2020 at 06:22, Philippe Reynes > wrote: >> >> Add a test to confirm that we can read button state >> using the button-gpio driver. >> >> Signed-off-by: Philippe Reynes >> --- >> Changelog: >> v2: >> - new commit in the serie >> >> test/dm/Makefile

[PATCH 1/2] arm64: dts: rockchip: Add ROCKPi 4A/4B support

2020-07-20 Thread Jagan Teki
Rock PI 4 has 3 variants of hardware platforms called RockPI 4A, 4B, and 4C. - Rock PI 4A has no Wif/BT. - Rock PI 4B has AP6256 Wifi/BT, PoE. - Rock PI 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enable GPIO pin change compared to 4B, 4C So move common nodes, properties into dtsi file and inc

[PATCH 2/2] arm64: dts: rockchip: Add Radxa ROCK Pi 4C support

2020-07-20 Thread Jagan Teki
Rock PI 4C has AP6256 Wifi/BT, PoE, miniDP, USB Host enabled GPIO pin change compared to 4B, 4C. So, add or enable difference nodes/properties in 4C dts by including common dtsi. Signed-off-by: Jagan Teki --- Note: Linux dts changes on mailing-list https://lkml.org/lkml/2020/7/20/445 arch/arm/

Re: Please pull u-boot-x86

2020-07-20 Thread Tom Rini
On Mon, Jul 20, 2020 at 11:24:41AM +0800, Bin Meng wrote: > Hi Tom, > > This PR includes the following changes for v2020.10 release: > > - dm: core: Don't show an ACPI warning if there is no ordering > - x86: Enhance MTRR functionality to support multiple CPUs > > Azure results: PASS > https://

Re: [PATCH v6 00/21] mtd: spi-nor-core: add xSPI Octal DTR support

2020-07-20 Thread Jagan Teki
Hi Vignesh, On Mon, Jul 13, 2020 at 1:45 PM Vignesh Raghavendra wrote: > > > > On 09/07/20 1:43 pm, Jagan Teki wrote: > > On Tue, Jul 7, 2020 at 7:00 PM Vignesh Raghavendra wrote: > >> > >> Hi Jagan, > >> > >> On 15/06/20 9:21 pm, Pratyush Yadav wrote: > >>> On 05/06/20 06:14PM, Pratyush Yadav w

Re: [PATCH v9 2/2] board: presidio-asic: Add SPI NOR support

2020-07-20 Thread Jagan Teki
On Tue, Jun 2, 2020 at 1:56 AM Alex Nemirovsky wrote: > > Add SPI NOR support for Cortina Access > Presidio Engineering Board > > Signed-off-by: Alex Nemirovsky > CC: Jagan Teki > CC: Vignesh R > CC: Tom Rini > > --- > > Changes in v9: None > Changes in v8: None > Changes in v7: None > Changes

Re: [PATCH 0/6] Add new series Micron SPI NAND devices

2020-07-20 Thread Jagan Teki
On Wed, Jul 8, 2020 at 1:37 AM wrote: > > From: Shivamurthy Shastri > > This patchset is for the new series of Micron SPI NAND devices, and the > following links are their datasheet. > > These devices are already supported in Linux Kernel. > > M78A: > [1] > https://www.micron.com/~/media/documen

Re: [PATCH] Update Winbond SPI NOR Flash ID table

2020-07-20 Thread Jagan Teki
On Wed, Jul 8, 2020 at 3:17 PM stl...@winbond.com wrote: > > From f76b538a6a8081f9e21012a0de665a263cc6fa16 Mon Sep 17 00:00:00 2001 > From: Steam Lin > Date: Wed, 8 Jul 2020 16:51:41 +0800 > Subject: [PATCH] Update Winbond device ID in ID table > > Update Winbond SPI NOR Flash id table for uboot

Pull request: u-boot-spi/master

2020-07-20 Thread Jagan Teki
Hi Tom, PR for spinand changes. Summary: - add new series Micron SPI NAND devices (Shivamurthy) The following changes since commit 7303ba10a4a39852b9ba356fae5656b43122eec6: Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 (2020-07-20 09:25:32 -0400) are available in the Git reposit

Re: [PATCH v2 1/2] driver: spi: add brcm iproc qspi support.

2020-07-20 Thread Jagan Teki
On Sun, May 17, 2020 at 12:54 PM Rayagonda Kokatanur wrote: > > Add brcm iproc qspi support. > > Signed-off-by: Rayagonda Kokatanur > --- > Changes from v1: > -Address review comments from Jagan Teki, > Remove flash opcode from driver and use include/linux/mtd/spi-nor.h, > Remove CONFIG_BCM_

Re: [RESEND PATCH] usb: max3420: add the gadget driver

2020-07-20 Thread Jassi Brar
On Thu, Jun 25, 2020 at 12:22 PM Jassi Brar wrote: > > On Wed, Jun 24, 2020 at 4:24 AM Marek Vasut wrote: > > > > On 6/24/20 6:53 AM, Jassi Brar wrote: > > > Hi Marek, > > > > Hi, > > > > > On Mon, Jun 15, 2020 at 6:49 PM Marek Vasut wrote: > > > > > +#define MAX3420_REG_MODE 27 > > >

[PATCH] dtoc: add coverage test for unicode error

2020-07-20 Thread Walter Lozano
Add an additional test to dtoc in order improve the coverage, specifically to take into account the case of unicode error when scanning drivers. Signed-off-by: Walter Lozano --- tools/dtoc/dtb_platdata.py | 14 +++--- tools/dtoc/test_dtoc.py| 18 ++ 2 files changed,

[PATCH 02/16] arm: dts: rockchip: Sync rk3288 dtsi from linux

2020-07-20 Thread Jagan Teki
From: Suniel Mahesh This sync has changes required to use HDMI CEC pin in U-Boot. Sync dts from linux v5.8-rc5 commit: "ARM: dts: rockchip: define the two possible rk3288 CEC pins" (sha1: 838980dd04e994bf81cf104fa01ae60802146b39) Signed-off-by: Suniel Mahesh Signed-off-by: Jaga

[PATCH 01/16] ARM: dts: rockchip: Sync ROCKPi N8/N10 dts(i) from Linux

2020-07-20 Thread Jagan Teki
Sync ROCKPi N8/N10 dts(i) changes from Linux. commit ("ARM: dts: rockchip: Add Radxa Rock Pi N8 initial support") Signed-off-by: Suniel Mahesh Signed-off-by: Jagan Teki --- arch/arm/dts/rk3288-rock-pi-n8.dts| 2 +- arch/arm/dts/rk3288-vmarc-som.dtsi| 80 ++

[PATCH 04/16] ARM: dts: rockchip: Add USB for RockPI N8/N10

2020-07-20 Thread Jagan Teki
Radxa dalang carrier board has 2x USB 2.0 and 1x USB 3.0 ports. This patch adds support to enable all these USB ports for N10 and N8 combinations SBCs. Note that the USB 3.0 port on RockPI N8 combination works as USB 2.0 OTG since it is driven from RK3288. Signed-off-by: Jagan Teki --- arch/ar

[PATCH 00/16] board: Add new features for ROCKPi N8/N10

2020-07-20 Thread Jagan Teki
Add new features like USB, HDMI, PCIe on ROCKPi N8/N10 boards. All dts patches are Synced from linux-next and mailing list. Any inputs? Jagan. Jagan Teki (8): ARM: dts: rockchip: Sync ROCKPi N8/N10 dts(i) from Linux ARM: dts: rockchip: Add usb host0 ohci node for rk3288 ARM: dts: rockchip:

[PATCH 03/16] ARM: dts: rockchip: Add usb host0 ohci node for rk3288

2020-07-20 Thread Jagan Teki
rk3288 and rk3288w have a usb host0 ohci controller. Although rk3288 ohci doesn't actually work on hardware, but rk3288w ohci can work well. So add usb host0 ohci node in rk3288 dtsi and the quirk in ohci platform driver will disable ohci on rk3288. Signed-off-by: Jagan Teki --- arch/arm/dts/r

[PATCH 08/16] configs: Enable HDMI output

2020-07-20 Thread Jagan Teki
From: Suniel Mahesh Enable config options to get HDMI output on RockPI-N10 target which hosts a RK3399Pro-VMARC-SOM. Signed-off-by: Suniel Mahesh Signed-off-by: Jagan Teki --- configs/rock-pi-n10-rk3399pro_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/rock-pi-n10-

[PATCH 07/16] configs: Enable USB host on Rock-PI-N10

2020-07-20 Thread Jagan Teki
From: Suniel Mahesh Enable USB 3.0 and 2.0 and related configs for the Rock-PI-N10 target, which hosts RK3399Pro-VMARC-SOM. Log: Bus usb@fe38: USB EHCI 1.00 Bus usb@fe3c: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10

[PATCH 09/16] configs: Enable USB Gadget for rock-pi-n10

2020-07-20 Thread Jagan Teki
From: Suniel Mahesh Enable fastboot and USB gadget related config options for rock-pi-n10 target which hosts RK3399Pro-VMARC-SOM . Note: Connect the Host USB cable (Type A) to rock-pi-n10 USB 3.0 port on carrier board for fastboot. Signed-off-by: Suniel Mahesh Signed-off-by: Jagan Teki --- c

[PATCH 05/16] arm: dts: rockchip: Add HDMI out for RockPI N8/N10

2020-07-20 Thread Jagan Teki
This patch adds support to enable HDMI out for N10 and N8 combinations SBCs. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3288-vmarc-som.dtsi| 10 ++ arch/arm/dts/rk3399pro-vmarc-som.dtsi | 12 +++ .../dts/rockchip-radxa-dalang-carrier.dtsi| 20 +++

[PATCH 06/16] arm64: dts: rockchip: Add PCIe for RockPI N10

2020-07-20 Thread Jagan Teki
This patch adds support to enable PCIe for RockPI N10. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3399pro-vmarc-som.dtsi | 40 +-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3399pro-vmarc-som.dtsi b/arch/arm/dts/rk3399pro-vmarc-som.dt

  1   2   >