Please pull u-boot-ubi

2022-07-20 Thread Heiko Schocher
Hello Tom, please pull from: The following changes since commit fc97ff2695d6d7fbea7d5fda7b080f405d6ee744: Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi (2022-07-19 10:52:15 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-ubi.git

Re: [PATCH 2/2] tools: kwboot: use pkg-config to get -ltinfo

2022-07-20 Thread Pali Rohár
On Wednesday 20 July 2022 08:06:28 Heiko Thiery wrote: > Hi, > > > Am Di., 19. Juli 2022 um 21:20 Uhr schrieb Pali Rohár : > > > > On Tuesday 19 July 2022 20:38:39 Heiko Thiery wrote: > > > Instead of hardcoding -ltinfo as the flags needed to build > > > kwboot, use pkg-config when available. > >

[PATCH] Provide more details of exactly how configuration signatures are calculated

2022-07-20 Thread Martin Bonner
I have just spent a week reverse-engineering this, so I thought I'd contribute the work back to the community diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index 61a72db3c7..61cdd55e40 100644 --- a/doc/uImage.FIT/signature.txt +++ b/doc/uImage.FIT/signature.txt @@ -382,6

Re: [PATCH] Provide more details of exactly how configuration signatures are calculated

2022-07-20 Thread Martin Bonner
There are a couple of uncertainties still remaining: - The "hashed-nodes" property is created by mkimage in image order. What happens if somebody manipulates a signed image to change the order? Does it make any difference? Do u-boot and fit_check_sign handle it in the same way? (My preference wo

Re: [PATCH v1] imx: romapi: fix spurious ampersand in address print

2022-07-20 Thread Michael Nazzareno Trimarchi
Hi On Wed, Jul 20, 2022 at 9:29 AM Francesco Dolcini wrote: > > From: Marcel Ziswiler > > Fix spurious ampersand in address print e.g. > > Find img info 0x&480331a0, size 855 > > Signed-off-by: Marcel Ziswiler > Signed-off-by: Francesco Dolcini > --- > arch/arm/mach-imx/spl_imx_romapi

Re: [PATCH v7 08/13] FWU: Add boot time checks as highlighted by the FWU specification

2022-07-20 Thread Ilias Apalodimas
Hi Sughosh, > > > + nimages = CONFIG_FWU_NUM_IMAGES_PER_BANK; > > + active_bank = mdata->active_index; > > + img_entry = &mdata->img_entry[0]; > > + for (i = 0; i < nimages; i++) { > > + img_bank_info = &img_entry[i].img_bank_info[active_bank]; > > +

Re: [RESEND v9 1/9] efi_loader: move udevice pointer into struct efi_object

2022-07-20 Thread Heinrich Schuchardt
On 7/20/22 07:23, Takahiro Akashi wrote: On Sun, Jul 17, 2022 at 01:23:41PM +0200, Heinrich Schuchardt wrote: On 7/17/22 10:09, Heinrich Schuchardt wrote: On 7/15/22 16:47, Masahisa Kojima wrote: This is a preparation patch to provide the unified method to access udevice pointer associated wit

Re: [PATCH 0/9] Add DM support for atmel NAND driver

2022-07-20 Thread Tudor.Ambarus
On 7/19/22 13:46, Balamanikandan Gunasundar wrote: > This patch series adds support for NAND flash. The series adds DM > support and replaces the existing NAND driver NAND_ATMEL. The drivers > are ported from Linux based on the work done by Boris brezillon If you're going to resubmit, it would be

Re: [RESEND v9 1/9] efi_loader: move udevice pointer into struct efi_object

2022-07-20 Thread Heinrich Schuchardt
On 7/20/22 01:56, Takahiro Akashi wrote: On Sun, Jul 17, 2022 at 10:09:42AM +0200, Heinrich Schuchardt wrote: On 7/15/22 16:47, Masahisa Kojima wrote: This is a preparation patch to provide the unified method to access udevice pointer associated with the block io device. The EFI handles of both

Re: [PATCH 1/9] nand: atmel: Add DM based NAND driver

2022-07-20 Thread Michael Nazzareno Trimarchi
Hi On Tue, Jul 19, 2022 at 12:46 PM Balamanikandan Gunasundar wrote: > > This implementation is ported from the rework done by Boris Brezillon > in Linux. The driver is tested in sam9x60ek, sama5d3_xplained, > sam9x75eb and sama7g54-ddr3-eb. > The reference implementation come from linux-?? , pl

Re: [PATCH v5 19/23] FWU: synquacer: Add FWU Multi bank update support for DeveloperBox

2022-07-20 Thread Ilias Apalodimas
Hi Jassi, On Tue, 19 Jul 2022 at 18:27, Jassi Brar wrote: > > On Mon, 18 Jul 2022 at 16:00, Tom Rini wrote: > > On Mon, Jul 18, 2022 at 10:31:56AM -0500, Jassi Brar wrote: > > > > > > > > > > > > > > > > > + > > > > > > > > > +#define PLAT_METADATA_OFFSET 0x51 > > > > > > > > > +#define PLAT

Re: [PATCH 0/9] Add DM support for atmel NAND driver

2022-07-20 Thread Michael Nazzareno Trimarchi
Hi On Wed, Jul 20, 2022 at 9:40 AM wrote: > > On 7/19/22 13:46, Balamanikandan Gunasundar wrote: > > This patch series adds support for NAND flash. The series adds DM > > support and replaces the existing NAND driver NAND_ATMEL. The drivers > > are ported from Linux based on the work done by Bori

Re: [PATCH] Provide more details of exactly how configuration signatures are calculated

2022-07-20 Thread Martin Bonner
OK. I've just realized there is an important warning missing from this (if you verify a configuration signature outside u-boot, you _must_ verify the hashes for the kernel, fdt, and ramdisk images match too). What is the protocol for handling that? Submit a new patch with title "[Patch v2] ..."?

Re: u-boot and IPv6

2022-07-20 Thread Chris Packham
On Wed, 20 Jul 2022, 5:02 AM Dhananjay Phadke, wrote: > > > On Wed, 13 Jul 2022, Chris Packham wrote: > > > On Tue, Jul 12, 2022 at 7:40 PM Chris Packham > wrote: > >> > >> Hi Sean and Dhananjay, > >> > >> Adding U-Boot ML to the Cc > >> > > [...] > > >> > >> IPv6 support is definitely something

[PATCH 1/3] reset: zynqmp: Add reset driver support for versal

2022-07-20 Thread Ashok Reddy Soma
From: T Karthik Reddy Add support for versal platform by adding "xlnx,versal-reset" compatible string in zynqmp-reset driver. Reset numbering schema for versal is not same as zynqmp, so nr_reset and reset_id are set to zero. In case of assert/dessert, required device reset id is sent from respect

[PATCH 0/3] Add reset driver support for ZynqMP and Versal

2022-07-20 Thread Ashok Reddy Soma
This patch series does following things - Add reset driver support for Versal platform - Enable reset driver support for ZynqMP and Versal platforms Ashok Reddy Soma (1): arm64: zynqmp: Enable reset driver Michal Simek (1): arm64: versal: Enable reset driver for versal T Karthik Reddy (1):

[PATCH 2/3] arm64: versal: Enable reset driver for versal

2022-07-20 Thread Ashok Reddy Soma
From: Michal Simek Add CONFIG_DM_RESET and CONFIG_RESET_ZYNQMP configs in versal default configuration to enable support for reset driver for versal platform. Signed-off-by: Michal Simek Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- configs/xilinx_versal_virt_defconfig

[PATCH 3/3] arm64: zynqmp: Enable reset driver

2022-07-20 Thread Ashok Reddy Soma
Enable reset driver for ZynqMP platforms. This will enable us to reset the IP's using generic reset_assert and reset_deassert calls. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- configs/xilinx_zynqmp_virt_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/con

[PATCH] spi: cadence_ospi_versal: Reset ospi controller using reset driver api's

2022-07-20 Thread Ashok Reddy Soma
From: T Karthik Reddy Add a new function to reset the ospi controller. Use reset_assert, reset_deassert api's to reset the ospi controller. In mini U-Boot case as ZYNQMP_FIRMWARE config is disabled, reset the controller directly using register writes. Signed-off-by: T Karthik Reddy Signed-off-b

[PATCH v3 1/2] tools: mkeficapsule: use pkg-config to get -luuid and -lgnutls

2022-07-20 Thread Heiko Thiery
Instead of hardcoding -luuid -lgnutls as the flags needed to build mkeficapsule, use pkg-config when available. We gracefully fallback on the previous behavior of hardcoding -luuid -lgnutls if pkg-config is not available or fails with an error. Reviewed-by: Heinrich Schuchardt Signed-off-by: Hei

[PATCH v3 2/2] tools: kwboot: use pkg-config to get -ltinfo

2022-07-20 Thread Heiko Thiery
Instead of hardcoding -ltinfo as the flags needed to build kwboot, use pkg-config when available. We gracefully fallback on the previous behavior of hardcoding -ltinfo if pkg-config is not available or fails with an error. Reviewed-by: Pali Rohár Signed-off-by: Heiko Thiery --- v3: - remove cf

Reading GPIOs with DM_GPIO before device tree is loaded

2022-07-20 Thread Hugo Villeneuve
Hi, in board_early_init_f(), i call a custom function get_som_revision() to read some GPIOs that are used to determine the SOM revision. This function basically sets the iomux, and then uses gpio_request/gpio_direction_input/gpio_get_value functions to read the GPIOs. Then, this SOM revision inf

Booting from SPI-NAND

2022-07-20 Thread Thomas Marangoni
Hello, I have an Allwinner suniv f1c100s and trying to boot the device from SPI-NAND. Booting from SD-Cards works without problems. I'm using "sunxi-next" branch from "sunxi U-Boot Custodian Tree". The SPI-NAND device is detected with "mtd list", but when flashing u-boot with spl to the SPI-NAN

Re: [PATCH v3 1/2] tools: mkeficapsule: use pkg-config to get -luuid and -lgnutls

2022-07-20 Thread AKASHI Takahiro
On Wed, Jul 20, 2022 at 12:31:33PM +0200, Heiko Thiery wrote: > Instead of hardcoding -luuid -lgnutls as the flags needed to build > mkeficapsule, use pkg-config when available. > > We gracefully fallback on the previous behavior of hardcoding -luuid > -lgnutls if pkg-config is not available or fa

Re: Please pull u-boot-i2c

2022-07-20 Thread Tom Rini
On Tue, Jul 19, 2022 at 05:24:59PM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from: > > The following changes since commit 26f6f7fb5c0651d65afdee6d8ed36063606179a8: > > Merge branch '2022-07-14-migrate-wiki-to-sphinx' (2022-07-14 18:43:51 -0400) > > are available in the Git re

Re: [PULL] u-boot-usb/master

2022-07-20 Thread Tom Rini
On Tue, Jul 19, 2022 at 08:55:48PM +0200, Marek Vasut wrote: > The following changes since commit 26f6f7fb5c0651d65afdee6d8ed36063606179a8: > > Merge branch '2022-07-14-migrate-wiki-to-sphinx' (2022-07-14 18:43:51 > -0400) > > are available in the Git repository at: > > git://source.denx.de

Re: Please pull u-boot-ubi

2022-07-20 Thread Tom Rini
On Wed, Jul 20, 2022 at 09:02:41AM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from: > > The following changes since commit fc97ff2695d6d7fbea7d5fda7b080f405d6ee744: > > Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi (2022-07-19 > 10:52:15 -0400) > > are available

Re: Please pull u-boot-ubi

2022-07-20 Thread Heiko Schocher
Hello Tom, On 20.07.22 13:12, Tom Rini wrote: > On Wed, Jul 20, 2022 at 09:02:41AM +0200, Heiko Schocher wrote: >> Hello Tom, >> >> please pull from: >> >> The following changes since commit fc97ff2695d6d7fbea7d5fda7b080f405d6ee744: >> >> Merge https://source.denx.de/u-boot/custodians/u-boot-sun

Re: Please pull u-boot-ubi

2022-07-20 Thread Tom Rini
On Wed, Jul 20, 2022 at 01:36:10PM +0200, Heiko Schocher wrote: > Hello Tom, > > On 20.07.22 13:12, Tom Rini wrote: > > On Wed, Jul 20, 2022 at 09:02:41AM +0200, Heiko Schocher wrote: > >> Hello Tom, > >> > >> please pull from: > >> > >> The following changes since commit > >> fc97ff2695d6d7fbea7

[PATCH v7 0/7] tpm: rng: Move TPM RNG functionality to driver model

2022-07-20 Thread Sughosh Ganu
The TPM device provides the random number generator(RNG) functionality, whereby sending a command to the TPM device results in the TPM device responding with random bytes. There was a discussion on the mailing list earlier[1], where it was explained that platforms with a TPM device can install t

[PATCH v7 1/7] tpm: Export the TPM-version functions

2022-07-20 Thread Sughosh Ganu
From: Simon Glass These functions should really be available outside the TPM code, so that other callers can find out which version the TPM is. Rename them to have a tpm_ prefix() and add them to the header file. Signed-off-by: Simon Glass --- Changes since V6: None include/tpm_api.h | 10 +++

[PATCH v7 2/7] tpm: rng: Add driver model interface for TPM RNG device

2022-07-20 Thread Sughosh Ganu
The TPM device has a builtin random number generator(RNG) functionality. Expose the RNG functions of the TPM device to the driver model so that they can be used by the EFI_RNG_PROTOCOL if the protocol is installed. Also change the function arguments and return type of the random number functions t

[PATCH v7 3/7] tpm: Add the RNG child device

2022-07-20 Thread Sughosh Ganu
The TPM device comes with the random number generator(RNG) functionality which is built into the TPM device. Add logic to add the RNG child device in the TPM uclass post probe callback. The RNG device can then be used to pass a set of random bytes to the linux kernel, need for address space random

[PATCH v7 4/7] cmd: rng: Add support for selecting RNG device

2022-07-20 Thread Sughosh Ganu
The 'rng' u-boot command is used for printing a select number of random bytes on the console. Currently, the RNG device from which the random bytes are read is fixed. However, a platform can have multiple RNG devices, one example being qemu, which has a virtio RNG device and the RNG pseudo device t

[PATCH v7 5/7] cmd: rng: Use a statically allocated array for random bytes

2022-07-20 Thread Sughosh Ganu
Use a statically allocated buffer on stack instead of using malloc for reading the random bytes. Using a local array is faster than allocating heap memory on every initiation of the command. Signed-off-by: Sughosh Ganu --- Changes since V6: None cmd/rng.c | 17 +++-- 1 file changed,

[PATCH v7 6/7] doc: rng: Add documentation for the rng command

2022-07-20 Thread Sughosh Ganu
Add a usage document for the 'rng' u-boot command. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since V6: None doc/usage/cmd/rng.rst | 26 ++ doc/usage/index.rst | 1 + 2 files changed, 27 insertions(+) create mode

[PATCH v7 7/7] test: rng: Add a UT testcase for the rng command

2022-07-20 Thread Sughosh Ganu
The 'rng' command dumps a number of random bytes on the console. Add a set of tests for the 'rng' command. The test function performs basic sanity testing of the command. Since a unit test is being added for the command, enable it by default in the sandbox platforms. Signed-off-by: Sughosh Ganu

Re: [PATCH] Improve Window's build documentation

2022-07-20 Thread Bin Meng
On Wed, Jul 20, 2022 at 2:50 PM Martin Bonner wrote: > > I have recently build the u-boot tools on Windows and ran into > difficulties. This patch to the documentation would have avoided > those difficulties. Contentious points: > > * While I have run the document through a rst previewer, I have

[PATCH 00/53] NXP-IMX pending patches

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan This is to resend the pending patches [1,2,3] for Stefano to pick Patchset base: fc97ff2695d6d7fbea7d5fda7b080f405d6ee744 (origin/master, origin/HEAD, imx/master) Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi Rebased patches to avoid buid break. 1. https://patchwo

[PATCH 02/53] arm: makefile: cleanup mach-imx usage

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan All the SoCs use mach-imx has CONFIG_MACH_IMX selected, so the macro could be the gate to build arch/arm/mach-imx to simplify the rules. Signed-off-by: Peng Fan --- arch/arm/Makefile | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/arm/Makef

[PATCH 03/53] imx: Change USB boot device type

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li The SPL SDP is configured as BOOT_DEVICE_BOARD, so when booting from USB, change its type to BOOT_DEVICE_BOARD, so we can use SDP. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/

[PATCH 01/53] spl: imx8mm: enlarge SPL_MAX_SIZE

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan The CONFIG_SPL_MAX_SIZE could be 0x27000 for i.MX8MM when SPL_TEXT_BASE set to 0x7E1000. The DDR firmware max uses 96KB, there is a 4KB padding header before SPL_TEXT_BASE, so the SPL MAX SIZE is `256KB - 96KB - 4KB`. Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam --- comm

[PATCH 04/53] imx: spl: Allow iMX7/8/8M to overwrite spl_board_boot_device

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Move the default mapping of spl_boot_device to weak function of spl_board_boot_device. So that every board of iMX7/8/8M can overwrite this function to implement specific mapping. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 80 +

[PATCH 05/53] imx: simplify dependency with SPL_BOOTROM_SUPPORT

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan For SoCs support ROM API, CONFIG_SPL_BOOTROM_SUPPORT is needed, so use this macro to guard the code to avoid extend the list. And drop the guard with structure definition, there is no need. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 2 -- arch/arm/m

[PATCH 07/53] imx: move get_boot_device to common file

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan i.MX8MN/P/ULP supports ROM API, they have almost same get_boot_device implementation, so move to a common file. And when support i.MX9, no need to include the other function copy. Since sys_proto.h is included in imx_romapi.c, there will be build warning for i.MX8M because wdog_re

[PATCH 06/53] imx: move get_boot_device to common header

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Most i.MX implements get_boot_device, move it to common header to simplify code Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sys_proto.h| 1 - arch/arm/include/asm/arch-imx8m/sys_proto.h | 1 - arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 1 - arch/arm/inc

[PATCH 10/53] fsl_lpuart: add i.MX9 support

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan i.MX9 shares same register layout as i.MX7ULP, so add the i.MX9 define here. Signed-off-by: Peng Fan --- include/fsl_lpuart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fsl_lpuart.h b/include/fsl_lpuart.h index 18e5cc15d61..93c996b764b 100644 ---

[PATCH 11/53] gpio: pca953x: support pcal6524

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Support pcal6524 IO expander driver Signed-off-by: Peng Fan --- drivers/gpio/pca953x_gpio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index e98e1e56dbc..4654f9e0989 100644 --- a/drivers/gpio/pca953x_gpio.c +

[PATCH 15/53] spl: Use SPL_FIT_IMAGE_TINY for iMX9

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Select SPL_FIT_IMAGE_TINY for i.MX9 Signed-off-by: Peng Fan --- common/spl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 0867d18f290..8f7715f403c 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig

[PATCH 09/53] imx: add basic i.MX9 support

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX9 Kconfig and basic files for the new SoC Signed-off-by: Peng Fan --- arch/arm/Kconfig| 11 + arch/arm/include/asm/arch-imx/cpu.h | 2 + arch/arm/include/asm/arch-imx9/clock.h | 0 arch/arm/include/asm/arch-imx9/gpio.h

[PATCH 16/53] imx: imx9: Add function to initialize timer

2022-07-20 Thread Peng Fan (OSS)
From: Jian Li Add timer_init to update ARM arch timer with correct frequency from system counter and enable system counter. Signed-off-by: Jian Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 1 + arch/arm/mach-imx/imx9/soc.c | 19 +++

[PATCH 12/53] imx: pinctrl: add pinctrl and pinfunc file for i.MX93

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add the pinctrl driver and pinfunc header file to support iMX93 Signed-off-by: Peng Fan --- arch/arm/dts/imx93-pinfunc.h| 625 drivers/pinctrl/nxp/Kconfig | 13 + drivers/pinctrl/nxp/Makefile| 1 + drivers/pinctrl/nxp/pinct

[PATCH 17/53] imx: imx9: disable watchdog

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Disable all 3 wdogs on AIPS2 and unmask SRC reset trigger for WDOG3-5 Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 4 ++ arch/arm/mach-imx/imx9/soc.c | 45 ++- 2 files changed, 48 insertions(+), 1 de

[PATCH 20/53] misc: s4mu: Support iMX93 with Sentinel MU

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Support iMX93 communicate with Sentinel Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 30 +++ drivers/misc/sentinel/s4mu.c | 1 + 2 files changed, 31 insertions(+) diff --git a/arch/arm/include/asm/arch-imx9/imx-regs.h

[PATCH 14/53] mmc: fsl_esdhc_imx: Support i.MX9

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX9 for fsl_esdhc_imx driver Signed-off-by: Peng Fan --- drivers/mmc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 6ff00a7cbd3..6276593b3e7 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/

[PATCH 19/53] misc: imx: S400_API: Move S400 MU and API to a common place

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Since iMX9 uses S401 which shares the API with iMX8ULP. So move S400 MU driver and API to a common place and selected by CONFIG_IMX_SENTINEL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/Kconfig | 4 + arch/arm/include/asm/global_data.h

[PATCH 21/53] misc: S400_API: Update release RDC API

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li To support more RDC instances on i.MX93, update API to latest definition. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 2 +- drivers/misc/sentinel/s400_api.c | 21 + 2 files changed, 18 insertions(+), 5 de

[PATCH 29/53] misc: fuse: support to access fuse on i.MX93

2022-07-20 Thread Peng Fan (OSS)
From: Alice Guo i.MX93 fuse can be accessed through FSB and s400-api. Add mapping tables for i.MX93. The offset address of FSB accessing OTP shadow registers is different between i.MX8ULP and i.MX93, so use macro to define the offset address instead of hardcode. Signed-off-by: Alice Guo Signed-

[PATCH 24/53] imx: imx9: Add TRDC driver for TRDC init

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Add TRDC driver to iMX9. The TRDC init splits to two phases: 1. Early init phase will release TRDC from Sentinel and open write permission to the memory where SPL image runs. Sentinel will set the memory to RX only after ROM authentication for the OEM closed part. 2. Init pha

[PATCH 23/53] misc: s400_api: introduce ahab_release_m33_trout

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Introduce Sentinel API ahab_release_m33_trout to make sure sentinel release M33 trout and make sure M33 could boot. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 1 + drivers/misc/sentinel/s400_api.c | 25 2 files change

[PATCH 26/53] imx: imx9: Get the chip revision through S400 API

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Update the get chip revision methond to use S400 API, also record other information like lifecycle and UID to global data. Signed-off-by: Peng Fan --- arch/arm/include/asm/global_data.h | 3 ++ arch/arm/mach-imx/imx9/soc.c | 49 +- 2 files chan

[PATCH 30/53] misc: fuse: update the code for accessing fuse of i.MX93

2022-07-20 Thread Peng Fan (OSS)
From: Alice Guo Sentinel have read access of OTP shadow register 0-511, and fsb have read access of shadow 0-51/312-511. Reviewed-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/sentinel/fuse.c | 86 +++- 1 file changed, 74 insertio

[PATCH 31/53] imx: imx9: Add gpio registers structure

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Add GPIO registers structure for iMX93, so that we can enable lpgpio driver Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/Kconfig | 1 + arch/arm/include/asm/arch-imx9/gpio.h | 20 2 files changed, 21 insertions(+) diff --git

[PATCH 32/53] imx: imx9: Add MIX power init

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add power init of MEDIAMIX, MLMIX and DDRMIX. And clear isolation of MIPI DSI/CSI, USBPHY after the power up. SPL should call the power init in its boot sequence before accessing above three MIX and USB. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 1

[PATCH 27/53] misc: S400_API: Rename imx8ulp_s400_msg to sentinel_msg

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Use more generic name for S40x msg structure Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 2 +- arch/arm/mach-imx/imx8ulp/rdc.c | 2 +- arch/arm/mach-imx/imx9/trdc.c| 2 +- drivers/misc/sentinel/s400_api.c

[PATCH 22/53] misc: S400_API: New API for FW status and chip info

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add new API to get sentinel FW status and SoC chip info Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 13 + drivers/misc/sentinel/s400_api.c | 61 2 files changed, 74 insertions(+) diff --git a/

[PATCH 25/53] imx: imx9: Add AHAB boot support

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Add AHAB driver for iMX9 to do authentication by calling sentinel API Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 5 + arch/arm/mach-imx/imx9/Makefile | 1 + arch/arm/mach-imx/imx9/ahab.c | 346 3 files

[PATCH 28/53] misc: imx8ulp: move fuse.c from imx8ulp to sentinel

2022-07-20 Thread Peng Fan (OSS)
From: Alice Guo The i.MX93 platform wants to reuse drivers/misc/imx8ulp/fuse.c. Moving fuse.c from the folder imx8ulp to sentinel makes it can be used by other platforms. Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/Makefile | 2 -- drivers/misc/imx8ul

[PATCH 33/53] imx: imx9: Add M33 release prepare function

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan To support on-demand booting M33 image from A core. SPL needs to follow M33 kick up sequence to release M33 firstly, then set M33 CPUWAIT signal. ATF will clear CPUWAIT to kick M33 to run. The prepare function also works around the M33 TCM ECC issue by clean the TCM. Also enable s

[PATCH 36/53] imx: imx9: clock: Add DDR clock support

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Implement the DDR driver clock interfaces for set DDR rate and bypass DDR PLL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 3 ++ arch/arm/mach-imx/imx9/clock.c | 41 ++ 2 files changed, 44 insertions(+)

[PATCH 37/53] ddr: imx: Add i.MX9 DDR controller driver

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Since i.MX9 uses same DDR PHY with i.MX8M, split the DDRPHY to a common directory under imx, then use dedicated ddr controller driver for each iMX9 and iMX8M. The DDRPHY registers are space compressed, so it needs conversion to access the DDRPHY address. Introduce a common PHY addres

[PATCH 34/53] imx: imx9: Support booting m33 from Acore

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add bootaux command to support on-demand booting M33 from u-boot. It kicks M33 via ATF by "bootaux 0x201e 0" Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Makefile | 4 + arch/arm/mach-imx/imx9/imx_bootaux.c | 133 +++ arch/arm/mach-imx/im

[PATCH 45/53] net: dwc_eth_qos: move i.MX code out

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Move i.MX code to a standalone file to make it easy for adding new platform support Reviewed-by: Ramon Fried Signed-off-by: Peng Fan --- drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c | 92 -- drivers/net/dwc_eth_qos.h | 2 +

[PATCH 39/53] arm: dts: Add i.MX93 SoC DTSi file

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add the DTSi file and DT header files for i.MX93 SoC Signed-off-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- arch/arm/dts/imx93.dtsi | 688 include/dt-bindings/clock/imx93-clock.h | 203 +++ include/dt-bindings/pow

[PATCH 38/53] ddr: imx9: enable Performance monitor counter

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Add Kconfig for enabling reference events counter in DDRC performance monitor by default Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx9/Kconfig| 6 ++ drivers/ddr/imx/imx9/ddr_init.c | 4 2 files changed, 10 insertions(+) diff --git a/drivers/d

[PATCH 48/53] board: freescale: imx93_evk: support ethernet

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add ethernet support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 7 + board/freescale/imx93_evk/imx93_evk.c | 32 +++ configs/imx93_11x11_evk_defconfig | 9 +++ 3 files changed, 48 insertions(+) diff --git a/

[PATCH 51/53] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN after we update the binman dtsi to drop 0x8000/0x4000 length for the firmware. And that could save binary size for many KBs. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan Reviewed-by: Alper

[PATCH 35/53] imx: imx9: Support multiple env storages at runtime

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Select env storages according to boot device at runtime Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c

[PATCH 43/53] net: dwc_eth_qos: fix build break when CLK not enabled

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan When CONFIG_CLK is not enabled, there will be buil break: "error: ‘eqos’ undeclared (first use in this function)" Take eqos definition out the CONFIG_CLK ifdef. Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 41/53] imx: imx93_evk: Set ARM clock to 1.7Ghz

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Set ARM clock to OD frequency 1.7Ghz, since we have set PMIC VDD_SOC to Overdrive voltage 0.9V Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 4 +++- arch/arm/mach-imx/imx9/clock.c | 9 + board/freescale/imx93_evk/spl.c

[PATCH 44/53] net: dwc_eth_qos: public some functions

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Move macros and structures to header file and make some functions public, so that could used by other files, this is to prepare split platform specific config to one file. Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 280 +- drivers

[PATCH 49/53] tools: image: support i.MX93

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Support build i.MX93 container image with mkimage Signed-off-by: Peng Fan --- include/imx8image.h | 15 +++-- tools/imx8image.c | 79 + 2 files changed, 78 insertions(+), 16 deletions(-) diff --git a/include/imx8image.h b/includ

[PATCH 46/53] net: eqos: add function to get phy node and address

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Since new atheros PHY driver needs to access its PHY node through phy device, we have to assign the phy node in ethernet controller driver. Otherwise the PHY driver will fail to get some nodes and properties. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos

[PATCH 18/53] imx: imx9: support romapi

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan i.MX9 shares same ROM API with i.MX8ULP, so make the i.MX8ULP the function prototype common and usable by i.MX9. Also include mmc env functions that use ROM API. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 4 -- arch/arm/include/asm/mach-imx/sys

[PATCH 52/53] arm: dts: imx8m: shrink ddr firmware size to actual file size

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan After we switch to use BINMAN_SYMBOLS, there is no need to pad the file size to 0x8000 and 0x4000. After we use BINMAN_SYMBOLS, the u-boot-spl-ddr.bin shrink about 36KB with i.MX8MP-EVK. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan Reviewed-by: Alper Nebi Y

[PATCH 13/53] imx: imx9: Add CCM and clock API support

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add clock API to support CCM root clock and LPCG setting Set the CCM AUTHEN register to allow non-secure world to set root clock and lpcg. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/ccm_regs.h | 266 arch/arm/include/asm/arch-imx9/c

[PATCH 08/53] imx: add USB2_BOOT type

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add USB2_BOOT type for i.MX8ULP and i.MX9 Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + arch/arm/mach-imx/imx_romapi.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/boot_mode.h b/arc

[PATCH 53/53] imx: imx8mm-icore: migrate to use BINMAN

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Use BINMAN instead of imx specific packing method. Signed-off-by: Peng Fan Reviewed-by: Alper Nebi Yasak --- arch/arm/mach-imx/imx8m/Kconfig | 1 + arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg | 10 +- configs/imx8mm-icore-mx8mm-ctouch2_defconfig

[PATCH 40/53] imx: imx93_evk: Add basic board support

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add basic board codes and defconfig for i.MX93 11x11 EVK board. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/dts/Makefile |3 + arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 157 +++ arch/arm/dts/imx93-11x11-evk.dts | 527 +++

Re: [RESEND v9 7/9] bootmenu: add removable media entries

2022-07-20 Thread Ilias Apalodimas
Hi Kojima-san [...] > + > + /* add non-existent boot option */ > + for (i = 0; i < count; i++) { > + u32 boot_index; > + u16 var_name[9]; > + > + if (!opt[i].exist) { > + ret = eficonfig_get_unused_bootoption(var_name, >

Re: [PATCH v5 19/23] FWU: synquacer: Add FWU Multi bank update support for DeveloperBox

2022-07-20 Thread Jassi Brar
On Wed, Jul 20, 2022 at 2:54 AM Ilias Apalodimas wrote: > > Hi Jassi, > > On Tue, 19 Jul 2022 at 18:27, Jassi Brar wrote: > > > > On Mon, 18 Jul 2022 at 16:00, Tom Rini wrote: > > > On Mon, Jul 18, 2022 at 10:31:56AM -0500, Jassi Brar wrote: > > > > > > > > > > > > > > > > > > > > + > > > > > >

Error: unrecognized opcode on riscv64

2022-07-20 Thread Alex
Attempting to compile the latest master code for qemu (virt) and the unmatched shows the following error: arch/riscv/cpu/cpu.c: Assembler messages: arch/riscv/cpu/cpu.c:96: Error: unrecognized opcode `csrs sstatus,a5' arch/riscv/cpu/cpu.c:97: Error: unrecognized opcode `csrw 0x003,0' Any

[PATCH v3 0/3] Support various block interfaces for avb and bcb

2022-07-20 Thread Andrii Chepurnyi
Hello. Originally bcb and avb utilities implementation relay on mmc block devices. This patch series adds an optional interface parameter to those utilities, which gives the ability to use bcb and avb on various block devices. The patch set was tested using xenguest_arm64 based board and pvblock i

[PATCH v3 1/3] cmd: bcb: introduce optional interface parameter to bcb

2022-07-20 Thread Andrii Chepurnyi
From: Andrii Chepurnyi From: Andrii Chepurnyi Originally, bcb implementation relay on mmc block devices. The interface parameter will give the ability to use bcb with various block devices by choosing the exact interface type. By default (if no interface parameter is provided) mmc interface wil

[PATCH v2] Improve Windows build documentation

2022-07-20 Thread Martin Bonner
I have recently build the u-boot tools on Windows and ran into difficulties. This patch to the documentation would have avoided those difficulties. Contentious points: * While I have run the document through a rst previewer, I haven't run the full test suite. I know, I know, everyone thinks _th

[PATCH v3 2/3] cmd: avb: introduce optional interface parameter to avb init

2022-07-20 Thread Andrii Chepurnyi
From: Andrii Chepurnyi From: Andrii Chepurnyi Originally, avb implementation relay on mmc block devices. The interface parameter will give the ability to use avb with various block devices by choosing the exact interface type. By default (if no interface parameter is provided) mmc interface wil

[PATCH v3 3/3] cmd: avb: remove mmc naming from generic block code

2022-07-20 Thread Andrii Chepurnyi
From: Andrii Chepurnyi From: Andrii Chepurnyi Part of avb code uses mmc notation, but in fact it uses generic block functions. Signed-off-by: Andrii Chepurnyi --- common/avb_verify.c | 52 ++-- include/avb_verify.h | 13 +-- 2 files changed, 3

Re: Reading GPIOs with DM_GPIO before device tree is loaded

2022-07-20 Thread Simon Glass
Hi Hugo, On Wed, 20 Jul 2022 at 04:54, Hugo Villeneuve wrote: > > Hi, > in board_early_init_f(), i call a custom function get_som_revision() to read > some GPIOs that are used to determine the SOM revision. This function > basically sets the iomux, and then uses > gpio_request/gpio_direction_i

Re: [PATCH] Provide more details of exactly how configuration signatures are calculated

2022-07-20 Thread Simon Glass
Hi Martin, On Wed, 20 Jul 2022 at 02:46, Martin Bonner wrote: > > OK. I've just realized there is an important warning missing from > this (if you verify a configuration signature outside u-boot, you > _must_ verify the hashes for the kernel, fdt, and ramdisk images match > too). What is the pr

Re: [PATCH] console: Add option to keep it silent until env is loaded

2022-07-20 Thread Simon Glass
Hi Harald, On Mon, 18 Jul 2022 at 09:08, Harald Seiler wrote: > > Hi Simon, > > On Wed, 2022-07-13 at 09:28 -0600, Simon Glass wrote: > > Hi Harald, > > > > On Tue, 12 Jul 2022 at 05:58, Harald Seiler wrote: > > > > > > Hi Simon, > > > > > > On Tue, 2022-07-12 at 04:58 -0600, Simon Glass wrote:

  1   2   >