RE: [RFC] Create arch/Kconfig.nxp

2022-06-15 Thread Peng Fan
Tom, I agree to use Kconfig.nxp. thanks for the work. Thanks, Peng. From: Tom Rini Sent: 2022年6月16日 2:00 To: u-boot@lists.denx.de; Priyanka Jain ; Peng Fan ; Stefano Babic Subject: [RFC] Create arch/Kconfig.nxp Hey all, As I migrate assorted CONFIG options over to Kconfig, a common

Re: [PATCH 08/13] Convert CONFIG_SAMSUNG_ONENAND to Kconfig

2022-06-15 Thread Jaehoon Chung
On 6/16/22 01:03, Tom Rini wrote: > This converts the following to Kconfig: >CONFIG_SAMSUNG_ONENAND > > Signed-off-by: Tom Rini Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > configs/s5p_goni_defconfig | 1 + > configs/s5pc210_universal_defconfig | 1 + >

Re: [PATCH v5 11/23] mkeficapsule: Add support for generating empty capsules

2022-06-15 Thread Takahiro Akashi
Sughosh, On Wed, Jun 15, 2022 at 04:19:56PM +0530, Sughosh Ganu wrote: > On Wed, 15 Jun 2022 at 10:41, Takahiro Akashi > wrote: > > > > On Thu, Jun 09, 2022 at 05:59:58PM +0530, Sughosh Ganu wrote: > > > The Dependable Boot specification[1] describes the structure of the > > > firmware accept

Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-15 Thread AKASHI Takahiro
On Wed, Jun 15, 2022 at 04:02:54PM +0200, Heinrich Schuchardt wrote: > On 6/15/22 08:34, AKASHI Takahiro wrote: > > On Wed, Jun 15, 2022 at 08:27:26AM +0200, Heinrich Schuchardt wrote: > > > > > > > > > On 6/15/22 08:16, AKASHI Takahiro wrote: > > > > On Tue, Jun 14, 2022 at 08:02:03AM +0200,

Re: [PATCH v2 0/5] Add ARMv8 CE sha1/sha256 support

2022-06-15 Thread Loic Poulain
Hi Folks, Any comments on this series? Anyone else to CC? Thanks, Loic On Wed, 1 Jun 2022 at 20:26, Loic Poulain wrote: > > This series adds support for the SHA-1 and SHA-256 Secure Hash Algorithm > for CPUs that have support of the ARM v8 Crypto Extensions. It Improves > speed of integrity &

Re: [PATCH 07/13] Rename CONFIG_PWM to CONFIG_PWM_S5P and move to Kconfig

2022-06-15 Thread Jaehoon Chung
On 6/16/22 01:03, Tom Rini wrote: > We rename the S5P specific "CONFIG_PWM" to CONFIG_PWM_S5P and move it to > Kconfig. Given the usage of CONFIG_PWM_NX, we have that select this new > symbol. > > Cc: Jaehoon Chung > Cc: Minkyu Kang > Signed-off-by: Tom Rini Reviewed-by: Jaehoon Chung Best

[GIT PULL] Please pull u-boot-pmic master

2022-06-15 Thread Jaehoon Chung
Dear Tom, Please pull u-boot-pmic master into u-boot master branch. If there is a problem, let me know, plz Best Regards, Jaehoon Chung CI: https://source.denx.de/u-boot/custodians/u-boot-pmic/-/pipelines/12303 The following changes since commit 92a8bc6b419f548230f10a924db2b3ef10a5edad:

[GIT PULL] Please pull u-boot-mmc master

2022-06-15 Thread Jaehoon Chung
Dear Tom, Please pull u-boot-mmc master into u-boot master branch. If there is any problem, let me know, plz. Sorry for late. Best Regards, Jaehoon Chung CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/12319 The following changes since commit

[PATCH V4 2/2] nvmem: add driver handling U-Boot environment variables

2022-06-15 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot stores its setup as environment variables. It's a list of key-value pairs stored on flash device with a custom header. This commit adds an NVMEM driver that: 1. Provides NVMEM access to environment vars binary data 2. Extracts variables as NVMEM cells Current Linux's

[PATCH V4 1/2] mtd: allow getting MTD device associated with a specific DT node

2022-06-15 Thread Rafał Miłecki
From: Rafał Miłecki MTD subsystem API allows interacting with MTD devices (e.g. reading, writing, handling bad blocks). So far a random driver could get MTD device only by its name (get_mtd_device_nm()). This change allows getting them also by a DT node. This API is required for drivers

Re: [PATCH V3 2/2] nvmem: add driver handling U-Boot environment variables

2022-06-15 Thread Rafał Miłecki
On 14.06.2022 08:45, Ahmad Fatoum wrote: + if (err && !mtd_is_bitflip(err)) { + dev_err(dev, "Failed to read from mtd: %d\n", err); Nitpick: %pe My "err" variable in int, not a pointer (I don't use PTR_ERR()). +static int u_boot_env_add_cells(struct u_boot_env *priv,

[RFC] Create arch/Kconfig.nxp

2022-06-15 Thread Tom Rini
Hey all, As I migrate assorted CONFIG options over to Kconfig, a common problem I run in to is that between m68k, PowerPC and ARM (both Layerscape and sometimes i.MX) there are options that fit under more than one architecture but also don't have a good place to go. For example, I just ran in to

[PATCH v2] configs: stm32mp: cleanup the stm32mp15 file

2022-06-15 Thread Patrick Delaunay
Remove STM32_SYSRAM_END and clean the comments in stm32mp15_common.h file after moving some CONFIG to Kconfig: CONFIG_SYS_CBSIZE, CONFIG_SPL_MAX_FOOTPRINT, CONFIG_SYS_SPL_MALLOC_START and CONFIG_SYS_SPL_MALLOC_SIZE. Signed-off-by: Patrick Delaunay --- Changes in v2: - remove the define

Re: [PATCH] configs: stm32mp: cleanup the stm32mp15 file

2022-06-15 Thread Patrick DELAUNAY
Hi, On 6/15/22 17:48, Patrick Delaunay wrote: Clean the comments in stm32mp15_common.h file after move CONFIG_ to Kconfig: - CONFIG_SYS_CBSIZE - CONFIG_SYS_SPL_MALLOC_START and CONFIG_SYS_SPL_MALLOC_SIZE Signed-off-by: Patrick Delaunay --- include/configs/stm32mp15_common.h | 7 +-- 1

Re: [PATCH v3 0/9] spl: Use common function for loading/parsing images

2022-06-15 Thread Tom Rini
On Thu, May 05, 2022 at 04:16:46PM -0400, Sean Anderson wrote: > This series adds support for loading all image types (Legacy, FIT (with > and without LOAD_FIT_FULL), and i.MX) to the MMC, SPI, NOR, NET, FAT, > and EXT load methods. It does this by introducing a helper function > which handles

Re: [PATCH 2/2] rockchip: rk3399: enable spl-fifo-mode for sdmmc only when needed

2022-06-15 Thread Xavier Drudis Ferran
El Tue, Jun 14, 2022 at 11:16:42AM -0700, Jerome Forissier deia: > Oops, that should rather be: > > +#if (CONFIG_SPL_LOAD_FIT_IMAGE_BUFFER_SIZE == 0) > I tested with this change, not that my opinion counts much, but anyway: Reviewed-by: Xavier Drudis Ferran Tested-by: Xavier Drudis Ferran

Re: [PATCH 6/6] ARM: dts: stm32: Add DHCOR based DRC Compact board

2022-06-15 Thread Patrick DELAUNAY
Hi, On 6/13/22 11:55, Marek Vasut wrote: Add DT for DH DRC Compact unit, which is a universal controller device. The system has two ethernet ports, one CAN, RS485 and RS232, USB, uSD card slot, eMMC and SDIO Wi-Fi. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay ---

Re: [PATCH 5/6] ARM: dts: stm32: Add alternate pinmux for SPI2 pins

2022-06-15 Thread Patrick DELAUNAY
Hi, On 6/13/22 11:55, Marek Vasut wrote: Add another mux option for SPI2 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/stm32mp15-pinctrl.dtsi | 15 +++ 1 file changed, 15 insertions(+)

Re: [PATCH 4/6] ARM: dts: stm32: Add alternate pinmux for CAN1 pins

2022-06-15 Thread Patrick DELAUNAY
Hi, On 6/13/22 11:55, Marek Vasut wrote: Add another mux option for CAN1 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/stm32mp15-pinctrl.dtsi | 20 1 file changed, 20 insertions(+)

Re: [PATCH 3/6] ARM: dts: stm32: Add alternate pinmux for UART5 pins

2022-06-15 Thread Patrick DELAUNAY
Hi, On 6/13/22 11:55, Marek Vasut wrote: Add another mux option for UART5 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/stm32mp15-pinctrl.dtsi | 13 + 1 file changed, 13 insertions(+)

Re: [PATCH 2/6] ARM: dts: stm32: Add alternate pinmux for UART4 pins

2022-06-15 Thread Patrick DELAUNAY
Hi, On 6/13/22 11:55, Marek Vasut wrote: Add another mux option for UART4 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/stm32mp15-pinctrl.dtsi | 30 + 1 file changed, 30

Re: [PATCH 1/6] ARM: dts: stm32: Add alternate pinmux for UART3 pins

2022-06-15 Thread Patrick DELAUNAY
Hi, On 6/13/22 11:55, Marek Vasut wrote: Add another mux option for UART3 pins, this is used on DRC Compact board. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- arch/arm/dts/stm32mp15-pinctrl.dtsi | 41 + 1 file changed, 41

[PATCH 13/13] Convert CONFIG_SYS_DDR_RAW_TIMING to Kconfig

2022-06-15 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_DDR_RAW_TIMING Signed-off-by: Tom Rini --- README | 6 -- configs/P1010RDB-PA_36BIT_NAND_defconfig | 1 + configs/P1010RDB-PA_36BIT_NOR_defconfig | 1 +

[PATCH 12/13] Convert CONFIG_SYS_SPD_BUS_NUM to Kconfig

2022-06-15 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_SPD_BUS_NUM Signed-off-by: Tom Rini --- README | 5 - configs/P1010RDB-PA_36BIT_NAND_defconfig | 1 + configs/P1010RDB-PA_36BIT_NOR_defconfig | 1 +

[PATCH 07/13] Rename CONFIG_PWM to CONFIG_PWM_S5P and move to Kconfig

2022-06-15 Thread Tom Rini
We rename the S5P specific "CONFIG_PWM" to CONFIG_PWM_S5P and move it to Kconfig. Given the usage of CONFIG_PWM_NX, we have that select this new symbol. Cc: Jaehoon Chung Cc: Minkyu Kang Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/s5p-common/Makefile | 3 +-- board/friendlyarm/Kconfig

[PATCH 11/13] Convert CONFIG_DP_DDR_DIMM_SLOTS_PER_CTLR to Kconfig

2022-06-15 Thread Tom Rini
This converts the following to Kconfig: CONFIG_DP_DDR_DIMM_SLOTS_PER_CTLR Signed-off-by: Tom Rini --- arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 5 + include/configs/ls2080aqds.h | 3 --- include/configs/ls2080ardb.h | 3 --- 3 files changed, 5 insertions(+), 6

[PATCH 10/13] Convert CONFIG_USB_GADGET_DWC2_OTG_PHY to Kconfig

2022-06-15 Thread Tom Rini
This converts the following to Kconfig: CONFIG_USB_GADGET_DWC2_OTG_PHY Signed-off-by: Tom Rini --- configs/odroid_defconfig| 1 + configs/origen_defconfig| 1 + configs/s5p_goni_defconfig | 1 + configs/s5pc210_universal_defconfig | 1 +

[PATCH 09/13] Convert CONFIG_USE_ONENAND_BOARD_INIT to Kconfig

2022-06-15 Thread Tom Rini
This converts the following to Kconfig: CONFIG_USE_ONENAND_BOARD_INIT Signed-off-by: Tom Rini --- cmd/Kconfig | 4 configs/igep00x0_defconfig | 1 + configs/s5p_goni_defconfig | 1 + configs/smdkc100_defconfig | 1 +

[PATCH 08/13] Convert CONFIG_SAMSUNG_ONENAND to Kconfig

2022-06-15 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SAMSUNG_ONENAND Signed-off-by: Tom Rini --- configs/s5p_goni_defconfig | 1 + configs/s5pc210_universal_defconfig | 1 + configs/smdkc100_defconfig | 1 + drivers/mtd/Kconfig | 3 +++ include/configs/s5p_goni.h

[PATCH 03/13] Convert CONFIG_ENABLE_36BIT_PHYS to Kconfig

2022-06-15 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ENABLE_36BIT_PHYS Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc85xx/Kconfig | 3 +++ configs/MPC8548CDS_36BIT_defconfig | 1 + configs/MPC8548CDS_defconfig | 1 + configs/MPC8548CDS_legacy_defconfig

[PATCH 06/13] smdkc100: Remove some unused options

2022-06-15 Thread Tom Rini
There are a few options we test and set and then never reference, remove them. Signed-off-by: Tom Rini --- include/configs/smdkc100.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/include/configs/smdkc100.h b/include/configs/smdkc100.h index a7b0ce9f975a..5edf6f607270 100644

[PATCH 04/13] watchdog: designware: Make this depend on WDT

2022-06-15 Thread Tom Rini
As this driver can dynamically determine the values set in CONFIG_DW_WDT_BASE when using WDT, so make this depend on WDT rather than migrate CONFIG_DW_WDT_BASE to Kconfig. Cc: Chee Tien Fong Cc: Chin-Liang See Cc: Dinh Nguyen Cc: Holger Brunck Cc: Ley Foon Tan Cc: Marek Vasut Cc: Siew Chin

[PATCH 05/13] nxp: Cleanup some emulator related options.

2022-06-15 Thread Tom Rini
- Drop the emulator CONFIG test from include/configs/ls1088ardb.h - Migrate CONFIG_SYS_FSL_DDR_EMU to a select'able option in drivers/ddr/fsl/Kconfig Signed-off-by: Tom Rini --- README | 4 drivers/ddr/fsl/Kconfig | 6 ++ include/configs/ls1088ardb.h | 4

[PATCH 02/13] net: designware: Rename CONFIG_DW_GMAC_DEFAULT_DMA_PBL to GMAC_DEFAULT_DMA_PBL

2022-06-15 Thread Tom Rini
This value is always used at the default, rename it for now. This likely should come from the device tree if non-default, moving forward. Signed-off-by: Tom Rini --- drivers/net/designware.h | 8 +++- include/configs/stm32f746-disco.h | 2 -- 2 files changed, 3 insertions(+), 7

[PATCH 01/13] Convert CONFIG_DW_ALTDESCRIPTOR to Kconfig

2022-06-15 Thread Tom Rini
This converts the following to Kconfig: CONFIG_DW_ALTDESCRIPTOR Signed-off-by: Tom Rini --- configs/galileo_defconfig | 1 + configs/stm32746g-eval_defconfig | 1 + configs/stm32746g-eval_spl_defconfig | 1 + configs/stm32f746-disco_defconfig | 1 +

[PATCH] configs: stm32mp: cleanup the stm32mp15 file

2022-06-15 Thread Patrick Delaunay
Clean the comments in stm32mp15_common.h file after move CONFIG_ to Kconfig: - CONFIG_SYS_CBSIZE - CONFIG_SYS_SPL_MALLOC_START and CONFIG_SYS_SPL_MALLOC_SIZE Signed-off-by: Patrick Delaunay --- include/configs/stm32mp15_common.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff

Re: [PATCH RFC v3 03/11] ti: etype: sysfw: Add entry type for sysfw

2022-06-15 Thread Andrew Davis
On 6/15/22 1:47 AM, Neha Malcom Francis wrote: For K3 devices that require a sysfw image, add entry for SYSFW. It can contain system firmware image that can be packaged into sysfw.itb by binman. HS devices do this very differently, even an RFC without HS support doesn't make much sense, this

Re: [PATCH u-boot 0/3] renesas: Fix RPC-IF enablement

2022-06-15 Thread Geert Uytterhoeven
On Tue, Mar 29, 2022 at 2:19 PM Geert Uytterhoeven wrote: > On Renesas R-Car Gen3 platforms, the SPI Multi I/O Bus Controllers > (RPC-IF) provide access to HyperFlash or QSPI storage. On production > systems, they are typically locked by the TF-A firmware, unless TF-A is > built with

Re: [PATCH RFC v3 10/11] ti: dtsi: j721e: Use binman to package tispl.bin

2022-06-15 Thread Roger Quadros
On 15/06/2022 09:48, Neha Malcom Francis wrote: > tispl.bin must be packaged (with ATF, OPTEE, DM and A72 SPL) for J721E. > Binman picks up and packages entries according to the > description given in the device tree. > > k3-j721e-a72-binman.dtsi has been introduced for A72 specific binman >

Re: [PATCH RFC v3 10/11] ti: dtsi: j721e: Use binman to package tispl.bin

2022-06-15 Thread Roger Quadros
Neha, On 15/06/2022 09:48, Neha Malcom Francis wrote: > tispl.bin must be packaged (with ATF, OPTEE, DM and A72 SPL) for J721E. > Binman picks up and packages entries according to the > description given in the device tree. > > k3-j721e-a72-binman.dtsi has been introduced for A72 specific binman

Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-15 Thread Heinrich Schuchardt
On 6/15/22 08:34, AKASHI Takahiro wrote: On Wed, Jun 15, 2022 at 08:27:26AM +0200, Heinrich Schuchardt wrote: On 6/15/22 08:16, AKASHI Takahiro wrote: On Tue, Jun 14, 2022 at 08:02:03AM +0200, Heinrich Schuchardt wrote: From: Heinrich Schuchardt If CONFIG_VIDEO_DM=n we query the display

[PATCH] firmware: ti_sci_static_data: Make file board agnostic

2022-06-15 Thread Vignesh Raghavendra
Static DMA channel data for R5 SPL is mostly board agnostic so use SOC configs instead of EVM specific config to ease adding new board support. Drop J7200 EVM specific settings as its same as J721e Signed-off-by: Vignesh Raghavendra --- drivers/firmware/ti_sci_static_data.h | 42

Re: [PATCH 1/1] efi_loader: initialize console size late

2022-06-15 Thread Fabio Estevam
Hi Akashi-san, On Wed, Jun 15, 2022 at 3:35 AM AKASHI Takahiro wrote: > I think that your patch is a tentative workaround. Could Heinrich's patch be applied to 2022.07 to fix the regression? Any suggestions? Thanks, Fabio Estevam

Re: [PATCH RFC v3 08/11] ti: j721e: Exclude makefile tispl.bin target for J721E

2022-06-15 Thread Roger Quadros
Hi Neha, On 15/06/2022 09:48, Neha Malcom Francis wrote: > tispl.bin is to be packaged (with ATF, OPTEE, DM and A72 SPL) using > binman. The tispl.bin target from the makefile is no longer needed for > J721E. > > Signed-off-by: Neha Malcom Francis > --- > arch/arm/mach-k3/config.mk | 5 + >

[PATCH v4 23/23] microblaze: Add support for run time relocation

2022-06-15 Thread Michal Simek
Microblaze is using NEEDS_MANUAL_RELOC from the beginnging. This is causing issues with function pointer arrays which need to be updated manually after relocation. Building code with -fPIC and linking with -pic will remove this limitation and there is no longer need to run manual update. By

[PATCH v4 22/23] tools: relocate-rela: Add support for 32bit Microblaze relocation

2022-06-15 Thread Michal Simek
Microblaze is 32bit that's why it is using elf32 format. Relocation code requires to get information about rela and dynsym senctions and also text base which was used for compilation. Code build with -fPIC and linked with -pic generates 4 relocation types. R_MICROBLAZE_NONE is the easiest one

[PATCH v4 21/23] tools: relocate-rela: Add support for elf32 decoding

2022-06-15 Thread Michal Simek
Add support for 32bit ELF format which is used by Microblaze. Also check that code runs only for Microblaze. Function finds information about rela.dyn and dynsym which will be used later for relocation. Signed-off-by: Michal Simek --- (no changes since v1) tools/relocate-rela.c | 141

[PATCH v4 20/23] tools: relocate-rela: Check that relocation works only for EM_AARCH64

2022-06-15 Thread Michal Simek
Relocation support is only for EM_AARCH64 that's why check machine type to make sure that the code will never run on any unsupported one. Signed-off-by: Michal Simek --- (no changes since v1) tools/relocate-rela.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/relocate-rela.c

[PATCH v4 19/23] tools: relocate-rela: Extract elf64 reloc to special function

2022-06-15 Thread Michal Simek
Adding support for new type requires to change code layout that's why move elf64 code to own function for easier maintenance. It also solves the problem with not calling fclose in case of error. Return value from rela_elf64 is saved to variable that's why fclose() is called all the time.

[PATCH v4 18/23] microblaze: Create SYM_ADDR macro to deal with symbols

2022-06-15 Thread Michal Simek
Symbol handling depends on compilation flags. Right now manual relocation is used that's why symbols can be referenced just by name and there is no need to find them out. But when position independent code (PIC) is used symbols need to be described differently. That's why having one macro change

[PATCH v4 17/23] microblaze: Add comment about reset location

2022-06-15 Thread Michal Simek
Better to add comment to explain why reset vector points all the time to origin U-Boot location. If reset happens U-Boot should start from it's origin location. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 16/23] microblaze: Remove _start symbol handling at U-Boot start

2022-06-15 Thread Michal Simek
Right now U-Boot runs all the time from the same address where it is loaded but going to full relocation code starting address doesn't need to be fixed and can be simply discovered from reading PC register. That's why use r20 to get PC address and subtract offset from the beginning to get starting

[PATCH v4 15/23] microblaze: Remove code around r20 in relocate_code()

2022-06-15 Thread Michal Simek
r20 is not used that's why remove logic around it. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index f2d6d12deb73..c3d925c1d151 100644 ---

[PATCH v4 14/23] microblaze: Optimize register usage in relocate_code

2022-06-15 Thread Michal Simek
There are additional operations which can be done simpler that's why improve logic around relocation address r7 handling and _start symbol. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[PATCH v4 13/23] microblaze: Change stack protection address to new stack address

2022-06-15 Thread Michal Simek
SLR low address is still setup to 0 that's why only high limit should be updated. STACK_SIZE macro is present and could be possible used for low address alignment but it is not done by this patch. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 1 + 1 file

[PATCH v4 12/23] microblaze: Separate code end substraction

2022-06-15 Thread Michal Simek
Follow up patch will convert symbol handling that's why it is necessary to separate logic around symbols to special instruction. It adds 4B for new instruction but it is worth to do it to have code ready for for full relocation. Signed-off-by: Michal Simek --- (no changes since v1)

[PATCH v4 11/23] microblaze: Enable REMAKE_ELF

2022-06-15 Thread Michal Simek
Enable u-boot.elf recreation from u-boot.bin to prepare for removing manul relocation. Enable option for big endian configuration but it is not used too much that's why it is completely untested. By supporting this system there is a need to define LITTLE/BIG endian Kconfig options to pass -EL/-EB

[PATCH v4 10/23] mips: Move endianness selection to arch/Kconfig

2022-06-15 Thread Michal Simek
This option will be used by Microblaze that's why move it to generic location to be able to use it. Signed-off-by: Michal Simek --- Changes in v4: - Revert incorrect m68k merge - wrong patch Changes in v3: - Move NEEDS_MANUAL_RELOC to m68k Kconfig to avoid Kconfig issues Changes in v2: - new

[PATCH v4 09/23] microblaze: Fix typo in exception.c

2022-06-15 Thread Michal Simek
Trivial fix. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/exception.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/cpu/exception.c b/arch/microblaze/cpu/exception.c index d3640d3903b8..9414776afa7f 100644 ---

[PATCH v4 08/23] microblaze: Remove CONFIG_TEXT_BASE from code

2022-06-15 Thread Michal Simek
Use symbol instead macro to find where U-Boot starts. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index

[PATCH v4 07/23] microblaze: Fix early stack allocation

2022-06-15 Thread Michal Simek
CONFIG_SYS_INIT_SP_OFFSET macro place stack to TEXT_BASE - SYS_MALLOC_F_LEN but there is no reason to do it now because board_init_f_alloc_reserve() returns exact location where stack should be. That's why stack location is calculated at run time and there is no need to hardcode it via macro. This

[PATCH v4 06/23] microblaze: Fix stack protection behavior

2022-06-15 Thread Michal Simek
When U-Boot starts stack protection can be already enabled that's why setup the lowest possible SLR value which is address 0. And the highest possible stack in front of U-Boot. That's why you should never load U-Boot to the beginning of DDR. There must be some space reserved. Code is using this

[PATCH v4 05/23] microblaze: Switch absolute branches to relative

2022-06-15 Thread Michal Simek
There is no reason to use absolute branches and use just relative. This change helps with moving binary to different location and start it from there. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 18 +- 1 file changed, 9 insertions(+), 9

[PATCH v4 04/23] tools: relocate-rela: Read rela start/end directly from ELF

2022-06-15 Thread Michal Simek
There is no need to pass section information via parameters. Let's read text base and rela start/end directly from elf. It will help with reading other information from ELF for others architecture. Input to relocate-rela is u-boot binary and u-boot ELF. Signed-off-by: Michal Simek --- (no

[PATCH v4 03/23] tools: relocate-rela: Use global variables

2022-06-15 Thread Michal Simek
Declare rela_start/end and text_base as global variables. It will help with using these variables for ELF decoding. Signed-off-by: Michal Simek --- (no changes since v1) tools/relocate-rela.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/relocate-rela.c

[PATCH v4 00/23] microblaze: Add support for full relocation

2022-06-15 Thread Michal Simek
Hi, this series is adding support for full rela relocation. Origin NEEDS_MANUAL_RELOC option is still there as default. Code has been tested with multiple configurations on QEMU. - Origin behavior - u-boot - Relocated version - u-boot.elf - Loading u-boot.bin to higher address than TEXT_BASE -

[PATCH v4 02/23] Makefile: Fix description for relocate-rela parameters

2022-06-15 Thread Michal Simek
Numbers in comment are shifter which is visible from command which calls them. Also relocate-rela usage is describing them. "Usage: %s" Signed-off-by: Michal Simek --- (no changes since v1) Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile

[PATCH v4 01/23] tools: relocate-rela: Open binary u-boot file later

2022-06-15 Thread Michal Simek
There is no value to open u-boot binary file so early. Better to check all values first and then open binary file. Signed-off-by: Michal Simek --- (no changes since v1) tools/relocate-rela.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-06-15 Thread Stefano Babic
On 15.06.22 14:45, Gaurav Jain wrote: Hi Fabio -Original Message- From: Fabio Estevam Sent: Wednesday, June 15, 2022 6:11 PM To: Gaurav Jain Cc: U-Boot-Denx ; Stefano Babic ; Peng Fan ; dl-uboot-imx ; Horia Geanta ; Varun Sethi ; Ye Li Subject: [EXT] Re: [PATCH v3] crypto/fsl:

RE: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-06-15 Thread Gaurav Jain
Hi Fabio > -Original Message- > From: Fabio Estevam > Sent: Wednesday, June 15, 2022 6:11 PM > To: Gaurav Jain > Cc: U-Boot-Denx ; Stefano Babic ; > Peng Fan ; dl-uboot-imx ; Horia > Geanta ; Varun Sethi ; Ye Li > > Subject: [EXT] Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in

Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-06-15 Thread Stefano Babic
Hi Gaurav, thanks for fix, I will put into u-boot-imx and trigger a new CI. Stefano On 15.06.22 14:34, Gaurav Jain wrote: From: Ye Li issue: CAAM fails with key error when perform Modular Exponentiation using PKHA Block in CAAM Fix: add flush and invalidate dcache for keys, signature and

Re: [PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-06-15 Thread Fabio Estevam
Hi Gaurav, On Wed, Jun 15, 2022 at 9:35 AM Gaurav Jain wrote: > > From: Ye Li > > issue: > CAAM fails with key error when perform Modular Exponentiation > using PKHA Block in CAAM > > Fix: > add flush and invalidate dcache for keys, signature > and output decrypted data processed by CAAM. > >

[PATCH v3] crypto/fsl: fsl_rsa: Fix dcache issue in the driver

2022-06-15 Thread Gaurav Jain
From: Ye Li issue: CAAM fails with key error when perform Modular Exponentiation using PKHA Block in CAAM Fix: add flush and invalidate dcache for keys, signature and output decrypted data processed by CAAM. Fixes: 34276478f7 (DM: crypto/fsl - Add Freescale rsa DM driver) Signed-off-by: Ye Li

Re: [PATCH v5 23/23] sandbox: fwu: Add support for testing FWU feature on sandbox

2022-06-15 Thread Sughosh Ganu
On Wed, 15 Jun 2022 at 12:00, Takahiro Akashi wrote: > > On Thu, Jun 09, 2022 at 06:00:10PM +0530, Sughosh Ganu wrote: > > Add a python test script for testing the FWU Multi Bank Update > > functionality on the sandbox platform. The script has test cases for > > updation of the u-boot binary and

Re: [PATCH v5 23/23] sandbox: fwu: Add support for testing FWU feature on sandbox

2022-06-15 Thread Sughosh Ganu
On Wed, 15 Jun 2022 at 11:07, Takahiro Akashi wrote: > > On Thu, Jun 09, 2022 at 06:00:10PM +0530, Sughosh Ganu wrote: > > Add a python test script for testing the FWU Multi Bank Update > > functionality on the sandbox platform. The script has test cases for > > updation of the u-boot binary and

RE: [PATCH v2 00/11] Add Chameleon v3 support

2022-06-15 Thread Chee, Tien Fong
Hi, > -Original Message- > From: Paweł Anikiel > Sent: Wednesday, 15 June, 2022 7:08 PM > To: Simon Goldschmidt > Cc: U-Boot Mailing List ; Simon Glass > ; Fabio Estevam ; Jagan Teki > ; Andre Przywara ; > Armstrong, Neil ; Peter Robinson > ; Tim Harvey ; Ying-Chun > Liu ; Christian

[PATCH 3/3] mtd: spi: renesas: Add R8A77980 support

2022-06-15 Thread Marek Vasut
From: Valentine Barshak This adds "renesas,rpc-r8a77980" to the compatible device list. Signed-off-by: Valentine Barshak --- drivers/spi/renesas_rpc_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/renesas_rpc_spi.c b/drivers/spi/renesas_rpc_spi.c index

[PATCH 2/3] configs: r8a77980: Condor: Enable MMC support by default

2022-06-15 Thread Marek Vasut
From: Andrey Dolnikov This enables MMC support, which is available on Condor board, by default. Signed-off-by: Andrey Dolnikov Signed-off-by: Valentine Barshak Signed-off-by: Hai Pham --- configs/r8a77980_condor_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff

[PATCH 1/3] ARM: renesas: condor: switch eMMC bus to 1V8

2022-06-15 Thread Marek Vasut
From: Hai Pham The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND array and the VCCQ supplies the bus. On Condor, the VCC is connected to 3.3V rail, while the VCCQ is connected to 1.8V rail. Adjust the pinmux to match the bus, which is always operating in 1.8V mode. Based

[PATCH RFC v3 01/11] j721e_evm: schema: yaml: Add general schema and J721E board config files

2022-06-15 Thread Neha Malcom Francis
Schema file in YAML must be provided in board/ti/common for validating input config files and packaging system firmware. The schema includes entries for rm-cfg, board-cfg, pm-cfg and sec-cfg. Board config file must be provided in board/ti/ in YAML. These can then be consumed for generation of

[PATCH v2 3/5] ARM: dts: imx6qdl-sr-som: add support for alternate phy addresses

2022-06-15 Thread sbabic
> The Cubox has an unstable phy address - which can appear at either > address 0 (intended) or 4 (unintended). > SoM revision 1.9 has replaced the ar8035 phy with an adin1300, which > will always appear at address 1. > Change the reg property of the phy node to the magic value 0x, > which

[PATCH v2 5/5] mx6cuboxi: enable driver for adin1300 phy

2022-06-15 Thread sbabic
> Since SoMs revision 1.9 the ar8035 phy has been replaced by adin1300. > Enable the driver so that the new SoMs have functional networking. > Signed-off-by: Josua Mayer Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 2/2] board: apalis-imx8: add new 8gb product variant

2022-06-15 Thread sbabic
> From: Philippe Schenker > Add the new Apalis iMX8 product variant > 0067: Apalis iMX8 QuadMax 8GB Wi-Fi / BT IT > the only difference to the product > 0037 Apalis iMX8 QuadMax 4GB Wi-Fi / BT IT > is the 8gb of RAM. Toradex strategy to choose the correct RAM timing in > SCFW is by fuses in the

[PATCH] imx8mn_evk: Add the missing spl.bin entry

2022-06-15 Thread sbabic
> From: Fabio Estevam > The generated flash.bin does not boot the imx8mn evk LPDDR4 variant > as it misses the spl.bin description in binman. > Add its entry to fix the boot on the imx8mn evk LPDDR4 variant. > Signed-off-by: Fabio Estevam > Tested-by: Arti Zirk > Reviewed-by: Alper Nebi Yasak

[PATCH 1/2] clk: imx8mp: fix root clock names for ecspi

2022-06-15 Thread sbabic
> Root clock name contained underscore, which does not match to the actual > clock name. > Correct the name to match what is present in the FDT. > Fixes: 87f958810fcb ("clk: imx8mp: Add ECSPI clocks") > Signed-off-by: Andrey Zhizhikin > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Stefano Babic >

[PATCH] spi: nxp_fspi: Fix clock imbalance

2022-06-15 Thread sbabic
> The nxp_fspi_default_setup() is only ever called from nxp_fspi_probe(), > where the IP clock are initially disabled. Drop the second disabling of > clock to prevent clock enable/disable imbalance reported by clock core: > " > clk qspi_root_clk already disabled > " > Signed-off-by: Marek Vasut >

[PATCH v2] verdin-imx8mm, verdin-imx8mp: Fix default systemd console output

2022-06-15 Thread sbabic
> From: Philippe Schenker > systemd prints its messages on the last console= statement that it finds > in the kernel arguments. The current ordering sends the systemd messages > to tty1, by default this is the display. > Ensure that systemd sends its messages to the default UART, reorder the >

[PATCH] imx8mn_evk: Add Ethernet support to the LPDDR4 variant

2022-06-15 Thread sbabic
> From: Fabio Estevam > The imx8mn-ddr4-evk board has Ethernet support already, but the > lpddr4 board does not. > Add Ethernet support for the LPDDR4 variant too. > Signed-off-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 1/2] toradex: tdx-cfg-block: add new 8gb apalis-imx8

2022-06-15 Thread sbabic
> From: Philippe Schenker > 0067: Apalis iMX8 QuadMax 8GB Wi-Fi / BT IT > This module is identical to its 4GB counterpart > 0037: Apalis iMX8 QuadMax 4GB Wi-Fi / BT IT > except for the RAM size. > Signed-off-by: Philippe Schenker > Reviewed-by: Francesco Dolcini > Acked-by: Marcel Ziswiler

[PATCH v2 4/5] mx6cuboxi: fixup dtb ethernet phy nodes before booting an OS

2022-06-15 Thread sbabic
> SoM revision 1.9 has replaced the ar8035 phy address 0 with an adin1300 > at address 1. Because early SoMs had a hardware flaw, the ar8035 can > also appear at address 4 - making it a total of 3 phy nodes in the DTB. > To avoid confusing Linux with probe errors, fixup the dtb to only enable >

[PATCH v2 1/5] phy: adin: fix broken support for adi, phy-mode-override

2022-06-15 Thread sbabic
> From: Nate Drude > Currently, the adin driver fails to compile. > The original patch introducing the adin driver used the function > phy_get_interface_by_name to support the adi,phy-mode-override > property. Unfortunately, a few days before the adin patch > was accepted, another patch removed

[PATCH] secure boot: enable ARCH_MISC_INIT config.

2022-06-15 Thread sbabic
> add ARCH_MISC_INIT to initilaize caam jr driver. > Signed-off-by: Gaurav Jain > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk

2022-06-15 Thread sbabic
> Upstream commit 7a2c3be95a50 ("clk: imx8mp: Fill in DWC3 USB, USB PHY, > HSIOMIX clock") added usb_core_ref for USB Controller but never set it > to be used as a clock source, using rather "osc_32k" instead. > This produces following boot log message: > "clk_register: failed to get osc_32k

[PATCH v2 2/5] phy: adin: add support for clock output

2022-06-15 Thread sbabic
> The ADIN1300 supports generating certain clocks on its GP_CLK pin, as > well as providing the reference clock on CLK25_REF. > Add support for selecting the clock via device-tree properties. > This patch is based on the Linux implementation for this feature, > which has been added to

[PATCH] ARM: dts: renesas: condor: Enable SPI NOR fast-read

2022-06-15 Thread marek . vasut
From: Marek Vasut This board requires SPI NOR fast-read, otherwise the SPI NOR access returns corrupted data. Enable the fast-read explicitly in DT as it has been disabled in the MTD subsystem by commit d008190920 ("mtd: spi-nor: Mask out fast read if not requested in DT") Signed-off-by: Marek

[PATCH v4] ARM: imx: Switch Data Modul i.MX8M Mini eDM SBC to USB251x Hub driver

2022-06-15 Thread Marek Vasut
Replace the ad-hoc I2C register programming scripted in board environment with U-Boot DM driver. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Use uclass_get_device_by_name() V3: Reinstate the device-internal.h, needed for device_probe() V4: Drop the

Re: [PATCH v2 00/11] Add Chameleon v3 support

2022-06-15 Thread Paweł Anikiel
On Thu, May 26, 2022 at 4:37 PM Paweł Anikiel wrote: > > The Google Chameleon v3 is a board made for testing both video and audio > interfaces of external devices. It has a connector compatible with the > Mercury+ AA1 module, which itself contains an Arria 10 SoCFPGA. The AA1 > module comes in a

[PATCH] ARM: renesas: condor: Set CONFIG_SYS_TEXT_BASE=0x0 on R-Car Gen3 Condor

2022-06-15 Thread marek . vasut
From: Marek Vasut Since R-Car Gen3 already enables position independent build, also set CONFIG_SYS_TEXT_BASE=0x0 to finalize the switch. This is possible since 534f0fbd65 ("arm64: Fix relocation of env_addr if POSITION_INDEPENDENT=y") fixed current env_get_char() crash with

Re: [PATCH v5 11/23] mkeficapsule: Add support for generating empty capsules

2022-06-15 Thread Sughosh Ganu
On Wed, 15 Jun 2022 at 10:41, Takahiro Akashi wrote: > > On Thu, Jun 09, 2022 at 05:59:58PM +0530, Sughosh Ganu wrote: > > The Dependable Boot specification[1] describes the structure of the > > firmware accept and revert capsules. These are empty capsules which > > are used for signalling the

Re: [PATCH v3] ARM: imx: Switch Data Modul i.MX8M Mini eDM SBC to USB251x Hub driver

2022-06-15 Thread Stefan Herbrechtsmeier
Hi Marek, Am 14.06.2022 um 22:05 schrieb Marek Vasut: Replace the ad-hoc I2C register programming scripted in board environment with U-Boot DM driver. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Use uclass_get_device_by_name() V3: Reinstate the

  1   2   >