Re: [EXT] Re: [PATCH] arm: mvebu: Espressobin: Enable CONFIG_MVNETA

2020-08-18 Thread Kostya Porotchkin
Reviewed by: Konstantin Porotchkin Regards Kosta From: Stefan Roese Sent: Tuesday, August 18, 2020 08:26 To: Pali Rohár; Kostya Porotchkin Cc: u-boot@lists.denx.de Subject: [EXT] Re: [PATCH] arm: mvebu: Espressobin: Enable CONFIG_MVNETA External Email

[PATCH 2/2] ram: sifive: Fix compiler warnings for 32-bit

2020-08-18 Thread Bin Meng
From: Bin Meng priv->info.size is of type 'size_t' but the length modifier is l. Fix this by casting priv->info.size. Note 'z' cannot be used as the modifier as SPL does not support that. Signed-off-by: Bin Meng --- drivers/ram/sifive/fu540_ddr.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 1/2] riscv: fu540: Use correct API to get L2 cache controller base address

2020-08-18 Thread Bin Meng
From: Bin Meng At present fdtdec_get_addr() is used to get L2 cache controller base address. This only works for a fixed #address-cells and #size-cells. Change to use fdtdec_get_addr_size_auto_parent() instead. Signed-off-by: Bin Meng --- arch/riscv/cpu/fu540/cache.c | 3 ++- 1 file changed,

Re: [PATCH] xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers

2020-08-18 Thread Heiko Schocher
Hello Michal, Am 13.08.2020 um 14:35 schrieb Michal Simek: Zynq/ZynqMP/Versal IPs should be possible to called also from Microblaze in PL and vice versa. That's why change dependencies and do not limit enabling just for some platforms. Signed-off-by: Michal Simek --- drivers/gpio/Kconfig |

Re: [PATCH 1/1] clk: kendryte/pll.h: do not redefine nop()

2020-08-18 Thread Bin Meng
On Tue, Jul 28, 2020 at 11:52 PM Heinrich Schuchardt wrote: > > The kendryte PLL code uses nop as barrier. The macro is not defined for > the sandbox on x86 but is defined on RISC-V. > > Signed-off-by: Heinrich Schuchardt > --- > include/kendryte/pll.h | 5 + > 1 file changed, 5

Re: [PATCH] riscv: Remove unused define in maix header

2020-08-18 Thread Bin Meng
On Thu, Aug 6, 2020 at 12:43 AM Sean Anderson wrote: > > This define was left over from a previous revision, and was never used. > > Signed-off-by: Sean Anderson > --- > > include/configs/sipeed-maix.h | 3 --- > 1 file changed, 3 deletions(-) > Reviewed-by: Bin Meng

Re: [PATCH 3/4] clk: add clock driver for SCMI agents

2020-08-18 Thread Etienne Carriere
Hello Simon and all, On Sun, 26 Jul 2020 at 16:54, Simon Glass wrote: > > Hi Etienne, > > On Fri, 17 Jul 2020 at 09:43, Etienne Carriere > wrote: > > > > This change introduces a clock driver for SCMI agent devices. When > > SCMI agent and SCMI clock drivers are enabled, SCMI agent binds a > >

Re: [PATCH v2 7/7] riscv: Update SiFive device tree for new CLINT driver

2020-08-18 Thread Bin Meng
+Anup Patel On Wed, Jul 29, 2020 at 5:57 PM Sean Anderson wrote: > > We may need to add a clock-frequency binding like for the K210. > > Signed-off-by: Sean Anderson > --- > This patch builds but has NOT been tested. > > Changes in v2: > - Fix SiFive CLINT not getting tick-rate from rtcclk > >

Re: [PATCH] include: phy: fix NULL pointer check in phy_write()

2020-08-18 Thread Michal Simek
On 18. 08. 20 2:31, Thirupathaiah Annapureddy wrote: > phy_write() uses bus->write() instead of bus->read(). This means NULL > pointer pre-check needs to happen on bus->write instead of bus->read. > > Signed-off-by: Thirupathaiah Annapureddy > --- > include/phy.h | 2 +- > 1 file changed, 1

Re: [PATCH 1/1] cmd: provide command sbi

2020-08-18 Thread Bin Meng
On Sun, Aug 16, 2020 at 9:05 PM Heinrich Schuchardt wrote: > > Provide a command to display information about the SBI implementation. > > The output might look like: > > => sbi > SBI 0.2 > OpenSBI > Extensions: > sbi_set_timer > sbi_console_putchar > sbi_console_getchar > sbi_clear_ipi >

Re: [PATCH 1/1] cmd: provide command sbi

2020-08-18 Thread Bin Meng
On Tue, Aug 18, 2020 at 5:16 PM Heinrich Schuchardt wrote: > > On 18.08.20 10:57, Bin Meng wrote: > > On Sun, Aug 16, 2020 at 9:05 PM Heinrich Schuchardt > > wrote: > >> > >> Provide a command to display information about the SBI implementation. > >> > >> The output might look like: > >> > >>

Re: [PATCH] arm: mvebu: Espressobin: Disallow forwarding packets between wan and lan ports

2020-08-18 Thread Pali Rohár
CCing Konstantin, you may have be interested in my following Espressobin patch. BTW, ./scripts/get_maintainer.pl does not shows you as maintainer of board/Marvell/mvebu_armada-37xx/board.c file, even it contains Espressobin specific code. On Tuesday 18 August 2020 07:26:36 Stefan Roese wrote: >

[PATCH v2 0/2] arm: socfpga: enable CONFIG_BOOTCOMMAND for cyclone5

2020-08-18 Thread Ooi, Joyce
From: Joyce Ooi This patch series enables CONFIG_BOOTCOMMAND in cyclone5 defconfig to execute Intel FPGA u-boot script if it's available and enable FPGA bridge when FPGA is in user mode. v2: add u-boot script and add checking if FPGA is in user mode Joyce Ooi (2): arm: socfpga: checks if

[PATCH v2 1/2] arm: socfpga: checks if FPGA is in user mode before enabling FPGA bridge

2020-08-18 Thread Ooi, Joyce
From: Joyce Ooi This patch adds a checking to ensure that FPGA is in user mode before enabling FPGA bridge to prevent unexpected behavior or error. Signed-off-by: Joyce Ooi --- v2: this patch is added in patch version 2 --- arch/arm/mach-socfpga/misc_gen5.c | 43

[PATCH v2 2/2] configs: socfpga: add CONFIG_BOOTCOMMAND for cyclone5

2020-08-18 Thread Ooi, Joyce
From: Joyce Ooi Add CONFIG_BOOTCOMMAND in cyclone5 defconfig to run fatscript and enable FPGA bridge when FPGA is in user mode. The fatscript executes the Intel FPGA u-boot script if it's available so that customers can add any customization (such as configuring registers) without modifying the

Re: [PATCH 1/1] riscv: don't jump to 0x0 in handle_ipi()

2020-08-18 Thread Heinrich Schuchardt
On 11.08.20 12:32, Sean Anderson wrote: > On 8/11/20 3:50 AM, Heinrich Schuchardt wrote: >> On 11.08.20 08:20, Rick Chen wrote: >>> Hi Heinrich >>> From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] Sent: Tuesday, August 11, 2020 11:57 AM To: Rick Jian-Zhi Chen(陳建志) Cc: Sean

Re: [PATCH v2 1/1] configs: defconfig for Sipeed Maix in S-mode

2020-08-18 Thread Bin Meng
On Mon, Aug 17, 2020 at 6:35 PM Heinrich Schuchardt wrote: > > Provide a defconfig that can be used to build U-Boot for the Maix boards > running upon OpenSBI. > > Update the documentation. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > adjust MAINTAINERS > --- >

Re: [PATCH 1/1] cmd: provide command sbi

2020-08-18 Thread Heinrich Schuchardt
On 18.08.20 10:57, Bin Meng wrote: > On Sun, Aug 16, 2020 at 9:05 PM Heinrich Schuchardt > wrote: >> >> Provide a command to display information about the SBI implementation. >> >> The output might look like: >> >> => sbi >> SBI 0.2 >> OpenSBI >> Extensions: >> sbi_set_timer >>

Re: [PATCH 3/4] clk: add clock driver for SCMI agents

2020-08-18 Thread Sudeep Holla
On Tue, Aug 18, 2020 at 10:46:29AM +0200, Etienne Carriere wrote: > Hello Simon and all, > > On Sun, 26 Jul 2020 at 16:54, Simon Glass wrote: > > > > Hi Etienne, > > > > On Fri, 17 Jul 2020 at 09:43, Etienne Carriere > > wrote: > > > > > > This change introduces a clock driver for SCMI agent

Re: [PATCH 1/1] riscv: don't jump to 0x0 in handle_ipi()

2020-08-18 Thread Bin Meng
Hi Heinrich, On Tue, Aug 11, 2020 at 11:57 AM Heinrich Schuchardt wrote: > > At least on the Kendryte K210: > > gd->arch.available_harts= 0x0003 > gd->arch.ipi[0].addr= 0x > gd->arch.ipi[0].arg0= 0x > gd->arch.ipi[0].arg1= 0x >

Re: [PATCH v2 2/7] f_sdp: Add high speed endpoint descriptor

2020-08-18 Thread Lukasz Majewski
On Tue, 18 Aug 2020 18:16:44 +0800 Peng Fan wrote: > From: Ye Li > > Add HS endpoint descriptor for SDP. So that we can use high speed > endpoint, and the SDP device can send packet with 512 byte size. Do you use uuu for it? On which board do you perform tests? > > Signed-off-by: Ye Li >

Re: [PATCH v2 3/7] f_sdp: Fix wrong usb request size

2020-08-18 Thread Lukasz Majewski
On Tue, 18 Aug 2020 18:16:45 +0800 Peng Fan wrote: > From: Ye Li > > Because the buffer length of sdp usb request is 65, we have to > allocate 65 bytes not 64 bytes. Otherwise there is potential buffer > overflow. > > Signed-off-by: Ye Li > Signed-off-by: Peng Fan > --- >

Re: [PATCH 1/1] riscv: don't jump to 0x0 in handle_ipi()

2020-08-18 Thread Heinrich Schuchardt
On 18.08.20 11:14, Bin Meng wrote: > Hi Heinrich, > > On Tue, Aug 11, 2020 at 11:57 AM Heinrich Schuchardt > wrote: >> >> At least on the Kendryte K210: >> >> gd->arch.available_harts= 0x0003 >> gd->arch.ipi[0].addr= 0x >> gd->arch.ipi[0].arg0= 0x >>

RE: [PATCH v2 1/7] sdp: call board_usb_init at spl_sdp_load_image

2020-08-18 Thread Peng Fan
> Subject: Re: [PATCH v2 1/7] sdp: call board_usb_init at spl_sdp_load_image > > Hi Peng, > > > From: Frank Li > > > > Need initialize UDC before run sdp download > > > > Signed-off-by: Frank Li > > Signed-off-by: Peng Fan > > --- > > common/spl/spl_sdp.c | 2 ++ > > 1 file changed, 2

[PATCH 3/4] ARM: imx: Add support for reading out the primary/secondary bmode

2020-08-18 Thread sbabic
> Add new 'getprisec' subcommand to 'bmode' command, which sets the return > value of the 'bmode' command to either 0 if the system booted from primary > copy or to 1 if the system booted from secondary copy. This can be used > e.g. in 'test' command to determine which copy of the system is

[PATCH v2 4/4] test/py: Add tests for LZO and ZSTD

2020-08-18 Thread Joao Marcos Costa
Improve SquashFS tests architecture. Add 'Compression' class. LZO algorithm may crash if the file is fragmented, so the fragments are disabled when testing LZO. Signed-off-by: Joao Marcos Costa --- Changes in v2: - This patch was not present in the previous version.

[PATCH v2 5/7] spl: add g_dnl_get_board_bcd_device_number

2020-08-18 Thread Peng Fan
Add g_dnl_get_board_bcd_device_number, the new BCD value is used by uuu to distinguish if the SPL supports the SDPV. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index

Re: [PATCH v4 1/9] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

2020-08-18 Thread Wolfgang Denk
Dear Stefan Roese, In message <20200813054800.469284-2...@denx.de> you wrote: > Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") & > commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"), > CONFIG_NR_DRAM_BANKS is always defined with a value (4 is default). Has there

Re: [RFC PATCH] tools: env: Add an option to have an empty default environment

2020-08-18 Thread Stefano Babic
Hi Chris, On 13.08.20 03:37, Chris Packham wrote: > When building envtools via tools-only_defconfig the builtin defaults > are based on options in the defconfig. For example: > > bootcmd=bootp; setenv bootargs root=/dev/nfs > nfsroot=${serverip}:${rootpath} >

Re: [PATCH v4 1/9] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

2020-08-18 Thread Tom Rini
On Tue, Aug 18, 2020 at 12:31:32PM +0200, Wolfgang Denk wrote: > Dear Stefan Roese, > > In message <20200813054800.469284-2...@denx.de> you wrote: > > Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") & > > commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"), > >

[PATCH v2 2/7] f_sdp: Add high speed endpoint descriptor

2020-08-18 Thread Peng Fan
From: Ye Li Add HS endpoint descriptor for SDP. So that we can use high speed endpoint, and the SDP device can send packet with 512 byte size. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/gadget/f_sdp.c | 30 -- 1 file changed, 28 insertions(+), 2

[PATCH v2 7/7] f_sdp: Change bInterval of interrupt endpoint to 3

2020-08-18 Thread Peng Fan
From: Sherry Sun Since the USB HID limits the maximum bandwidth(3072) for interrupt endpoint transfers, when the bInterval set to 1, we can only support 3 boards to run sdp at the same time. In order to support more boards, change the bInterval of interrupt endpoint to 3, which will not affect

[PATCH v2 6/7] f_sdp: Add EP1_OUT as default data receive pipe in sdp

2020-08-18 Thread Peng Fan
From: Sherry Sun EP0 has been used to transfer file data in sdp before, but the max packetsize of ep0 is 64 bytes. So in order to improve the file transfer speed, here add the EP1_OUT interrupt endpoint which max packetsize is set to 1024 byte. After testing, it turns out that using ep1out is

[PATCH v2 3/7] f_sdp: Fix wrong usb request size

2020-08-18 Thread Peng Fan
From: Ye Li Because the buffer length of sdp usb request is 65, we have to allocate 65 bytes not 64 bytes. Otherwise there is potential buffer overflow. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/gadget/f_sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 4/7] f_sdp: Support searching and loading FIT or container image

2020-08-18 Thread Peng Fan
Add support to f_sdp to search and load iMX8 container image or iMX8M FIT image by new UUU command SDPV. When using the SDPV, the uuu will continue to send out data after first level boot loader used by ROM. This means uuu won't skip to the offset of the second boot loader, and the padding data

[PATCH v3 1/4] pci: layerscape: move per-pci device fdt fixup in a function

2020-08-18 Thread laurentiu . tudor
From: Laurentiu Tudor Move the pci device related fdt fixup in a function in order to re-use it in a following patch. While at it, improve the error handling. Signed-off-by: Laurentiu Tudor --- drivers/pci/pcie_layerscape_fixup.c | 60 - 1 file changed, 34

[PATCH v3 3/4] pci: add a few ARI and SRIOV related defines

2020-08-18 Thread laurentiu . tudor
From: Laurentiu Tudor Add a few defines related to ARI and SRIOV configuration. Signed-off-by: Laurentiu Tudor --- include/pci.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/pci.h b/include/pci.h index 2089db9f16..88a09505a5 100644 --- a/include/pci.h +++

Re: [PATCH v4 4/9] global: Move from bi_memstart/memsize -> gd->ram_base/ram_size

2020-08-18 Thread Wolfgang Denk
Dear Stefan, In message <20200813054800.469284-5...@denx.de> you wrote: > With the removal of bi_memstart & bi_memsize, this patch now moves the > references to the better suiting gd->ram_base/ram_size variables. This sounds as if bi_memstart & bi_memsize have already been removed, in whih case

Re: [PATCH v2 4/7] f_sdp: Support searching and loading FIT or container image

2020-08-18 Thread Lukasz Majewski
Hi Peng, > > Subject: Re: [PATCH v2 4/7] f_sdp: Support searching and loading > > FIT or container image > > > > Hi Peng, > > > > > Add support to f_sdp to search and load iMX8 container image or > > > iMX8M FIT image by new UUU command SDPV. > > > > > > When using the SDPV, the uuu will

[PATCH V2] net: smc911x: Automatically Update ethaddr with MAC

2020-08-18 Thread Adam Ford
The ethernet controller can read the MAC from EEPROM and display it, but if ethaddr is not set, the ethernet is still unavailable. This patch checks will automatically set the MAC address if it has not already been set. Signed-off-by: Adam Ford --- V2: Fix typo diff --git

Re: U-Boot stats

2020-08-18 Thread Wolfgang Denk
Dear Adam, In message you wrote: > > Any chance you can update the statistics for v2020.07? sorry for the delay, I was on vacation. Here we go: U-Boot 2020.07 Release Statistics (Changes since v2020.04) Processed 1918 csets from 203 developers 31 employers found A total of 122895 lines

Re: [PATCH v4 4/9] global: Move from bi_memstart/memsize -> gd->ram_base/ram_size

2020-08-18 Thread Stefan Roese
Hi Wolfgang, On 18.08.20 12:35, Wolfgang Denk wrote: In message <20200813054800.469284-5...@denx.de> you wrote: With the removal of bi_memstart & bi_memsize, this patch now moves the references to the better suiting gd->ram_base/ram_size variables. This sounds as if bi_memstart & bi_memsize

Re: [PATCH v4 1/9] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

2020-08-18 Thread Stefan Roese
Hi Wolfgang, (added Ramon to Cc) On 18.08.20 12:31, Wolfgang Denk wrote: In message <20200813054800.469284-2...@denx.de> you wrote: Since commit 86cf1c82850f ("configs: Migrate CONFIG_NR_DRAM_BANKS") & commit 999a772d9f24 ("Kconfig: Migrate CONFIG_NR_DRAM_BANKS"), CONFIG_NR_DRAM_BANKS is

RE: [PATCH v2 4/7] f_sdp: Support searching and loading FIT or container image

2020-08-18 Thread Peng Fan
> Subject: Re: [PATCH v2 4/7] f_sdp: Support searching and loading FIT or > container image > > Hi Peng, > > > Add support to f_sdp to search and load iMX8 container image or iMX8M > > FIT image by new UUU command SDPV. > > > > When using the SDPV, the uuu will continue to send out data after >

Re: [v2] arm: mx6: Make all i.MX6 SoCs user-selectable

2020-08-18 Thread Marcin Niestrój
Tom Rini writes: > We have a number of platforms that are a combination of a carrier board > and System-on-Module (SoM) that in turn allows for the board to have > different SoCs on it. In some cases, this is handled via board-specific > Kconfig options. In other cases we make use of >

[PATCH v2 0/4] fs/squashfs

2020-08-18 Thread Joao Marcos Costa
Hello, Following the SquashFS support, this series adds support for LZO and ZSTD algorithms. Changes in v2: - Change tests architecture. - Add tests for LZO and ZSTD. - Skip compression algorithms unsupported by the host's squashfs-tools version. - Add

[PATCH v3 2/4] pci: layerscape: move pci node search in a common function

2020-08-18 Thread laurentiu . tudor
From: Laurentiu Tudor Fix duplication of this code by placing it in a common function. Furthermore, the resulting function will be re-used in upcoming patches. Signed-off-by: Laurentiu Tudor --- drivers/pci/pcie_layerscape_fixup.c | 68 + 1 file changed, 30

[PATCH v3 0/4] Support for specifying extra IOMMU mappings for PCI

2020-08-18 Thread laurentiu . tudor
From: Laurentiu Tudor In the current implementation, u-boot creates iommu mappings only for PCI devices enumarated at boot time thus does not take into account more dynamic scenarios such as SR-IOV or PCI hot-plug. Add support for specifying extra IOMMU mappings for PCI controllers through a

Re: [PATCH v2 1/7] sdp: call board_usb_init at spl_sdp_load_image

2020-08-18 Thread Lukasz Majewski
Hi Peng, > From: Frank Li > > Need initialize UDC before run sdp download > > Signed-off-by: Frank Li > Signed-off-by: Peng Fan > --- > common/spl/spl_sdp.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c > index e7f7b68411..ae9c09883a

Re: [PATCH] arm: mvebu: Espressobin: Disallow forwarding packets between wan and lan ports

2020-08-18 Thread Stefan Roese
Hi Pali, On 18.08.20 09:33, Pali Rohár wrote: CCing Konstantin, you may have be interested in my following Espressobin patch. BTW, ./scripts/get_maintainer.pl does not shows you as maintainer of board/Marvell/mvebu_armada-37xx/board.c file, even it contains Espressobin specific code. On

Re: [PATCH] arm: mx6: Make all i.MX6 SoCs user-selectable

2020-08-18 Thread Tom Rini
On Tue, Aug 18, 2020 at 10:09:31AM +0200, Stefano Babic wrote: > On 13.08.20 03:16, Tom Rini wrote: > > On Thu, Aug 13, 2020 at 12:52:22AM +, Peng Fan wrote: > >> Hi Tom, > >> > >>> Subject: [PATCH] arm: mx6: Make all i.MX6 SoCs user-selectable > >>> > >> [] > >> > >>> + > >>> config

Re: [PATCH v4 1/9] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined

2020-08-18 Thread Wolfgang Denk
Dear Stefan, In message <8ddb672c-956c-68d2-ceb4-d77f96cdf...@denx.de> you wrote: > > > Especially the default value of 4 makes no sense to me - whiy is > > this not 1? > > I can't really tell. I can only assume, that it originates from this > patch: Yes, probably. I think the issue here

[PATCH v3 4/4] pci: layerscape: add a way of specifying additional iommu mappings

2020-08-18 Thread laurentiu . tudor
From: Laurentiu Tudor In the current implementation, u-boot creates iommu mappings only for PCI devices enumarated at boot time thus does not take into account more dynamic scenarios such as SR-IOV or PCI hot-plug. Add an u-boot env var and a device tree property (to be used for example in more

Re: [PATCH] arm: mx6: Make all i.MX6 SoCs user-selectable

2020-08-18 Thread Stefano Babic
On 13.08.20 03:16, Tom Rini wrote: > On Thu, Aug 13, 2020 at 12:52:22AM +, Peng Fan wrote: >> Hi Tom, >> >>> Subject: [PATCH] arm: mx6: Make all i.MX6 SoCs user-selectable >>> >> [] >> >>> + >>> config MX6UL_LITESOM >>> bool >>> select DM >>> select DM_THERMAL >>> - select

Re: [PATCH v2 5/7] spl: add g_dnl_get_board_bcd_device_number

2020-08-18 Thread Lukasz Majewski
On Tue, 18 Aug 2020 18:16:47 +0800 Peng Fan wrote: > Add g_dnl_get_board_bcd_device_number, the new BCD value is used by > uuu to distinguish if the SPL supports the SDPV. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/spl.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git

Re: [PATCH v2 4/7] f_sdp: Support searching and loading FIT or container image

2020-08-18 Thread Lukasz Majewski
Hi Peng, > Add support to f_sdp to search and load iMX8 container image or iMX8M > FIT image by new UUU command SDPV. > > When using the SDPV, the uuu will continue to send out data after > first level boot loader used by ROM. This means uuu won't skip to the > offset of the second boot loader,

[v2] arm: mx6: Make all i.MX6 SoCs user-selectable

2020-08-18 Thread Tom Rini
We have a number of platforms that are a combination of a carrier board and System-on-Module (SoM) that in turn allows for the board to have different SoCs on it. In some cases, this is handled via board-specific Kconfig options. In other cases we make use of CONFIG_SYS_EXTRA_OPTIONS. This

Re: [PATCH v2 7/7] riscv: Update SiFive device tree for new CLINT driver

2020-08-18 Thread Sean Anderson
On 8/18/20 5:22 AM, Bin Meng wrote: > +Anup Patel > > On Wed, Jul 29, 2020 at 5:57 PM Sean Anderson wrote: >> >> We may need to add a clock-frequency binding like for the K210. >> >> Signed-off-by: Sean Anderson >> --- >> This patch builds but has NOT been tested. >> >> Changes in v2: >> - Fix

Re: [RFC PATCH] tools: env: Add an option to have an empty default environment

2020-08-18 Thread Wolfgang Denk
Dear Chris Packham, In message <20200813013727.8186-1-judge.pack...@gmail.com> you wrote: > When building envtools via tools-only_defconfig the builtin defaults > are based on options in the defconfig. For example: > > bootcmd=bootp; setenv bootargs root=/dev/nfs >

[PATCH 4/4] ARM: imx: Add support for reading out the primary/secondary bmode to MX7

2020-08-18 Thread sbabic
> Implement the 'getprisec' subcommand of 'bmode' command for i.MX7 by > reading out the SRC GPR10 bit 30. This bit is either set by the BootROM > if it switched to the secondary copy due to primary copy being corrupted > OR it can be overridden by the user. > Signed-off-by: Marek Vasut > Cc:

[PATCH v2 3/3] pico-imx6ul: convert ethernet function to DM_ETH

2020-08-18 Thread sbabic
> From: Wig Cheng > - Remove pinmux definition from pico-imx6ul.c > - Enable NET_RANDOM_ETHADDR for temporary solution, because micrel_ksz8xxx > driver does not support DM_ETH yet, so cannot read MAC address directly. > Before enable DM_ETH: > Net: FEC [PRIME] > After enable DM_ETH: > Net:

[PATCH v2 2/3] configs: pico-imx6ul: convert DM_VIDEO

2020-08-18 Thread sbabic
> From: Wig Cheng > It's due to the warning messages issue after compiled: > = WARNING == > This board does not use CONFIG_DM_VIDEO Please update > the board to use CONFIG_DM_VIDEO before the v2019.07 release. > Failure to update by the deadline may

[PATCH v2 1/3] configs: pico-imx6ul: convert DM_USB

2020-08-18 Thread sbabic
> From: Wig Cheng > Here is the test commands: > => ums 0 mmc 0 > UMS: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x71 > Signed-off-by: Wig Cheng > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] tools/imximage: fix DCD Blocks message output order

2020-08-18 Thread sbabic
> The correct order is load address, offset, length. The order was > accidentally switched a while ago; make it match the HAB Blocks output and > what CST expects again. > Fixes: e97bdfa5da70 ("tools/imximage: share DCD information via Kconfig") > Signed-off-by: Matthias Schiffer Applied to

[PATCH 2/4] ARM: imx: Add support for switching primary/secondary boot mode to bmode

2020-08-18 Thread sbabic
> The i.MX6/i.MX7 is capable of booting a secondary "redundant" system > image in case the primary one is corrupted. The user can force this > boot mode as well by explicitly setting SRC GPR10 bit 30. This can be > potentially useful when upgrading the bootloader itself. Expose this >

[PATCH 1/4] ARM: imx: Add bmode support for iMX7

2020-08-18 Thread sbabic
> Add the basic differentiation between i.MX6 and i.MX7 into the bmode > command, the mechanism really works almost the same on both platforms. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: NXP i.MX U-Boot Team > Cc: Peng Fan > Cc: Stefano Babic Applied to u-boot-imx, master, thanks

[PATCH] ARM: imx: ddr: Add deskew register programming

2020-08-18 Thread sbabic
> Fill is code for programming the DDR_PHY_CMD_DESKEW_CONx registers, > which are optional, but can be used to fill in the byte lane delays. > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: NXP i.MX U-Boot Team > Cc: Peng Fan > Cc: Stefano Babic Applied to u-boot-imx, master, thanks !

[PATCH v2 2/4] fs/squashfs: add support for ZSTD decompression

2020-08-18 Thread Joao Marcos Costa
Add call to ZSTD's ZSTD_decompressDCtx(). In this use case, the caller can upper bound the decompressed size, which will be the SquashFS data block (or metadata block) size, so there is no need to use streaming API. Signed-off-by: Joao Marcos Costa --- Changes in v2: - No changes since

[PATCH v2 1/4] fs/squashfs: add support for LZO decompression

2020-08-18 Thread Joao Marcos Costa
Add call to lzo's lzo1x_decompress_safe() and rename source length parameter from 'lenp' to 'src_len'. U-Boot's LZO sources may still have some unsolved issues that could make the decompression crash when dealing with fragmented files, so those should be avoided. The "-no-fragments" option can be

[PATCH v2 3/4] fs/squashfs: Add init. and clean-up functions to decompression

2020-08-18 Thread Joao Marcos Costa
Add sqfs_decompressor_init() and sqfs_decompressor_cleanup(). These functions are called respectively in sqfs_probe() and sqfs_close(). For now, only ZSTD requires an initialization logic. Move squashfs_ctxt definition to sqfs_filesystem.h. This structure is passed to sqfs_decompressor_init() and

[PATCH v2 0/7] f_sdp: fix and update

2020-08-18 Thread Peng Fan
This is to upstream NXP downstream f_sdp fix/update. V2: Fix build break Frank Li (1): sdp: call board_usb_init at spl_sdp_load_image Peng Fan (2): f_sdp: Support searching and loading FIT or container image spl: add g_dnl_get_board_bcd_device_number Sherry Sun (2): f_sdp: Add EP1_OUT

[PATCH v2 1/7] sdp: call board_usb_init at spl_sdp_load_image

2020-08-18 Thread Peng Fan
From: Frank Li Need initialize UDC before run sdp download Signed-off-by: Frank Li Signed-off-by: Peng Fan --- common/spl/spl_sdp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index e7f7b68411..ae9c09883a 100644 --- a/common/spl/spl_sdp.c

Re: [PATCH 1/1] riscv: don't jump to 0x0 in handle_ipi()

2020-08-18 Thread Sean Anderson
On 8/18/20 5:00 AM, Heinrich Schuchardt wrote: > On 11.08.20 12:32, Sean Anderson wrote: >> On 8/11/20 3:50 AM, Heinrich Schuchardt wrote: >>> On 11.08.20 08:20, Rick Chen wrote: Hi Heinrich > From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] > Sent: Tuesday, August 11,

Re: [PATCH V2] dm: core: Add late driver remove option

2020-08-18 Thread Simon Glass
Hi Marek, +Stefan Roese who wrote the existing code. On Fri, 7 Aug 2020 at 15:40, Marek Vasut wrote: > > On 8/7/20 6:23 PM, Simon Glass wrote: > > [...] > > >> diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c > >> index efdb0f2905..07b241b6bb 100644 > >> ---

[RESEND][PATCH 1/3] usb_kbd: succeed even if no interrupt is pending

2020-08-18 Thread Jason Wessel
After the initial configuration some USB keyboard+mouse devices never return any kind of event on the interrupt line. In particular, the device identified by "Cypress Cypress USB Keyboard / PS2 Mouse as 3f98.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04B4:0101.0001/input/input0" never returns a data

[RESEND][PATCH 0/3] Raspberry pi improvements usb core

2020-08-18 Thread Jason Wessel
These patches are now in use by other developers, and I would like to get them into the upstream u-boot. This 3 patches were part of a 9 patch series posted in July prior to the merge window closure. -- Travis CI checks https://github.com/u-boot/u-boot/pull/35 -- Pull Request #35 Rpi master

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

2020-08-18 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

[RESEND][PATCH 2/3] common/usb.c: Work around keyboard reporting "USB device not accepting new address"

2020-08-18 Thread Jason Wessel
When resetting the rpi3 board sometimes it will display: USB device not accepting new address (error=0) After the message appears, the usb keyboard will not work. It seems that the configuration actually did succeed however. Checking the device status for a return code of zero and

Re: [PATCH v3 2/4] fs/squashfs: add support for ZSTD decompression

2020-08-18 Thread Thomas Petazzoni
Hello, On Tue, 18 Aug 2020 16:31:16 +0200 Joao Marcos Costa wrote: > +#if IS_ENABLED(CONFIG_ZSTD) > +static int sqfs_zstd_decompress(void *dest, unsigned long dest_len, > + void *source, u32 src_len) Pass the squashfs_context structure as argument to the

Re: [PATCH V2] dm: core: Add late driver remove option

2020-08-18 Thread Stefan Roese
Hi Simon, On 18.08.20 15:22, Simon Glass wrote: Hi Marek, +Stefan Roese who wrote the existing code. Hmmm, I was not Cc'ed. On Fri, 7 Aug 2020 at 15:40, Marek Vasut wrote: On 8/7/20 6:23 PM, Simon Glass wrote: [...] diff --git a/drivers/core/device-remove.c

Re: [PATCH V2] dm: core: Add late driver remove option

2020-08-18 Thread Simon Glass
Hi Stefan, On Tue, 18 Aug 2020 at 08:13, Stefan Roese wrote: > > Hi Simon, > > On 18.08.20 15:22, Simon Glass wrote: > > Hi Marek, > > > > +Stefan Roese who wrote the existing code. > > Hmmm, I was not Cc'ed. > > > On Fri, 7 Aug 2020 at 15:40, Marek Vasut wrote: > >> > >> On 8/7/20 6:23 PM,

Re: [PATCH v2 1/4] firmware: add new driver for SCMI firmwares

2020-08-18 Thread Etienne Carriere
Hello Sudeep, On Tue, 18 Aug 2020 at 17:44, Etienne Carriere wrote: > > This change introduces SCMI agent driver in U-Boot in the firmware > U-class. > (...) > --- a/drivers/firmware/Kconfig > +++ b/drivers/firmware/Kconfig > @@ -1,6 +1,26 @@ > config FIRMWARE > bool "Enable Firmware

Re: [RESEND][PATCH 1/3] usb_kbd: succeed even if no interrupt is pending

2020-08-18 Thread Marek Vasut
On 8/18/20 4:34 PM, Jason Wessel wrote: > After the initial configuration some USB keyboard+mouse devices never > return any kind of event on the interrupt line. In particular, the > device identified by "Cypress Cypress USB Keyboard / PS2 Mouse as >

Re: [PATCH v3 1/4] fs/squashfs: Add init. and clean-up functions to decompression

2020-08-18 Thread Thomas Petazzoni
Hello, In your commit title: spurious . after "init". On Tue, 18 Aug 2020 16:31:15 +0200 Joao Marcos Costa wrote: > -static struct squashfs_ctxt ctxt; > +struct squashfs_ctxt sqfs_ctxt; Why are you dropping the "static" here ? This symbol only needs to be visible from that file. If you keep

[PATCH v4 0/5] fs/squashfs: Add new decompression algorithms

2020-08-18 Thread Joao Marcos Costa
Hello, Following the SquashFS support, this series adds support for LZO and ZSTD algorithms. Changes in v4: - Replace sqfs_decompress() 1st parameter by a reference to squashfs_ctxt. - Undo changes in squashfs_ctxt instance at sqfs.c Changes in v3: - Reorganize

Re: [PATCH v3 2/4] fs/squashfs: add support for ZSTD decompression

2020-08-18 Thread Joao Marcos Costa
On Tue, 18 Aug 2020 16:35:27 +0200 Thomas Petazzoni wrote: > Hello, > > On Tue, 18 Aug 2020 16:31:16 +0200 > Joao Marcos Costa wrote: > > > +#if IS_ENABLED(CONFIG_ZSTD) > > +static int sqfs_zstd_decompress(void *dest, unsigned long dest_len, > > + void *source, u32

[PATCH v2 1/4] firmware: add new driver for SCMI firmwares

2020-08-18 Thread Etienne Carriere
This change introduces SCMI agent driver in U-Boot in the firmware U-class. SCMI agent driver is designed for platforms that embed a SCMI server in a firmware hosted for example by a companion co-processor or the secure world of the executing processor. SCMI protocols allow an SCMI agent to

[PATCH v2 4/4] reset: add reset controller driver for SCMI agents

2020-08-18 Thread Etienne Carriere
This change introduces a reset controller driver for SCMI agent devices. When SCMI agent and SCMI reset domain drivers are enabled, SCMI agent binds a reset controller device for each SCMI reset domain protocol devices enabled in the FDT. SCMI reset driver is embedded upon CONFIG_RESET_SCMI=y. If

[PATCH v2 3/4] clk: add clock driver for SCMI agents

2020-08-18 Thread Etienne Carriere
This change introduces a clock driver for SCMI agent devices. When SCMI agent and SCMI clock drivers are enabled, SCMI agent binds a clock device for each SCMI clock protocol devices enabled in the FDT. SCMI clock driver is embedded upon CONFIG_CLK_SCMI=y. If enabled, CONFIG_SCMI_AGENT is also

[PATCH v2 2/4] dt-bindings: arm: SCMI bindings documentation

2020-08-18 Thread Etienne Carriere
Dump SCMI DT bindings documentation from Linux kernel source tree v5.8-rc1. Signed-off-by: Etienne Carriere Reviewed-by: Simon Glass --- Changes in v2: - No change but added R-b tag. - Yet a question: do we need to add this binding doc in U-Boot since already existing in Linux DT bindings

Re: [RESEND][PATCH 1/3] usb_kbd: succeed even if no interrupt is pending

2020-08-18 Thread Jason Wessel
On 8/18/20 10:05 AM, Marek Vasut wrote: > On 8/18/20 4:34 PM, Jason Wessel wrote: >> After the initial configuration some USB keyboard+mouse devices never >> return any kind of event on the interrupt line. In particular, the >> device identified by "Cypress Cypress USB Keyboard / PS2 Mouse as

[PATCH v3 3/4] fs/squashfs: add support for LZO decompression

2020-08-18 Thread Joao Marcos Costa
Add call to lzo's lzo1x_decompress_safe() into sqfs_decompress(). U-Boot's LZO sources may still have some unsolved issues that could make the decompression crash when dealing with fragmented files, so those should be avoided. The "-no-fragments" option can be passed to mksquashfs.

[PATCH v3 2/4] fs/squashfs: add support for ZSTD decompression

2020-08-18 Thread Joao Marcos Costa
Add call to ZSTD's ZSTD_decompressDCtx(). In this use case, the caller can upper bound the decompressed size, which will be the SquashFS data block (or metadata block) size, so there is no need to use streaming API. Add ZSTD's worskpace to squashfs_ctxt structure. Signed-off-by: Joao Marcos Costa

[PATCH v3 4/4] test/py: Add tests for LZO and ZSTD

2020-08-18 Thread Joao Marcos Costa
Improve SquashFS tests architecture. Add 'Compression' class. LZO algorithm may crash if the file is fragmented, so the fragments are disabled when testing LZO. Signed-off-by: Joao Marcos Costa --- Changes in v3: - No changes since the last version. Changes in v2: - This patch

[PATCH v3 1/4] fs/squashfs: Add init. and clean-up functions to decompression

2020-08-18 Thread Joao Marcos Costa
Add sqfs_decompressor_init() and sqfs_decompressor_cleanup(). These functions are called respectively in sqfs_probe() and sqfs_close(). For now, only ZSTD requires an initialization logic. ZSTD support will be added in a follow-up commit. Move squashfs_ctxt definition to sqfs_filesystem.h. This

[PATCH v3 0/4] fs/squashfs: Add new decompression algorithms

2020-08-18 Thread Joao Marcos Costa
Hello, Following the SquashFS support, this series adds support for LZO and ZSTD algorithms. Changes in v3: - Reorganize patches order. - Remove memory leak from sqfs_zstd_decompress(). Changes in v2: - Change tests architecture. - Add tests for LZO and ZSTD.

Re: [RESEND][PATCH 0/3] Raspberry pi improvements usb core

2020-08-18 Thread Marek Vasut
On 8/18/20 4:34 PM, Jason Wessel wrote: > These patches are now in use by other developers, and I would like to > get them into the upstream u-boot. This 3 patches were part of a 9 > patch series posted in July prior to the merge window closure. > > -- Travis CI checks

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

2020-08-18 Thread Marek Vasut
On 8/18/20 4:34 PM, Jason Wessel wrote: > 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. Does it work if you do => setenv usb_pgood_delay 2000

Re: [RESEND][PATCH 2/3] common/usb.c: Work around keyboard reporting "USB device not accepting new address"

2020-08-18 Thread Marek Vasut
On 8/18/20 4:34 PM, Jason Wessel wrote: > When resetting the rpi3 board sometimes it will display: > USB device not accepting new address (error=0) > > After the message appears, the usb keyboard will not work. It seems > that the configuration actually did succeed however. Checking the >

[PATCH v4 3/5] fs/squashfs: add support for ZSTD decompression

2020-08-18 Thread Joao Marcos Costa
Add call to ZSTD's ZSTD_decompressDCtx(). In this use case, the caller can upper bound the decompressed size, which will be the SquashFS data block (or metadata block) size, so there is no need to use streaming API. Add ZSTD's worskpace to squashfs_ctxt structure. Signed-off-by: Joao Marcos Costa

  1   2   >