Re: [PATCH 1/1] efi_loader: remove efi_disk_is_system_part()

2022-03-04 Thread AKASHI Takahiro
Heinrich, On Sat, Mar 05, 2022 at 12:51:00AM +0100, Heinrich Schuchardt wrote: > The block IO protocol may be installed on any handle. We should make > no assumption about the structure the handle points to. > > efi_disk_is_system_part() makes an illegal widening cast from a handle > to a struct

[PATCH 1/1] efi_loader: remove efi_disk_is_system_part()

2022-03-04 Thread Heinrich Schuchardt
The block IO protocol may be installed on any handle. We should make no assumption about the structure the handle points to. efi_disk_is_system_part() makes an illegal widening cast from a handle to a struct efi_disk_obj. Remove the function. As side effect capsules might be read from non-ESP

[PATCH] usb: gadget: ci: Make various ops const

2022-03-04 Thread Adam Ford
ci_udc_ops and ci_ep_ops do not change their operations. Mark them as const. Signed-off-by: Adam Ford diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index 542684c1c3..d9a89a17b2 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -94,11 +94,11

[PATCH v2] binman: support mkimage separate files

2022-03-04 Thread Peter Geis
mkimage has the ability to process two files at the same time. This is necessary for rk356x support as both TPL and SPL need to be hashed individually in the resulting header. It also eases support for rkspi as mkimage handles everything for making the requisite file for maskrom loading. Add a

Submitting patches for QorIQ components

2022-03-04 Thread Sean Anderson
Hi all, Where should patches for QorIQ components [1] go? I have some patches for meta-qoriq [2] and dce [3], but I can't figure out where to send them to. There is no mailing list in the READMEs, and there is no way to send pull requests like on the former github repos [4]. I tried emailing the

Re: [PATCH 00/17] arm: semihosting: Cleanups and new features

2022-03-04 Thread Tom Rini
On Fri, Mar 04, 2022 at 12:19:27PM -0500, Sean Anderson wrote: > Hi Andre, > > On 3/4/22 6:47 AM, Andre Przywara wrote: > > On Fri, 4 Mar 2022 02:06:03 +0100 > > Linus Walleij wrote: > > > > Hi, > > > > Linus, thanks for the heads up, much appreciated! > > > >> On Thu, Mar 3, 2022 at 9:44 PM

Re: [PATCH 9/9] Convert CONFIG_CHIP_SELECTS_PER_CTRL to Kconfig

2022-03-04 Thread Tom Rini
On Fri, Feb 25, 2022 at 11:19:53AM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_CHIP_SELECTS_PER_CTRL > > Cc: Alison Wang > Cc: Pramod Kumar > Cc: Priyanka Jain > Cc: Rajesh Bhagat > Cc: Vladimir Oltean > Signed-off-by: Tom Rini Applied to u-boot/next,

Re: [PATCH 8/9] Convert CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS to Kconfig

2022-03-04 Thread Tom Rini
On Fri, Feb 25, 2022 at 11:19:52AM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS > > Signed-off-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 7/9] net: Remove CONFIG_BOOTP_DHCP_REQUEST_DELAY

2022-03-04 Thread Tom Rini
On Fri, Feb 25, 2022 at 11:19:51AM -0500, Tom Rini wrote: > This option is not in use anywhere and the documentation implies it's > for some very old and unlikely to be seen currently issues. Rather than > update the code so the CONFIG symbol could be easily in Kconfig, remove > the code. > >

Re: [PATCH 6/9] Convert CONFIG_BOOTP_MAY_FAIL et al to Kconfig

2022-03-04 Thread Tom Rini
On Fri, Feb 25, 2022 at 11:19:50AM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_BOOTP_MAY_FAIL >CONFIG_BOOTP_VENDOREX >CONFIG_BOOTP_BOOTFILESIZE >CONFIG_BOOTP_NISDOMAIN >CONFIG_BOOTP_TIMEOFFSET > > Cc: Ramon Fried > Signed-off-by: Tom Rini

Re: [PATCH 5/9] powerpc: P1010RDB: Move CONFIG_BOOTMODE out of CONFIG namespace

2022-03-04 Thread Tom Rini
On Fri, Feb 25, 2022 at 11:19:49AM -0500, Tom Rini wrote: > This slight environment modification shouldn't be in the CONFIG > namespace, change it. > > Signed-off-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 4/9] Convert CONFIG_BOOTFILE to Kconfig

2022-03-04 Thread Tom Rini
On Fri, Feb 25, 2022 at 11:19:48AM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_BOOTFILE > > Signed-off-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/9] Convert CONFIG_BOARD_POSTCLK_INIT to Kconfig

2022-03-04 Thread Tom Rini
On Fri, Feb 25, 2022 at 11:19:47AM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_BOARD_POSTCLK_INIT > > Signed-off-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/9] Convert CONFIG_BOARD_ECC_SUPPORT to Kconfig

2022-03-04 Thread Tom Rini
On Fri, Feb 25, 2022 at 11:19:46AM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_BOARD_ECC_SUPPORT > > Signed-off-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/9] Convert CONFIG_BIOSEMU to Kconfig

2022-03-04 Thread Tom Rini
On Fri, Feb 25, 2022 at 11:19:45AM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_BIOSEMU > > Cc: Simon Glass > Signed-off-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 4/4] Convert CONFIG_BOARD_COMMON to Kconfig

2022-03-04 Thread Tom Rini
On Wed, Feb 23, 2022 at 12:28:17PM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_BOARD_COMMON > > Signed-off-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/4] arm: exynos: Move BL1/2 SPI flash defines to their user, drop CONFIG

2022-03-04 Thread Tom Rini
On Wed, Feb 23, 2022 at 12:28:16PM -0500, Tom Rini wrote: > These particular values are not configurable and today we always set > CONFIG_SECURE_BL1_ONLY. Move these to where they're used in the code, > and drop from the CONFIG namespace. > > Cc: Minkyu Kang > Cc: Jaehoon Chung >

Re: [PATCH 2/4] Convert CONFIG_BTB to Kconfig

2022-03-04 Thread Tom Rini
On Wed, Feb 23, 2022 at 12:28:15PM -0500, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_BTB > > Signed-off-by: Tom Rini Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/4] powerpc: Remove unused MPC8540/60ADS code

2022-03-04 Thread Tom Rini
On Wed, Feb 23, 2022 at 12:28:14PM -0500, Tom Rini wrote: > Remove some code, primarily CPM2 related, that is now unused since the > removal of MPC8540/60ADS. > > Fixes 3913191c8a6b ("powerpc: mpc8540ads: mpc8560ads: Drop support for > MPC8540/60ADS") > Signed-off-by: Tom Rini > Reviewed-by:

Re: Please pull u-boot-marvell/master

2022-03-04 Thread Tom Rini
On Fri, Mar 04, 2022 at 01:27:20PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the next batch of Marvell MVEBU / kwboot related fixes: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [RFC] [PATCH] binman: support mkimage split files

2022-03-04 Thread Peter Geis
On Thu, Mar 3, 2022 at 4:17 PM Alper Nebi Yasak wrote: > > On 01/03/2022 05:48, Peter Geis wrote: > > Good Evening, > > > > I successfully tested your v2 patch series to create a bootable sdcard > > image out of the box for rockpro64-rk3399. > > Unfortunately, rk356x and rk3399-spi modes are

Re: [PATCH] usb: dwc3: Add support for usb3-phy PHY configuration

2022-03-04 Thread Marek Vasut
On 3/4/22 05:42, Marek Vasut wrote: On 3/3/22 09:40, Bin Meng wrote: On Wed, Feb 23, 2022 at 10:56 PM Michal Simek wrote: When usb3-phy label is found, PHY driver is called and serdes line is initialized. This is preparation for serdes/psgtr driver to configure GT lines based on description

Re: [PATCH 00/17] arm: semihosting: Cleanups and new features

2022-03-04 Thread Sean Anderson
Hi Andre, On 3/4/22 6:47 AM, Andre Przywara wrote: > On Fri, 4 Mar 2022 02:06:03 +0100 > Linus Walleij wrote: > > Hi, > > Linus, thanks for the heads up, much appreciated! > >> On Thu, Mar 3, 2022 at 9:44 PM Sean Anderson wrote: >> >> > The main device affected by these changes is

[PATCH 10/11] vexpress64: pick DRAM size from DT

2022-03-04 Thread Andre Przywara
So far the DRAM size for both the Juno and the FVP model were hardcoded in our config header file. For the Juno this is fine, as all models have 8 GiB of DRAM, but the DRAM size can be configured on the model command line. Drop the fixed DRAM size setup, instead look up the size in the device

[PATCH 11/11] vexpress64: Add ARMv8R-64 board variant

2022-03-04 Thread Andre Przywara
From: Peter Hoyes The ARMv8-R64 architecture introduces optional VMSA (paging based MMU) support in the EL1/0 translation regime, which makes that part mostly compatible to ARMv8-A. Add a new board variant to describe the "BASE-R64" FVP model, which inherits a lot from the existing v8-A FVP

[PATCH 09/11] vexpress64: generalise page table generation

2022-03-04 Thread Andre Przywara
In preparation for the ARMv8-R64 FVP support, which has DRAM mapped at 0x0, generalise the page table generation, by using symbolic names for the address ranges instead of fixed numbers. We already define the base of the DRAM and MMIO regions, so just use those symbols in the page table

[PATCH 07/11] vexpress64: fvp: add distro_boot support

2022-03-04 Thread Andre Przywara
So far the FVP model just supports booting through semihosting, so by loading files from the host the model is running on. This allows for quick booting of new kernels (or replacing DTBs), but prevents more featureful boots like using UEFI. Enable the distro_boot feature, and provide a list of

[PATCH 06/11] vexpress64: move hardware setting from defconfig to Kconfig

2022-03-04 Thread Andre Przywara
The defconfigs for the Arm Juno board and the FVP model are quite large, setting a lot of platform-fixed variables like SYS_TEXT_BASE. As those values are not really a user choice, let's provide default values for them in our Kconfig file, so a lot of cruft can be removed from the defconfig files.

[PATCH 08/11] vexpress64: defconfigs: allow default commands

2022-03-04 Thread Andre Przywara
Right now the defconfig the Arm VExpress64 boards disables quite some standard commands, for apparently no good reasons (as image size is hardly a concern here). Remove the lines explicitly disabling those features, leaving it to the U-Boot default settings to set them. Signed-off-by: Andre

[PATCH 05/11] vexpress64: config header: unify environment definition

2022-03-04 Thread Andre Przywara
The definition of the standard environment variables (kernel_addr_r and friends) has been improved lately for the FVP model, but the Juno board is still using some custom scheme. Since we need to extend this to a third board soon, let's unify the definition: - Define the Juno addresses in the same

[PATCH 04/11] vexpress64: fvp: enable OF_CONTROL

2022-03-04 Thread Andre Przywara
The FVP base model is relying on a DT for Linux operation, so there is no reason we would need to rely on hardcoded information for U-Boot. Letting U-Boot use a DT will open up the usage of actual peripherals, beyond the support for semihosting only. Enable OF_CONTROL in the Kconfig, and use the

[PATCH 02/11] vexpress64: Kconfig: move board definitions out of arch/arm

2022-03-04 Thread Andre Przywara
At the moment we define three "VExpress64" boards in arch/arm/Kconfig, plus have a second Kconfig file in board/armltd/Kconfig. One of those three boards is actually bogus (TARGET_VEXPRESS64_AEMV8A), that stanza looks like being forgotten in a previous cleanup. To remove the clutter from the

[PATCH 03/11] arm: dts: Add Arm FVP Fastmodel RevC .dts files from Linux

2022-03-04 Thread Andre Przywara
The Arm Fixed Virtual Platform (FVP) is a software model for an artificial ARM platform, it is available for free on the Arm website[1]. Add the devicetree files for the latest RevC version, as we will need them to enable OF_CONTROL for the vexpress_aemv8a_semi board. This is a verbatim copy of

[PATCH 01/11] vexpress64: fvp: Fix automatic boot

2022-03-04 Thread Andre Przywara
Commit 90f262a6951f ("vexpress64: Clean up BASE_FVP boot configuration") cleaned up the usage of default address variables, but missed to update the address for the kernel in the FVP's bootcmd definition. Change ${kernel_addr} to read ${kernel_addr_r} to bring back the automated boot for the

[PATCH 00/11] vexpress64: OF_CONTROL and ARMv8-R64 support

2022-03-04 Thread Andre Przywara
Hi, this series is the continuation of last year's effort to support the new Armv8-R64 application profile. This led to a significant rework of the existing fastmodel (FVP) support, to both upgrade it to newest U-Boot standards (OF_CONTROL and distro_boot support), but also to generalise the

[PATCH] sunxi: fix build when CONFIG_UART0_PORT_F is selected

2022-03-04 Thread Icenowy Zheng
Currently CONFIG_UART0_PORT_F will forbid the build of sunxi-mmc driver, which leads calls to it in board/sunxi/board.c a undefined reference. Guard that code in #ifndef to fix build. Signed-off-by: Icenowy Zheng --- board/sunxi/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 09/13] event: Convert misc_init_f() to use events

2022-03-04 Thread Simon Glass
This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too.

[PATCH v2 11/13] event: Add a command

2022-03-04 Thread Simon Glass
Add a command to show the available events. Signed-off-by: Simon Glass --- (no changes since v1) MAINTAINERS | 1 + cmd/Kconfig | 8 cmd/Makefile| 1 + cmd/event.c | 27 +++ include/event.h | 3 +++ 5 files changed, 40 insertions(+) create

[PATCH v2 13/13] event: Add documentation

2022-03-04 Thread Simon Glass
Add documentation for events, including the event command. Signed-off-by: Simon Glass --- (no changes since v1) doc/develop/event.rst | 66 +++ doc/develop/index.rst | 1 + doc/usage/event.rst | 49

[PATCH v2 12/13] event: Add a script to decode the event-spy list

2022-03-04 Thread Simon Glass
For debugging and dicoverability it is useful to be able to see a list of each event spy in a U-Boot ELF file. Add a script which shows this, along with the event type and the source location. This makes events a little easier to use than weak functions, for example. Add a basic sandbox test as

[PATCH v2 10/13] event: Convert arch_cpu_init_dm() to use events

2022-03-04 Thread Simon Glass
Instead of a special function, send an event after driver model is inited and adjust the boards which use this function. Signed-off-by: Simon Glass --- Changes in v2: - Convert arch/arm/mach-imx/imx8/cpu.c also - Add DM_EVENT to ARCH_IMX8 too - Tidy up galileo defconfig and rename

[PATCH v2 08/13] event: Add events for device probe/remove

2022-03-04 Thread Simon Glass
Generate events when devices are probed or removed, allowing hooks to be added for these situations. This is controlled by the DM_EVENT config option. Signed-off-by: Simon Glass --- (no changes since v1) common/event.c | 6 ++ drivers/core/Kconfig | 10 ++

[PATCH v2 06/13] event: Add a simple test

2022-03-04 Thread Simon Glass
Add a test for event registration and activation. Signed-off-by: Simon Glass --- (no changes since v1) MAINTAINERS | 1 + test/common/Makefile | 1 + test/common/event.c | 47 test/test-main.c | 4 4 files changed, 53

[PATCH v2 07/13] event: Set up the event system on start-up

2022-03-04 Thread Simon Glass
Call event_init() before relocation to get the event system running. Signed-off-by: Simon Glass --- (no changes since v1) common/board_f.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/board_f.c b/common/board_f.c index a68760092a..e36bdbc988 100644 --- a/common/board_f.c +++

[PATCH v2 05/13] event: Add basic support for events

2022-03-04 Thread Simon Glass
Add a way to create and dispatch events without needing to allocate memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be created. Use a linker list for static events, which we can use to replace functions like arch_cpu_init_f(). Allow an EVENT_DEBUG option which makes it easier

[PATCH v2 04/13] binman: Expand elf support a little

2022-03-04 Thread Simon Glass
Allow finding a symbol by its address. Also export the function to get the file offset of a particular address, so it can be used by a script to be added. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/elf.py | 58 +++-- 1 file

[PATCH v2 03/13] sandbox: start: Sort the header files

2022-03-04 Thread Simon Glass
These header files don't follow the correct order. Fix this. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/start.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 13b0731ec3..12aace9a20

[PATCH v2 02/13] Makefile: Allow LTO to be disabled for a build

2022-03-04 Thread Simon Glass
LTO (Link-Time Optimisation) is an very useful feature which can significantly reduce the size of U-Boot binaries. So far it has been made available for selected ARM boards and sandbox. However, incremental builds are much slower when LTO is used. For example, an incremental build of sandbox

[PATCH v2 01/13] phy: nop-phy: Fix phy reset if no reset-gpio defined

2022-03-04 Thread Simon Glass
From: Tim Harvey Ensure there is a valid reset-gpio defined before using it. Fixes: f9852acdce02 ("phy: nop-phy: Fix enabling reset") Cc: Adam Ford Signed-off-by: Tim Harvey Signed-off-by: Simon Glass --- (no changes since v1) drivers/phy/nop-phy.c | 12 +++- 1 file changed, 7

[PATCH v2 00/13] event: Provide support for events to connect subsystems

2022-03-04 Thread Simon Glass
It is a common need in U-Boot to have one subsystem notify another when something happens. An example is reading a partition table when a new block device is set up. It is also common to add weak functions and 'hook' functions to modify how U-Boot works. See for example ft_board_setup() and the

Re: [PATCH] usb: dwc3: Add support to reset usb ULPI phy

2022-03-04 Thread Michal Simek
On 3/4/22 15:45, Bin Meng wrote: On Fri, Mar 4, 2022 at 7:36 PM T Karthik Reddy wrote: Hi Bin Meng, -Original Message- From: Bin Meng Sent: Thursday, March 3, 2022 2:18 PM To: Michal Simek Cc: U-Boot Mailing List ; git ; T Karthik Reddy ; Angus Ainslie ; Kunihiko Hayashi ;

Re: [PATCH] usb: dwc3: Add support to reset usb ULPI phy

2022-03-04 Thread Bin Meng
On Fri, Mar 4, 2022 at 7:36 PM T Karthik Reddy wrote: > > Hi Bin Meng, > > > -Original Message- > > From: Bin Meng > > Sent: Thursday, March 3, 2022 2:18 PM > > To: Michal Simek > > Cc: U-Boot Mailing List ; git ; T > > Karthik Reddy ; Angus Ainslie ; > > Kunihiko Hayashi ; Marek Vasut

Re: [PATCH v5 3/4] ARM: dts: at91: sama5d2: add TCB node

2022-03-04 Thread Clément Léger
Le Fri, 4 Mar 2022 14:31:08 +, a écrit : > On 3/4/22 1:05 PM, Clément Léger wrote: > > Add the device-tree node to describe the TCB timer. > > > > Signed-off-by: Clément Léger > > --- > > arch/arm/dts/sama5d2.dtsi | 17 + > > 1 file changed, 17 insertions(+) > > > >

Re: [PATCH v2 08/10] tpm: Add the RNG child device

2022-03-04 Thread Ilias Apalodimas
Hi, [...] > > > > > > I think it is easier to just protect the child addition functions > > > under CONFIG_TPM rather than create SPL_RNG and TPL_RNG symbols. We > > > don't have any requirement for generating random numbers in the SPL > > > and TPL stages. I feel that creating new symbols just

Re: [PATCH v2 07/10] tpm: rng: Move the TPM RNG functionality to driver model

2022-03-04 Thread Sughosh Ganu
hi Simon, On Fri, 4 Mar 2022 at 08:08, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 3 Mar 2022 at 05:07, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Thu, 3 Mar 2022 at 09:17, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Tue, 1 Mar 2022 at 21:36, Sughosh Ganu wrote: > > > >

Re: [PATCH v2 08/10] tpm: Add the RNG child device

2022-03-04 Thread Sughosh Ganu
hi Simon, On Fri, 4 Mar 2022 at 08:07, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 3 Mar 2022 at 05:11, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Thu, 3 Mar 2022 at 09:18, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Tue, 1 Mar 2022 at 21:53, Sughosh Ganu wrote: > > > >

[PATCH v3 6/8] cmd: rng: Add support for selecting RNG device

2022-03-04 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

[PATCH v3 8/8] test: rng: Add a UT testcase for the rng command

2022-03-04 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

[PATCH v3 4/8] tpm: Add the RNG child device

2022-03-04 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

[PATCH v3 7/8] doc: rng: Add documentation for the rng command

2022-03-04 Thread Sughosh Ganu
Add a usage document for the 'rng' u-boot command. Signed-off-by: Sughosh Ganu --- Changes since V2: None doc/usage/index.rst | 1 + doc/usage/rng.rst | 25 + 2 files changed, 26 insertions(+) create mode 100644 doc/usage/rng.rst diff --git a/doc/usage/index.rst

[PATCH v3 5/8] qemu: arm: Remove platform specific function to get RNG device

2022-03-04 Thread Sughosh Ganu
The Qemu platform has a function defined to get the random number generator(RNG) device. However, the RNG device can be obtained simply by searching for a device belonging to the RNG uclass. Remove the superfluous platform function defined for the Qemu platform for getting the RNG device.

[PATCH v3 3/8] tpm: rng: Add driver model interface for TPM RNG device

2022-03-04 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

[PATCH v3 2/8] tpm: Fix the return type of tpm_startup

2022-03-04 Thread Sughosh Ganu
The tpm_startup function returns negative values for error conditions. Fix the return type of the function to a signed int instead of a u32. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass --- Changes since V2: None include/tpm_api.h | 2 +- lib/tpm_api.c | 3 ++- 2 files changed, 3

[PATCH v3 1/8] tpm: rng: Change tpm_get_random to return an int

2022-03-04 Thread Sughosh Ganu
The tpm random number generation functionality will be moved to the driver model. With that, the tpm_get_random function will call the common driver model api instead of separate functions for tpmv1 and tpmv2. Return an int instead of a u32 to comply with the return value of the driver model

[PATCH v3 0/8] tpm: rng: Move TPM RNG functionality to driver model

2022-03-04 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

[PATCH v4 6/6] bsh: imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-03-04 Thread Ariel D'Alessandro
Introduce BSH SystemMaster (SMM) S2 board family, which consists of: iMX8MN SMM S2 and iMX8MN SMM S2 PRO boards. Add support for iMX8MN BSH SMM S2 board: - 256 MiB DDR3 RAM - 512MiB Nand - USBOTG1 peripheral - fastboot. - 100Mbit Ethernet Add support for iMX8MN BSH SMM S2 PRO board: - 512 MiB

[PATCH v4 5/6] net: phy: nxp-tja11xx: Add NXP TJA11xx PHY driver

2022-03-04 Thread Ariel D'Alessandro
From: Michael Trimarchi Add driver for the NXP TJA1100 and TJA1101 PHYs. These PHYs are special BroadRReach 100BaseT1 PHYs used in automotive. Signed-off-by: Michael Trimarchi Signed-off-by: Ariel D'Alessandro Reviewed-by: Ramon Fried --- drivers/net/phy/Kconfig | 5 +

[PATCH v4 4/6] net: phy: Add phy_modify() accessor

2022-03-04 Thread Ariel D'Alessandro
Add read-modify-write unlocked accessor for accessing a PHY register. Signed-off-by: Ariel D'Alessandro Reviewed-by: Ramon Fried --- drivers/net/phy/phy.c | 20 include/phy.h | 2 ++ 2 files changed, 22 insertions(+) diff --git a/drivers/net/phy/phy.c

[PATCH v4 3/6] iopoll: Extend read_poll_timeout macro to support variable parameters

2022-03-04 Thread Ariel D'Alessandro
This macro currently supports only one parameter. Based on Linux iopoll, let's extend read_poll_timeout common API to allow multiple variable parameters. Signed-off-by: Ariel D'Alessandro --- arch/arm/mach-socfpga/reset_manager_s10.c | 20 +++- drivers/mmc/rockchip_sdhci.c

[PATCH v4 2/6] phy: nxp-c45-tja11xx: Rename functions to be c45 tja11xx specific

2022-03-04 Thread Ariel D'Alessandro
This driver supports NXP C45 TJA11XX PHYs, but there're also other NXP TJA11XX PHYs. Let's rename functions in this driver to be c45 variant specific, so further drivers can be introduced adding support for NXP TJA11XX PHYs. Signed-off-by: Ariel D'Alessandro ---

[PATCH v4 1/6] imx8m: add regs used by GPMI

2022-03-04 Thread Ariel D'Alessandro
From: Michael Trimarchi Add regs used by GPMI Signed-off-by: Michael Trimarchi Signed-off-by: Ariel D'Alessandro Reviewed-by: Fabio Estevam --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h

[PATCH v4 0/6] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-03-04 Thread Ariel D'Alessandro
Introduce BSH SystemMaster (SMM) S2 board family, which consists of: iMX8MN SMM S2 and iMX8MN SMM S2 PRO boards. This patchset also adds support for NXP TJA11xx Ethernet PHYs. Changes in v4: * Add new Reviewed-by tags to patches. * Set atf-bl31 blob type in device tree binman configuration.

Re: [PATCH v2] arm: mach-k3: am6_init: Use CONFIG_TI_I2C_BOARD_DETECT

2022-03-04 Thread Christian Gmeiner
Am Do., 24. Feb. 2022 um 08:21 Uhr schrieb Christian Gmeiner : > > Hi > > Am Di., 15. Feb. 2022 um 07:48 Uhr schrieb Christian Gmeiner > : > > > > We only want to call do_board_detect() if CONFIG_TI_I2C_BOARD_DETECT > > is set. Same as done for am64. > > > > This makes it possible to add a custom

[PATCH v1] arm: dts: imx8mn_var_som: Set atf-bl31 blob entry type

2022-03-04 Thread Ariel D'Alessandro
Configure binman ATF blob entry type to use the path from the BL31 environment variable, if defined. Signed-off-by: Ariel D'Alessandro --- arch/arm/dts/imx8mn-var-som-symphony-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2] usb: dwc3: Add support to reset usb ULPI phy

2022-03-04 Thread Michal Simek
From: T Karthik Reddy When usb PHY initialization is done, the PHY need to be reset. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- Changes in v2: - Remove EBUSY checking which is not needed. Reported by Bin drivers/usb/dwc3/Kconfig| 2 +-

Please pull u-boot-marvell/master

2022-03-04 Thread Stefan Roese
Hi Tom, please pull the next batch of Marvell MVEBU / kwboot related fixes: - pci_mvebu: Minor cleanup (Pali) - mvebu: turris_omnia: Enable ext4 write support (Marek) - a37xx: Misc fixes in PCI and pinctrl (Pali & Marek) -

Re: [PATCH u-boot-marvell 00/10] tools: kwboot: Fix boot and terminal mode

2022-03-04 Thread Stefan Roese
On 3/2/22 11:49, Pali Rohár wrote: This patch series fixes sending boot and debug patterns by doing it in separate thread. Entering BootROM debug mode via '-d' option is now more stable and working fine on Armada 385. There is also support for backspace key and updated documentation. Stefan and

Re: [PATCH] ARM: mvebu: x530: clearfog: Add ODT configuration

2022-03-04 Thread Stefan Roese
On 3/1/22 01:53, Chris Packham wrote: Commit 369e532691e0 ("ddr: marvell: a38x: allow board specific ODT configuration") added the odt_config member to struct mv_ddr_topology_map ahead of the clk_enable and ck_delay members. This means that any boards that configured either of clk_enable or

Re: [PATCH u-boot-marvell] arm64: a37xx: pinctrl: Fix PWM pins indexes

2022-03-04 Thread Stefan Roese
On 2/28/22 15:59, Marek Behún wrote: From: Marek Behún Commit 5534fb4f4833 ("arm64: a37xx: pinctrl: Correct PWM pins definitions") introduced bogus definitions os PWM pins: all 4 pins have index 11, instead of having indexes 11, 12, 13, 14. Fix this. Signed-off-by: Marek Behún Applied to

Re: [PATCH] drivers: rtc: fix null pointer access in armada38x_rtc_reset

2022-03-04 Thread Stefan Roese
On 2/28/22 10:31, fber...@outlook.fr wrote: From: Francois Berder Replace null pointer by pointer to device registers when calling armada38x_rtc_write. Signed-off-by: Francois Berder Applied to u-boot-marvell/master Thanks, Stefan --- drivers/rtc/armada38x.c | 2 +- 1 file changed,

Re: [PATCH u-boot-marvell] arm: a37xx: pci: Fix a3700_fdt_fix_pcie_regions() function again

2022-03-04 Thread Stefan Roese
On 2/23/22 13:52, Marek Behún wrote: From: Pali Rohár The a3700_fdt_fix_pcie_regions() function still computes nonsense. It computes the fixup offset from the PCI address taken from the first row of the "ranges" array, which means that: - PCI address must equal CPU address (otherwise the

Re: [PATCH u-boot-marvell] arm: mvebu: turris_omnia: Enable ext4 write support in defconfig

2022-03-04 Thread Stefan Roese
On 2/18/22 17:46, Marek Behún wrote: From: Marek Behún Enable ext4 write support in Turris Omnia's defconfig. Some users find it useful. Signed-off-by: Marek Behún Applied to u-boot-marvell/master Thanks, Stefan --- configs/turris_omnia_defconfig | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH 2/2] pci: pci_mvebu: Cleanup macro names

2022-03-04 Thread Stefan Roese
On 2/18/22 15:18, Stefan Roese wrote: On 2/18/22 12:25, Pali Rohár wrote: Use "MVPCIE_" prefix instead of generic "PCIE_" prefix for pci_mvebu.c specific macros. Define offset macros for Root Port registers and use standard register macros from pci.h when accessing Root Port registers.

Re: [PATCH 1/2] pci: pci_mvebu: Remove unused SELECT and lane_mask

2022-03-04 Thread Stefan Roese
On 2/18/22 15:17, Stefan Roese wrote: On 2/18/22 12:25, Pali Rohár wrote: Macro SELECT() is unused and struct mvebu_pcie field lane_mask is unused too. Remove them. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Applied to u-boot-marvell/master Thanks, Stefan Thanks, Stefan ---

Re: [PATCH] tools: kwboot: Fix quitting terminal

2022-03-04 Thread Stefan Roese
On 2/18/22 12:24, Pali Rohár wrote: Sometimes kwboot after quitting terminal prints error message: terminal: Bad address This is caused by trying to call write() syscall with count of (size_t)-1 bytes. When quit sequence is split into more read() calls then number of input bytes (nin) at

[PATCH 2/2] board: ti: j721e: evm.c: Fix the probing of in Sierra SerDes0

2022-03-04 Thread Aswath Govindraju
Initialization and power on operations of links have been moved under the link device in the Sierra SerDes driver. Also, the UCLASS of sierra_phy_provider has been changed to UCLASS_MISC. Therefore, fix the probing of SerDes0 instance accordingly. Signed-off-by: Aswath Govindraju Reviewed-by:

[PATCH 1/2] phy: cadence: Sierra: Move the link operations from serdes phy to link device

2022-03-04 Thread Aswath Govindraju
In commit 6f46c7441a9f ("phy: cadence: Sierra: Add a UCLASS_PHY device for links"), a separate udevice of type UCLASS_PHY was created for each link. Therefore, move the corresponding link operations under the link device. Also, change the uclass of sierra phy to UCLASS_MISC as it is no longer the

[PATCH 0/2] J721E: Fix DFU in U-Boot

2022-03-04 Thread Aswath Govindraju
The following series of patches fix USB DFU in U-Boot for J721e. Aswath Govindraju (2): phy: cadence: Sierra: Move the link operations from serdes phy to link device board: ti: j721e: evm.c: Fix the probing of in Sierra SerDes0 board/ti/j721e/evm.c | 28 ++-

Re: [PATCH 00/17] arm: semihosting: Cleanups and new features

2022-03-04 Thread Andre Przywara
On Fri, 4 Mar 2022 02:06:03 +0100 Linus Walleij wrote: Hi, Linus, thanks for the heads up, much appreciated! > On Thu, Mar 3, 2022 at 9:44 PM Sean Anderson wrote: > > > The main device affected by these changes is vexpress64, so I'd appreciate > > if Linus (or anyone else) could try booting.

RE: [PATCH] usb: dwc3: Add support to reset usb ULPI phy

2022-03-04 Thread T Karthik Reddy
Hi Bin Meng, > -Original Message- > From: Bin Meng > Sent: Thursday, March 3, 2022 2:18 PM > To: Michal Simek > Cc: U-Boot Mailing List ; git ; T > Karthik Reddy ; Angus Ainslie ; > Kunihiko Hayashi ; Marek Vasut > ; Michael Walle ; Priyanka Jain > ; Simon Glass > Subject: Re: [PATCH]

[PATCH v5 3/4] ARM: dts: at91: sama5d2: add TCB node

2022-03-04 Thread Clément Léger
Add the device-tree node to describe the TCB timer. Signed-off-by: Clément Léger --- arch/arm/dts/sama5d2.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi index dee68dc022..9360c0008c 100644 ---

[PATCH v5 4/4] configs: sama5d2: enable option CONFIG_ATMEL_TCB_TIMER

2022-03-04 Thread Clément Léger
This will allow using the TCB timer instead of the PIT one when running under OP-TEE. Signed-off-by: Clément Léger --- configs/sama5d2_icp_mmc_defconfig| 1 + configs/sama5d2_ptc_ek_mmc_defconfig | 1 + configs/sama5d2_ptc_ek_nandflash_defconfig | 1 +

[PATCH v5 2/4] ARM: dts: at91: sama5d2: add AIC node

2022-03-04 Thread Clément Léger
When using interrupts property, a global interrupt controller needs to be added to avoid warnings when compiling device-tree: arch/arm/dts/at91-sama5d2_xplained.dtb: Warning (interrupts_property): /ahb/apb/timer@f800c000: Missing interrupt-parent Add AIC node as the sama5d2 global interrupt

[PATCH v5 1/4] timer: atmel_tcb_timer: add atmel_tcb driver

2022-03-04 Thread Clément Léger
Add a driver for the timer counter block that can be found on sama5d2. This driver will be used when booting under OP-TEE since the pit timer which is part of the SYSC is secured. Channel 1 & 2 are configured to be chained together which allows to have a 64bits counter. Signed-off-by: Clément

[PATCH v5 0/4] add TCB driver for sama5d2

2022-03-04 Thread Clément Léger
When booting under OP-TEE, the SYSC is secured which means the PIT is also not accessible by non-secure world. The TCB 0 however is always available for non-secure world and thus can be used. This series add a TCB driver and enables it in sama5d2 configs. --- Changes in v5: - Fixed missing

Re: [PATCH 1/2] x86: Add an enum name for the GNVS firmware type

2022-03-04 Thread Bin Meng
Hi Simon, On Fri, Mar 4, 2022 at 10:38 AM Simon Glass wrote: > > Hi Bin, > > On Thu, 3 Mar 2022 at 01:49, Bin Meng wrote: > > > > Hi Simon, > > > > On Tue, Mar 1, 2022 at 6:18 AM Simon Glass wrote: > > > > > > This enum is currently anonymous. Add a name so it can be used in the > > > code. >

Re: [PATCH v4 2/3] ARM: dts: at91: sama5d2: add TCB node

2022-03-04 Thread Clément Léger
Le Fri, 4 Mar 2022 10:46:45 +0100, Clément Léger a écrit : > Le Fri, 4 Mar 2022 10:45:21 +0100, > Clément Léger a écrit : > > > Add the device-tree node to describe the TCB timer. > > > > Signed-off-by: Clément Léger > > --- > > arch/arm/dts/sama5d2.dtsi | 16 > > 1 file

Re: [PATCH v4 2/3] ARM: dts: at91: sama5d2: add TCB node

2022-03-04 Thread Clément Léger
Le Fri, 4 Mar 2022 10:45:21 +0100, Clément Léger a écrit : > Add the device-tree node to describe the TCB timer. > > Signed-off-by: Clément Léger > --- > arch/arm/dts/sama5d2.dtsi | 16 > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm/dts/sama5d2.dtsi

[PATCH v4 2/3] ARM: dts: at91: sama5d2: add TCB node

2022-03-04 Thread Clément Léger
Add the device-tree node to describe the TCB timer. Signed-off-by: Clément Léger --- arch/arm/dts/sama5d2.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi index 038cd73c03..54f3dd4c62 100644 ---

[PATCH v4 3/3] configs: sama5d2: enable option CONFIG_ATMEL_TCB_TIMER

2022-03-04 Thread Clément Léger
This will allow using the TCB timer instead of the PIT one when running under OP-TEE. Signed-off-by: Clément Léger --- configs/sama5d2_icp_mmc_defconfig| 1 + configs/sama5d2_ptc_ek_mmc_defconfig | 1 + configs/sama5d2_ptc_ek_nandflash_defconfig | 1 +

  1   2   >