Re: [PATCH 1/2] ARM: dts: stm32: Drop nWP GPIO hog on DHSOM

2021-10-25 Thread Patrice CHOTARD
Hi Marek On 10/23/21 8:33 PM, Marek Vasut wrote: > The nWP GPIO hog was used to unlock the SPI NOR write protect when U-Boot > used to operate the SPI NOR in 1-1-1 mode. Now that the SPI NOR is operated > in 1-1-4 mode, the hog has adverse effects and causes transfer corruption, > since the

Re: [PATCH v9 3/7] env: Allow U-Boot scripts to be placed in a .env file

2021-10-25 Thread Rasmus Villemoes
On 24/10/2021 21.54, Simon Glass wrote: > Hi Rasmus, > > On Fri, 22 Oct 2021 at 00:41, Rasmus Villemoes > wrote: >> >> On 21/10/2021 18.03, Tom Rini wrote: >>> On Thu, Oct 21, 2021 at 09:59:38AM -0600, Simon Glass wrote: Hi Marek, On Thu, 21 Oct 2021 at 07:28, Marek Behún wrote:

Re: [PATCH] board: stmp32mp1: split board and SOC STM32MP15 configuration

2021-10-25 Thread Patrice CHOTARD
Hi Patrick On 10/22/21 10:19 AM, Patrick Delaunay wrote: > Add a configuration file "stm32mp15_st_common.h" to handle the > STMicroelectronics boards configuration and rename stm32mp1.h to > "stm32mp15_common.h" to handle the generic STM32MP15x series configuration. > > The configuration file

[PATCH v2] xilinx: zynqmp: Save multiboot as variable

2021-10-25 Thread Michal Simek
Save multiboot register as u-boot variable. And use it as primary source for composing dfu_alt_info for capsule update. If variable is not defined Signed-off-by: Michal Simek --- Changes in v2: - Handle also error values from mult_boot() - Reported by Oleksandr Suvorov

Re: [PATCH] xilinx: zynqmp: Save multiboot as variable

2021-10-25 Thread Michal Simek
On 10/21/21 16:23, Oleksandr Suvorov wrote: On Thu, Oct 21, 2021 at 9:59 AM Michal Simek wrote: Save multiboot register as u-boot variable. And use it as primary source for composing dfu_alt_info for capsule update. If variable is not defined Signed-off-by: Michal Simek ---

Re: [PATCH 1/2] ARM: dts: stm32: Drop nWP GPIO hog on DHSOM

2021-10-25 Thread Patrick DELAUNAY
Hi, On 10/23/21 8:33 PM, Marek Vasut wrote: The nWP GPIO hog was used to unlock the SPI NOR write protect when U-Boot used to operate the SPI NOR in 1-1-1 mode. Now that the SPI NOR is operated in 1-1-4 mode, the hog has adverse effects and causes transfer corruption, since the hogged pin is

Re: [PATCH] ARM: stm32: Enable DFU MTD support on DHSOM

2021-10-25 Thread Patrick DELAUNAY
Hi Marek, On 10/23/21 8:32 PM, Marek Vasut wrote: All the STM32MP1 based DHSOM have SPI NOR from which they boot, enable DFU_MTD support to make it possible to expose that SPI NOR via the DFU. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay ---

Re: [PATCH 1/1] doc: remove AMCC PPC405 processor references

2021-10-25 Thread Thomas Huth
On 23/10/2021 13.14, Heinrich Schuchardt wrote: Support for PPC4XX processors has been removed. So we should not mention it in the documentation. Signed-off-by: Heinrich Schuchardt --- doc/README.bedbug | 22 -- 1 file changed, 22 deletions(-) Reviewed-by: Thomas Huth

[PATCH v2 2/3] arm: dts: rockchip: rk3568: Enable sdhci and sdmmc0 node

2021-10-25 Thread Nico Cheng
Enable sdhci and sdmmc0 node in rk3568-u-boot.dtsi Signed-off-by: Nico Cheng --- (no changes since v1) arch/arm/dts/rk3568-u-boot.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/rk3568-u-boot.dtsi b/arch/arm/dts/rk3568-u-boot.dtsi index

[PATCH v2 3/3] rockchip: rk3568: add arch_cpu_init()

2021-10-25 Thread Nico Cheng
We configured the drive strength and security of EMMC in arch_cpu_init(). Signed-off-by: Nico Cheng --- Changes in v2: We use the rk_clrreg function instead of the writel to set eMMC sdmmc0 to secure. Modify comments to make them more explicit. arch/arm/mach-rockchip/rk3568/rk3568.c | 19

Re: [PATCH v3] driver: spi: add bcm iproc qspi support.

2021-10-25 Thread Jagan Teki
On Thu, Oct 21, 2021 at 4:01 AM Roman Bacik wrote: > > From: Rayagonda Kokatanur > > IPROC qspi driver supports both BSPI and MSPI modes. > > Signed-off-by: Rayagonda Kokatanur > Signed-off-by: Bharat Gooty > Acked-by: Rayagonda Kokatanur > > Signed-off-by: Roman Bacik > --- > > Changes in

Re: [PATCH] gpio: stm32: create include file for driver private data

2021-10-25 Thread Patrice CHOTARD
Hi Patrick On 10/22/21 8:12 PM, Patrick Delaunay wrote: > The stm32 gpio driver private data are not needed in arch include files, > they are not used by code except for stm32 gpio and pincontrol drivers, > using the same IP; the defines for this IP is moved in a new file > "stm32_gpio_priv.h" in

Re: [PATCH] ARM: stm32: Enable DFU MTD support on DHSOM

2021-10-25 Thread Patrice CHOTARD
Hi Marek On 10/23/21 8:32 PM, Marek Vasut wrote: > All the STM32MP1 based DHSOM have SPI NOR from which they boot, > enable DFU_MTD support to make it possible to expose that SPI NOR > via the DFU. > > Signed-off-by: Marek Vasut > Cc: Patrice Chotard > Cc: Patrick Delaunay > --- >

Re: [PATCH] introduce CONFIG_DEVICE_TREE_INCLUDES

2021-10-25 Thread Rasmus Villemoes
On 28/09/2021 10.56, Rasmus Villemoes wrote: > The build system already automatically looks for and includes an > in-tree *-u-boot.dtsi when building the control .dtb. However, there > are some things that are awkward to maintain in such an in-tree file, > most notably the metadata associated to

Re: [PATCH 1/1] blk: simplify blk_get_devnum_by_typename()

2021-10-25 Thread Heinrich Schuchardt
On 10/25/21 09:54, Heinrich Schuchardt wrote: On 10/24/21 21:54, Simon Glass wrote: Hi Heinrich, On Sat, 23 Oct 2021 at 08:06, Heinrich Schuchardt wrote: The block descriptor contains the if_type. There is no need to first look up the uclass for the if_type and then to check the parent

Re: [PATCH] ARM: stm32: Enable DFU MTD support on DHSOM

2021-10-25 Thread Marek Vasut
On 10/25/21 10:24 AM, Patrick DELAUNAY wrote: Hi Marek, On 10/23/21 8:32 PM, Marek Vasut wrote: All the STM32MP1 based DHSOM have SPI NOR from which they boot, enable DFU_MTD support to make it possible to expose that SPI NOR via the DFU. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc:

Re: [PATCH 2/2] efi_selftest: add selftest for EFI_TCG2_PROTOCOL and Measured Boot

2021-10-25 Thread Heinrich Schuchardt
On 10/25/21 09:59, Masahisa Kojima wrote: On Sat, 23 Oct 2021 at 18:42, Heinrich Schuchardt wrote: On 10/22/21 13:24, Masahisa Kojima wrote: This commit adds the missing EFI_TCG2_PROTOCOL selftest and Measured Boot selftest in lib/efi_selftest. Signed-off-by: Masahisa Kojima ---

Re: [PATCH] dfu: dfu_sf: Read the SPI flash in 16 MiB chunks

2021-10-25 Thread Lukasz Majewski
Hi Marek, > On 9/14/21 11:31 AM, Lukasz Majewski wrote: > > On Tue, 14 Sep 2021 05:26:51 +0200 > > Marek Vasut wrote: > > > >> Not all SPI flashes and controllers can do continuous transfer > >> longer than 16 MiB, so perform the DFU read in 16 MiB chunks. > >> > >> Signed-off-by: Marek Vasut

Re: [PATCH 2/2] ARM: stm32: Disable video output on DHSOM

2021-10-25 Thread Patrice CHOTARD
Hi Marek On 10/23/21 8:33 PM, Marek Vasut wrote: > The video output support is unused and disabling it saves about 20 kiB of > space. > In case video output support is required, it can be re-enabled. > > Signed-off-by: Marek Vasut > Cc: Patrice Chotard > Cc: Patrick Delaunay > --- >

Re: [PATCH v4 2/4] mtd: spi-nor-core: Adding different type of command extension in Soft Reset

2021-10-25 Thread Jagan Teki
On Mon, Oct 18, 2021 at 11:54 AM JaimeLiao wrote: > > Power-on-Reset is a method to restore flash back to 1S-1S-1S mode from > 8D-8D-8D > in the begging of probe. > > Command extension type is not standardized across flash vendors in DTR mode. > > For suiting different vendor flash devices,

Re: [PATCH v4 03/11] efi_loader: capsule: add back efi_get_public_key_data()

2021-10-25 Thread François Ozog
Le lun. 25 oct. 2021 à 09:05, Masami Hiramatsu a écrit : > Hi Francois, > > 2021年10月25日(月) 15:28 François Ozog : > > > > > > > > Le lun. 25 oct. 2021 à 07:14, AKASHI Takahiro < > takahiro.aka...@linaro.org> a écrit : > >> > >> On Wed, Oct 20, 2021 at 07:39:37AM -0600, Simon Glass wrote: > >> >

Re: [PATCH 1/1] blk: simplify blk_get_devnum_by_typename()

2021-10-25 Thread Heinrich Schuchardt
On 10/24/21 21:54, Simon Glass wrote: Hi Heinrich, On Sat, 23 Oct 2021 at 08:06, Heinrich Schuchardt wrote: The block descriptor contains the if_type. There is no need to first look up the uclass for the if_type and then to check the parent device's uclass to know if the device has the

Re: [PATCH 2/2] ARM: stm32: Increase default SF bus frequency to 50 MHz and enable SFDP

2021-10-25 Thread Patrick DELAUNAY
Hi, On 10/23/21 8:33 PM, Marek Vasut wrote: Increase default SPI NOR bus frequency from 1 MHz to 50 MHz and enable SFDP parsing to obtain more accurate SPI NOR configuration. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- configs/stm32mp15_dhcom_basic_defconfig |

Re: [PATCH 1/2] ARM: stm32: Disable EFI on DHSOM

2021-10-25 Thread Patrick DELAUNAY
Hi, On 10/23/21 8:33 PM, Marek Vasut wrote: The EFI support is unused and disabling it saves about 70 kiB of space. In case EFI support is required, it can be re-enabled. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- configs/stm32mp15_dhcom_basic_defconfig | 4

Re: [PATCH 2/2] ARM: stm32: Disable video output on DHSOM

2021-10-25 Thread Patrick DELAUNAY
Hi, On 10/23/21 8:33 PM, Marek Vasut wrote: The video output support is unused and disabling it saves about 20 kiB of space. In case video output support is required, it can be re-enabled. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay ---

[PATCH v2 1/3] rockchip: Kconfig: Enable SPL support for rk3568

2021-10-25 Thread Nico Cheng
Enable SPL support in Kconfig and add some related option in rk3568_common.h Signed-off-by: Nico Cheng Signed-off-by: Jason Zhu --- (no changes since v1) arch/arm/mach-rockchip/Kconfig | 2 ++ configs/evb-rk3568_defconfig| 25 - include/configs/rk3568_common.h |

[PATCH v2 0/3] Add SPL build support for RK3568

2021-10-25 Thread Nico Cheng
This series adds support for the rk3568 SOC, SPL load next-stage image from eMMC will be supported after this series of patches. Changes in v2: We use the rk_clrreg function instead of the writel to set eMMC sdmmc0 to secure. Modify comments to make them more explicit. Nico Cheng (3):

Re: [PATCH v9 3/7] env: Allow U-Boot scripts to be placed in a .env file

2021-10-25 Thread Wolfgang Denk
Dear Tom, In message <20211024164404.GQ3577824@bill-the-cat> you wrote: > > > It is a convenience tool, and it is OK if it has a few restrictions, > > like for the character set of supported variable names. > > > > But: > > > > 1) These restrictions must be clearly documented, both in the

Re: [PATCH v1 1/1] Makefile.lib: Always rebuild DSDT

2021-10-25 Thread Andy Shevchenko
On Sun, Oct 24, 2021 at 11:00 PM Simon Glass wrote: > On Wed, 20 Oct 2021 at 06:37, Andy Shevchenko > wrote: > > > > The dsdt.asl is usually combined out of several files that are included > > in the main one. Whenever we change the content of any of such files, > > build system is not able to

Re: [PATCH v2] xilinx: zynqmp: Save multiboot as variable

2021-10-25 Thread Oleksandr Suvorov
On Mon, Oct 25, 2021 at 11:11 AM Michal Simek wrote: > > Save multiboot register as u-boot variable. And use it as primary source > for composing dfu_alt_info for capsule update. If variable is not defined > > Signed-off-by: Michal Simek Reviewed-by: Oleksandr Suvorov > --- > > Changes in v2:

Re: [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM

2021-10-25 Thread Patrick DELAUNAY
Hi, On 10/24/21 12:46 AM, Marek Vasut wrote: The DHSOM uses different SPI NOR layout than the ST devkit, stop pulling in the ST specific runtime mtdparts settings and adjust the mtdparts accordingly. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay ---

Re: [PATCH v4 03/11] efi_loader: capsule: add back efi_get_public_key_data()

2021-10-25 Thread François Ozog
Le lun. 25 oct. 2021 à 07:14, AKASHI Takahiro a écrit : > On Wed, Oct 20, 2021 at 07:39:37AM -0600, Simon Glass wrote: > > Hi Masami, > > > > On Wed, 20 Oct 2021 at 02:18, Masami Hiramatsu > > wrote: > > > > > > Hi Simon, > > > > > > 2021年10月15日(金) 9:40 Simon Glass : > > > > > > > > Hi

Re: [PATCH] ARM: stm32: Align mtdparts with SPI NOR layout on DHSOM

2021-10-25 Thread Patrice CHOTARD
Hi Marek On 10/24/21 12:46 AM, Marek Vasut wrote: > The DHSOM uses different SPI NOR layout than the ST devkit, stop > pulling in the ST specific runtime mtdparts settings and adjust > the mtdparts accordingly. > > Signed-off-by: Marek Vasut > Cc: Patrice Chotard > Cc: Patrick Delaunay > ---

Re: [PATCH 2/2] ARM: stm32: Increase default SF bus frequency to 50 MHz and enable SFDP

2021-10-25 Thread Patrice CHOTARD
Hi Marek On 10/23/21 8:33 PM, Marek Vasut wrote: > Increase default SPI NOR bus frequency from 1 MHz to 50 MHz and > enable SFDP parsing to obtain more accurate SPI NOR configuration. > > Signed-off-by: Marek Vasut > Cc: Patrice Chotard > Cc: Patrick Delaunay > --- >

Re: [PATCH v4 1/4] mtd: spi-nor: macronix: add support for Macronix Octal

2021-10-25 Thread Jagan Teki
On Mon, Oct 18, 2021 at 11:54 AM JaimeLiao wrote: > > Follow patch "f6adec1af4b2f5d3012480c6cdce7743b74a6156" for adding > Macronix flash in Octal DTR mode. > > Enable Octal DTR mode with 20 dummy cycles to allow running at the > maximum supported frequency. > >

Re: [PATCH v4 03/11] efi_loader: capsule: add back efi_get_public_key_data()

2021-10-25 Thread Masami Hiramatsu
Hi Francois, 2021年10月25日(月) 15:28 François Ozog : > > > > Le lun. 25 oct. 2021 à 07:14, AKASHI Takahiro a > écrit : >> >> On Wed, Oct 20, 2021 at 07:39:37AM -0600, Simon Glass wrote: >> > Hi Masami, >> > >> > On Wed, 20 Oct 2021 at 02:18, Masami Hiramatsu >> > wrote: >> > > >> > > Hi Simon, >>

Re: [PATCH 1/1] smbios: amend the description of smbios_string()

2021-10-25 Thread Heinrich Schuchardt
On 10/24/21 21:54, Simon Glass wrote: Hi Heinrich, On Thu, 21 Oct 2021 at 03:16, Heinrich Schuchardt wrote: Add a warning that this function only works for strings preceding the first non-string field. What is a non-string field? If you mean an int field, for example, then that would not

Re: [PATCH] spi: zynqmp_gqspi: Fix write issue at low frequencies

2021-10-25 Thread Michal Simek
On 10/19/21 16:13, Ashok Reddy Soma wrote: With current implementation we are seeing write issues at low frequencies below 15Mhz. Make below changes to fix the issue. 1. Remove dummy genfifo entry in zynqmp_qspi_chipselect() which was incorrectly added in the past 2. Enable and poll for

[PATCH v2] arm: xea: Modify board code to generate single binary u-boot

2021-10-25 Thread Lukasz Majewski
This change provides the possibility to build XEA (imx287 based) board U-Boot as a single binary (without support for CONFIG_SPL_FRAMEWORK). The generated u-boot.sb can be used in the factory environment to for example perform initial setup or HW testing. It can be used with 'uuu' utility (SDPS:

Re: [PATCH v4 05/11] tools: mkeficapsule: add firmwware image signing

2021-10-25 Thread AKASHI Takahiro
On Mon, Oct 25, 2021 at 02:40:11PM +0900, Masami Hiramatsu wrote: > Hi Takahiro, > > 2021年10月25日(月) 12:12 AKASHI Takahiro : > > > > Hi, Masami, > > > > On Wed, Oct 20, 2021 at 05:17:12PM +0900, Masami Hiramatsu wrote: > > > Hello Akashi-san, > > > > > > Can you split this patch out from this

Re: [PATCH 1/2] ARM: stm32: Disable EFI on DHSOM

2021-10-25 Thread Patrice CHOTARD
Hi Marek On 10/23/21 8:33 PM, Marek Vasut wrote: > The EFI support is unused and disabling it saves about 70 kiB of space. > In case EFI support is required, it can be re-enabled. > > Signed-off-by: Marek Vasut > Cc: Patrice Chotard > Cc: Patrick Delaunay > --- >

Re: [PATCH v4 05/11] tools: mkeficapsule: add firmwware image signing

2021-10-25 Thread Masami Hiramatsu
Hi Takahiro, 2021年10月25日(月) 15:09 AKASHI Takahiro : > > On Mon, Oct 25, 2021 at 02:40:11PM +0900, Masami Hiramatsu wrote: > > Hi Takahiro, > > > > 2021年10月25日(月) 12:12 AKASHI Takahiro : > > > > > > Hi, Masami, > > > > > > On Wed, Oct 20, 2021 at 05:17:12PM +0900, Masami Hiramatsu wrote: > > > >

Re: [PATCH 2/2] efi_selftest: add selftest for EFI_TCG2_PROTOCOL and Measured Boot

2021-10-25 Thread Masahisa Kojima
On Sat, 23 Oct 2021 at 18:42, Heinrich Schuchardt wrote: > > > > On 10/22/21 13:24, Masahisa Kojima wrote: > > This commit adds the missing EFI_TCG2_PROTOCOL selftest > > and Measured Boot selftest in lib/efi_selftest. > > > > Signed-off-by: Masahisa Kojima > > --- > >

Re: [PATCH v4 05/11] tools: mkeficapsule: add firmwware image signing

2021-10-25 Thread Sughosh Ganu
hi Masami, On Mon, 25 Oct 2021 at 11:10, Masami Hiramatsu wrote: > Hi Takahiro, > > 2021年10月25日(月) 12:12 AKASHI Takahiro : > > > > Hi, Masami, > > > > On Wed, Oct 20, 2021 at 05:17:12PM +0900, Masami Hiramatsu wrote: > > > Hello Akashi-san, > > > > > > Can you split this patch out from this

Re: [PATCH v2 1/3] rockchip: Kconfig: Enable SPL support for rk3568

2021-10-25 Thread Philipp Tomsich
On Mon, 25 Oct 2021 at 08:34, Nico Cheng wrote: > > Enable SPL support in Kconfig and add some related option in > rk3568_common.h > > Signed-off-by: Nico Cheng > Signed-off-by: Jason Zhu Acked-by: Philipp Tomsich

[PATCH 0/2] cmd: sbi: show SBI implementation version

2021-10-25 Thread Heinrich Schuchardt
The sbi command can already show the SBI implementation (e.g. OpenSBI). But the implementation version is no displayed. Heinrich Schuchardt (2): riscv: function to retrieve SBI implementation version cmd: sbi: show SBI implementation version arch/riscv/include/asm/sbi.h | 1 +

[PATCH 2/2] cmd: sbi: show SBI implementation version

2021-10-25 Thread Heinrich Schuchardt
Let the sbi command show the SBI implementation version Signed-off-by: Heinrich Schuchardt --- cmd/riscv/sbi.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index 90c0811e14..ed0960c2f2 100644 ---

[PATCH 1/2] riscv: function to retrieve SBI implementation version

2021-10-25 Thread Heinrich Schuchardt
Provide function sbi_get_impl_version() to retrieve the SBI implementation version. Signed-off-by: Heinrich Schuchardt --- arch/riscv/include/asm/sbi.h | 1 + arch/riscv/lib/sbi.c | 19 +++ 2 files changed, 20 insertions(+) diff --git a/arch/riscv/include/asm/sbi.h

[PATCH u-boot-marvell 10/13] tools: kwboot: Do not modify kwbimage header before increasing its size

2021-10-25 Thread Marek Behún
From: Pali Rohár This ensures that kwboot_img_grow_hdr() function still sees valid kwbimage header. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwboot.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/kwboot.c b/tools/kwboot.c index

[PATCH u-boot-marvell 09/13] tools: kwboot: Simplify code for aligning image header

2021-10-25 Thread Marek Behún
From: Pali Rohár Expression (hdrsz % KWBOOT_XM_BLKSZ) is non-zero therefore expression (KWBOOT_XM_BLKSZ - hdrsz % KWBOOT_XM_BLKSZ) is always less than value KWBOOT_XM_BLKSZ. So there is no need to add another modulo. Also rename variable `offset` to `grow` which better describes what is stored

[PATCH u-boot-marvell 12/13] tools: kwboot: Change retry loop from decreasing to increasing

2021-10-25 Thread Marek Behún
From: Pali Rohár This patch does not change behavior of the code, just allows to implement new changes more easily. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwboot.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/kwboot.c

[PATCH u-boot-marvell 11/13] tools: kwboot: Calculate real used space in kwbimage header when calling kwboot_img_grow_hdr()

2021-10-25 Thread Marek Behún
From: Pali Rohár Size of the header stored in kwbimage may be larger than real used size in the kwbimage header. If there is unused space in kwbimage header then use it for growing it. So update code to calculate used space of kwbimage header. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún

[PATCH u-boot-marvell 13/13] tools: kwboot: Resend first 3 xmodem retry packets immediately

2021-10-25 Thread Marek Behún
From: Pali Rohár Currently when kwboot receive some garbage reply which does not understand, it waits 1s before it tries to resend packet again. The most common error on UART is that receiver sees some bit flipped which results in invalid reply. This behavior slows down xmodem transfer over

[PATCH u-boot-marvell 07/13] tools: kwboot: Correctly set configuration of UART for BootROM messages

2021-10-25 Thread Marek Behún
From: Pali Rohár For kwbimage v1, tell BootROM to send BootROM messages to UART port number 0 (used also for UART booting) with default baudrate (which should be 115200) and do not touch UART MPP configuration. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwboot.c | 11

[PATCH u-boot-marvell 08/13] tools: kwboot: Show verbose message when waiting for baudrate change magic

2021-10-25 Thread Marek Behún
From: Pali Rohár It is hard to debug why kwboot is failing when the last message is 'Finishing transfer' and no additional output. So show verbose message when kwboot finished transfer and is waiting for baudrate change magic sequence. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún ---

Re: [PATCH 2/3] phy: sun4i-usb: Refactor VBUS detection to match Linux

2021-10-25 Thread Andre Przywara
On Sun, 12 Sep 2021 09:22:41 -0500 Samuel Holland wrote: Hi, > The Linux driver checks the VBUS detection GPIO first; then VBUS power > supply; then finally assumes VBUS is present. When adding VBUS power > supply support, we want to match that order, so we get the same behavior > in case both

Re: [PATCH 3/3] phy: sun4i-usb: Support VBUS detection via power supply

2021-10-25 Thread Andre Przywara
On Sun, 12 Sep 2021 09:22:42 -0500 Samuel Holland wrote: > The device tree binding provides for getting VBUS state from a device > referenced by phandle, as an optional alternative to using a GPIO. In > U-Boot, where there is no power supply class, this VBUS detection will > be implemented using

Re: [PATCH] sunxi: A23/A33/H3: Actually move the secure monitor

2021-10-25 Thread Andre Przywara
On Tue, 12 Oct 2021 18:54:56 -0500 Samuel Holland wrote: > commit 1ebfc0c631e3 ("sunxi: A23/A33/H3: Move sun8i secure monitor to > SRAM A2") attempted to move the secure monitor to SRAM A2. But not all > sun8i SoCs have SRAM A2, so a check was put in for SUNXI_SRAM_A2_SIZE to > avoid breaking

Re: [PATCH] clk: sunxi: Extend DM_RESET selection to SPL

2021-10-25 Thread Andre Przywara
On Sat, 11 Sep 2021 14:45:31 -0500 Samuel Holland wrote: > The sunxi clock driver exposes a reset controller, so it selects the > reset controller framework. Ensure that dependency is also satisfied > when building the driver for the SPL. > > Signed-off-by: Samuel Holland Reviewed-by: Andre

[PATCH] Avoid possible NULL dereference in XHCI driver

2021-10-25 Thread Jim Posen
In the recovery function abort_td run after timed out XHCI transfers, there's a possible NULL pointer dereference. Instead, explicitly BUG_ON that condition. Signed-off-by: Jim Posen --- drivers/usb/host/xhci-ring.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] ppc: mpc8xx: Drop -mstring from PLATFORM_CPPFLAGS

2021-10-25 Thread Thomas Huth
On 04/10/2021 20.01, Tom Rini wrote: This has not been supported by toolchains for some time and has been putting out a warning. Drop this. Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc8xx/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] doc: Remove the obsolete README.mpc74xx file

2021-10-25 Thread Thomas Huth
Support for the PPC74xx processors has been removed in commit d928664f41 ("powerpc: 74xx_7xx: remove 74xx_7xx cpu support") more than 6 years ago already. So the corresponding README file can now be removed, too. Signed-off-by: Thomas Huth --- doc/README.mpc74xx | 22 -- 1

[PATCH u-boot-marvell 00/13] Yet another kwboot improvements

2021-10-25 Thread Marek Behún
From: Marek Behún Hello Stefan, these are another improvements for kwboot, please apply only after series arm: mvebu: nandpagesize support for kwbimage v1 The main improvement is in patch 5, which changes where we inject the code for changing baudrate back to 115200 Baud after fast upload.

[PATCH u-boot-marvell 02/13] tools: kwboot: Fix initialization of tty device

2021-10-25 Thread Marek Behún
From: Pali Rohár Explicitly disable 2 stop bits by clearing CSTOPB flag, disable modem control flow by clearing CRTSCTS flag and do not send hangup after closing device by clearing HUPCL flag. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwboot.c | 1 + 1 file changed, 1

Re: [PATCH v2 2/3] arm: dts: rockchip: rk3568: Enable sdhci and sdmmc0 node

2021-10-25 Thread Philipp Tomsich
On Mon, 25 Oct 2021 at 08:34, Nico Cheng wrote: > > Enable sdhci and sdmmc0 node in rk3568-u-boot.dtsi > > Signed-off-by: Nico Cheng Reviewed-by: Philipp Tomsich

[PATCH u-boot-marvell 04/13] tools: kwboot: Validate 4-byte image data checksum

2021-10-25 Thread Marek Behún
From: Pali Rohár Data part of the image contains 4-byte checksum. Validate it when processing the image. Signed-off-by: Pali Rohár [ refactored ] Signed-off-by: Marek Behún --- tools/kwboot.c | 34 ++ 1 file changed, 34 insertions(+) diff --git

[PATCH u-boot-marvell 05/13] tools: kwboot: Inject baudrate change back code after data part

2021-10-25 Thread Marek Behún
From: Pali Rohár Some vendor U-Boot kwbimage binaries (e.g. those for A375) have load address set to zero. Therefore it is not possible to inject code which changes baudrate back to 115200 Bd before the data part. So instead inject it after the data part and change kwbimage execution address to

[PATCH u-boot-marvell 06/13] tools: kwboot: Recalculate 4-byte data checksum after injecting baudrate code

2021-10-25 Thread Marek Behún
From: Pali Rohár If data part of image is modified, update 4-byte data checksum. It looks like A385 BootROM does not verify this checksum for image loaded via UART, but we do not know if other BootROMs are also ignoring it. It is always better to provide correct checksum. Signed-off-by: Pali

[PATCH u-boot-marvell 03/13] tools: kwboot: Reserve enough space for patching kwbimage in memory

2021-10-25 Thread Marek Behún
From: Pali Rohár SPI image header and data parts do not have to be aligned to 128 byte xmodem block size. So reserve additional memory for aligning header part and additional memory for aligning data part. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwboot.c | 4 +++- 1 file

[PATCH u-boot-marvell 01/13] tools: kwboot: Initialize rfds to zero

2021-10-25 Thread Marek Behún
From: Pali Rohár Explicitly zero out the rfds fd_set with FD_ZERO() before using it. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/kwboot.c b/tools/kwboot.c index 7e1be29623..695d433b96 100644 ---

Pull request: u-boot-imx u-boot-imx-20211022

2021-10-25 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit 79b8849d4c1e73df2a79a1d5a5f6166d0dd67a12: Merge tag 'u-boot-imx-20211020' of https://source.denx.de/u-boot/custodians/u-boot-imx (2021-10-20 14:24:09 -0400) are available in the Git repository at:

Re: [PATCH v2 2/2] cmd: brcm: netXtreme commands

2021-10-25 Thread Marek Behún
On Fri, 22 Oct 2021 16:23:33 -0700 Roman Bacik wrote: > From: Bharat Gooty > > Following netXtreme commands are supported:- > Device probe, remove, supported speeds, get/set speeds and > get/set MAC address. NAK. - "bnxt get mac U-Boot uses the ethaddr and ethNaddr environment variables

Pull request: u-boot-sunxi/master for 2021.10 - 2nd part

2021-10-25 Thread Andre Przywara
Hi Tom, please pull the second sunxi PR for the 2021.10 merge window. I decided to merge most of Samuel's rework and some smaller patches that pave the way for more DM transitions and for accommodating the RISC-V SoC in the future. Merging them now gives us the opportunity to get some wider

Re: [PATCH] sunxi: Select SPL_SEPARATE_BSS

2021-10-25 Thread Andre Przywara
On Sun, 22 Aug 2021 13:23:53 -0500 Samuel Holland wrote: > sunxi-common.h defines CONFIG_SPL_BSS_START_ADDR to put SPL's BSS in > DRAM. Due to this, we must select SPL_SEPARATE_BSS, or else SPL will > attempt to load its DTB from the wrong address (after BSS in DRAM). > > This change fixes

Re: [PATCH v4 05/11] tools: mkeficapsule: add firmwware image signing

2021-10-25 Thread Masami Hiramatsu
Hi Sughosh, 2021年10月25日(月) 18:59 Sughosh Ganu : > > hi Masami, > > On Mon, 25 Oct 2021 at 11:10, Masami Hiramatsu > wrote: >> >> Hi Takahiro, >> >> 2021年10月25日(月) 12:12 AKASHI Takahiro : >> > >> > Hi, Masami, >> > >> > On Wed, Oct 20, 2021 at 05:17:12PM +0900, Masami Hiramatsu wrote: >> > >

Re: [PATCH v2 3/3] rockchip: rk3568: add arch_cpu_init()

2021-10-25 Thread Philipp Tomsich
On Mon, 25 Oct 2021 at 08:34, Nico Cheng wrote: > > We configured the drive strength and security of EMMC in > arch_cpu_init(). > > Signed-off-by: Nico Cheng > --- > > Changes in v2: > We use the rk_clrreg function instead of the writel to set eMMC sdmmc0 to > secure. > Modify comments to make

Re: [PATCH v2 1/2] net: brcm: netXtreme driver

2021-10-25 Thread Marek Behún
NAK for this driver. - display_banner() spams the output unnecessarily, the information should be printed with debug() - you are introducing custom mechanism for setting / getting PHY parameters, via custom specific env variables, for example in the set_phy_speed() and set_phy_link()

Re: [PATCH 1/3] phy: sun4i-usb: Remove a couple of debug messages

2021-10-25 Thread Andre Przywara
On Sun, 12 Sep 2021 09:22:40 -0500 Samuel Holland wrote: > Both of these messages log the GPIO number of the ID detection GPIO, > which is not terribly useful, especially in the VBUS detection function. > > Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Cheers, Andre > --- > >

Re: [PATCH] arm64: relocate-rela: Add support for ld.lld

2021-10-25 Thread Tom Rini
On Wed, Oct 20, 2021 at 09:31:32PM +, Alistair Delva wrote: > Cap end of relocations by the binary size. > > Linkers like to insert some auxiliary sections between .rela.dyn and > .bss_start. These sections don't make their way to the final binary, but > reloc_rela still tries to relocate

Re: [PATCH v2 4/4] power: pmic: axp: Implement poweroff via sysreset

2021-10-25 Thread Andre Przywara
On Sun, 24 Oct 2021 21:00:10 -0500 Samuel Holland wrote: > The AXP PMICs have the ability to power off the system. The existing > code for this is duplicated for each PMIC variant, and uses the legacy > non-DM "pmic_bus" interface. When SYSRESET is enabled, this can all be > replaced with a

Re: [PATCH u-boot-marvell 00/13] Yet another kwboot improvements

2021-10-25 Thread Stefan Roese
Hi Marek, On 25.10.21 15:12, Marek Behún wrote: From: Marek Behún Hello Stefan, these are another improvements for kwboot, please apply only after series arm: mvebu: nandpagesize support for kwbimage v1 I'm checking right now and have applied the 3 NAND patches on current master. But

Re: [PATCH 1/1] blk: simplify blk_get_devnum_by_typename()

2021-10-25 Thread Tom Rini
On Mon, Oct 25, 2021 at 09:18:49AM -0600, Simon Glass wrote: > Hi Heinrich, > > On Mon, 25 Oct 2021 at 02:00, Heinrich Schuchardt > wrote: > > > > On 10/25/21 09:54, Heinrich Schuchardt wrote: > > > On 10/24/21 21:54, Simon Glass wrote: > > >> Hi Heinrich, > > >> > > >> On Sat, 23 Oct 2021 at

Re: [PATCH 1/1] blk: simplify blk_get_devnum_by_typename()

2021-10-25 Thread Simon Glass
Hi Heinrich, On Mon, 25 Oct 2021 at 09:44, Heinrich Schuchardt wrote: > > On 10/25/21 17:18, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 25 Oct 2021 at 02:00, Heinrich Schuchardt > > wrote: > >> > >> On 10/25/21 09:54, Heinrich Schuchardt wrote: > >>> On 10/24/21 21:54, Simon Glass

RE: [PATCH v2 2/2] cmd: brcm: netXtreme commands

2021-10-25 Thread Roman Bacik
> -Original Message- > From: Marek Behún > Sent: Monday, October 25, 2021 7:01 AM > To: Roman Bacik > Cc: U-Boot Mailing List ; Bharat Gooty > ; Bin Meng ; Franck > LENORMAND ; Heinrich Schuchardt > ; Kory Maincent ; > Michal Simek ; Patrick Delaunay > ; Peng Fan ; Priyanka > Jain ;

Re: [PATCH 1/1] smbios: amend the description of smbios_string()

2021-10-25 Thread Simon Glass
Hi Heinrich, On Mon, 25 Oct 2021 at 01:26, Heinrich Schuchardt wrote: > > On 10/24/21 21:54, Simon Glass wrote: > > Hi Heinrich, > > > > On Thu, 21 Oct 2021 at 03:16, Heinrich Schuchardt > > wrote: > >> > >> Add a warning that this function only works for strings preceding the first > >>

Re: [PATCH v9 3/7] env: Allow U-Boot scripts to be placed in a .env file

2021-10-25 Thread Simon Glass
Hi Rasmus, On Mon, 25 Oct 2021 at 01:06, Rasmus Villemoes wrote: > > On 24/10/2021 21.54, Simon Glass wrote: > > Hi Rasmus, > > > > On Fri, 22 Oct 2021 at 00:41, Rasmus Villemoes > > wrote: > >> > >> On 21/10/2021 18.03, Tom Rini wrote: > >>> On Thu, Oct 21, 2021 at 09:59:38AM -0600, Simon

Re: [PATCH 1/1] blk: simplify blk_get_devnum_by_typename()

2021-10-25 Thread Simon Glass
Hi Heinrich, On Mon, 25 Oct 2021 at 02:00, Heinrich Schuchardt wrote: > > On 10/25/21 09:54, Heinrich Schuchardt wrote: > > On 10/24/21 21:54, Simon Glass wrote: > >> Hi Heinrich, > >> > >> On Sat, 23 Oct 2021 at 08:06, Heinrich Schuchardt > >> wrote: > >>> > >>> The block descriptor contains

Re: [PATCH v2] bootstage: Add SPL support

2021-10-25 Thread Simon Glass
Hi Marek, On Sun, 24 Oct 2021 at 14:44, Marek Vasut wrote: > > On 10/24/21 9:54 PM, Simon Glass wrote: > > On Fri, 22 Oct 2021 at 19:06, Marek Vasut wrote: > >> > >> Allow usage of the bootstage facilities in SPL. > >> > >> Signed-off-by: Marek Vasut > >> Cc: Simon Glass > >> --- > >> V2: Fix

Re: Pull request: u-boot-imx u-boot-imx-20211022

2021-10-25 Thread Tom Rini
On Mon, Oct 25, 2021 at 03:17:21PM +0200, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > > The following changes since commit 79b8849d4c1e73df2a79a1d5a5f6166d0dd67a12: > > Merge tag 'u-boot-imx-20211020' of > https://source.denx.de/u-boot/custodians/u-boot-imx

RE: [PATCH v3] driver: spi: add bcm iproc qspi support.

2021-10-25 Thread Roman Bacik
> -Original Message- > From: Jagan Teki > Sent: Sunday, October 24, 2021 11:44 PM > To: Roman Bacik > Cc: U-Boot Mailing List ; Rayagonda Kokatanur > ; Bharat Gooty > > Subject: Re: [PATCH v3] driver: spi: add bcm iproc qspi support. > > On Thu, Oct 21, 2021 at 4:01 AM Roman Bacik >

RE: [PATCH v2 2/2] cmd: brcm: netXtreme commands

2021-10-25 Thread Roman Bacik
> -Original Message- > From: Heinrich Schuchardt > Sent: Saturday, October 23, 2021 1:02 AM > To: Roman Bacik ; U-Boot Mailing List b...@lists.denx.de> > Cc: Bharat Gooty ; Bin Meng > ; Franck LENORMAND > ; Kory Maincent > ; Michal Simek ; > Patrick Delaunay ; Peng Fan > ; Priyanka Jain

Re: [PATCH u-boot-marvell 00/13] Yet another kwboot improvements

2021-10-25 Thread Stefan Roese
Hi Pali, On 25.10.21 16:42, Pali Rohár wrote: On Monday 25 October 2021 16:39:44 Stefan Roese wrote: Hi Marek, On 25.10.21 15:12, Marek Behún wrote: From: Marek Behún Hello Stefan, these are another improvements for kwboot, please apply only after series arm: mvebu: nandpagesize

Re: [PATCH v4 03/11] efi_loader: capsule: add back efi_get_public_key_data()

2021-10-25 Thread Simon Glass
Hi François, On Mon, 25 Oct 2021 at 01:14, François Ozog wrote: > > > > Le lun. 25 oct. 2021 à 09:05, Masami Hiramatsu > a écrit : >> >> Hi Francois, >> >> 2021年10月25日(月) 15:28 François Ozog : >> > >> > >> > >> > Le lun. 25 oct. 2021 à 07:14, AKASHI Takahiro >> > a écrit : >> >> >> >> On

Re: [PATCH v1 1/1] Makefile.lib: Always rebuild DSDT

2021-10-25 Thread Simon Glass
Hi Andy, On Mon, 25 Oct 2021 at 01:34, Andy Shevchenko wrote: > > On Sun, Oct 24, 2021 at 11:00 PM Simon Glass wrote: > > On Wed, 20 Oct 2021 at 06:37, Andy Shevchenko > > wrote: > > > > > > The dsdt.asl is usually combined out of several files that are included > > > in the main one. Whenever

Re: [PATCH] clk: introduce u-boot,ignore-clk-defaults

2021-10-25 Thread Simon Glass
Hi Sean, On Sun, 24 Oct 2021 at 18:13, Sean Anderson wrote: > > On 10/14/21 10:19 PM, Simon Glass wrote: > > Hi Peng, Sean, > > > > On Thu, 14 Oct 2021 at 19:17, Peng Fan wrote: > >> > >>> Subject: Re: [PATCH] clk: introduce u-boot,ignore-clk-defaults > >>> > >>> > >>> On 10/13/21 5:37 AM, Peng

Re: [PATCH u-boot-marvell 00/13] Yet another kwboot improvements

2021-10-25 Thread Pali Rohár
On Monday 25 October 2021 16:39:44 Stefan Roese wrote: > Hi Marek, > > On 25.10.21 15:12, Marek Behún wrote: > > From: Marek Behún > > > > Hello Stefan, > > > > these are another improvements for kwboot, please apply only after series > >arm: mvebu: nandpagesize support for kwbimage v1 >

Re: [PATCH 1/1] blk: simplify blk_get_devnum_by_typename()

2021-10-25 Thread Heinrich Schuchardt
On 10/25/21 17:18, Simon Glass wrote: Hi Heinrich, On Mon, 25 Oct 2021 at 02:00, Heinrich Schuchardt wrote: On 10/25/21 09:54, Heinrich Schuchardt wrote: On 10/24/21 21:54, Simon Glass wrote: Hi Heinrich, On Sat, 23 Oct 2021 at 08:06, Heinrich Schuchardt wrote: The block descriptor

Re: Pull request: u-boot-sunxi/master for 2021.10 - 2nd part

2021-10-25 Thread Tom Rini
On Mon, Oct 25, 2021 at 03:06:58PM +0100, Andre Przywara wrote: > Hi Tom, > > please pull the second sunxi PR for the 2021.10 merge window. > I decided to merge most of Samuel's rework and some smaller patches that > pave the way for more DM transitions and for accommodating the RISC-V SoC > in

Re: [PATCH v4 2/4] mtd: spi-nor-core: Adding different type of command extension in Soft Reset

2021-10-25 Thread Pratyush Yadav
On 25/10/21 12:30PM, Jagan Teki wrote: > On Mon, Oct 18, 2021 at 11:54 AM JaimeLiao wrote: > > > > Power-on-Reset is a method to restore flash back to 1S-1S-1S mode from > > 8D-8D-8D > > in the begging of probe. > > > > Command extension type is not standardized across flash vendors in DTR mode.

Re: [PATCH 1/1] blk: simplify blk_get_devnum_by_typename()

2021-10-25 Thread Heinrich Schuchardt
On 10/25/21 21:37, Heinrich Schuchardt wrote: On 10/25/21 21:03, Simon Glass wrote: Hi Heinrich, On Mon, 25 Oct 2021 at 12:41, Heinrich Schuchardt wrote: On 10/25/21 19:29, Simon Glass wrote: Hi Heinrich, On Mon, 25 Oct 2021 at 09:44, Heinrich Schuchardt wrote: On 10/25/21

  1   2   3   >