[PATCH v11 14/14] update CAAM MAINTAINER

2022-03-23 Thread Gaurav Jain
updated CAAM driver files maintainer. Signed-off-by: Gaurav Jain --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 96582fc677..404a8e9653 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1376,3 +1376,9 @@ T:git https://source.denx.de/

[PATCH v11 13/14] PPC: Enable Job ring driver model.

2022-03-23 Thread Gaurav Jain
removed sec_init() call from board files. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/cpu_init.c | 19 +-- arch/powerpc/include/asm/u-boot-ppc.h | 17 +++

[PATCH v11 12/14] PPC: Add crypto node in device tree

2022-03-23 Thread Gaurav Jain
device tree imported from linux kernel. c500bee1c5b2 (tag: v5.14-rc4) Linux 5.14-rc4 Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/dts/p2041si-post.dtsi | 1 + arch/powerpc/dts/p3041si-post.dtsi | 1 + arch/powerpc/dts/p4080si-post.dtsi | 1 + arch/powerpc/dts/

[PATCH v11 11/14] Layerscape: Enable Job ring driver model.

2022-03-23 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160, LX2162 platforms are enabled with JR driver model. removed sec_init() call from board files. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain Reviewed-by: Michael Wa

[PATCH v11 10/14] Layerscape: Add crypto node in device tree

2022-03-23 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160 - updated device tree Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/arm/dts/fsl-ls1012a.dtsi | 46 ++- arch/arm/dts/fsl-ls1043a.dtsi | 45 +- arch/arm/dts/fsl-ls1046a.

[PATCH v11 09/14] crypto/fsl: i.MX8: Enable Job ring driver model.

2022-03-23 Thread Gaurav Jain
i.MX8(QM/QXP) - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Signed-off-by: Horia Geantă Reviewed-by: Ye Li --- arch/arm/Kconfig | 3 ++ arch/arm/include/asm/arch-imx8/imx-re

[PATCH v11 08/14] i.MX8: Add crypto node in device tree

2022-03-23 Thread Gaurav Jain
i.MX8(QM/QXP) - updated device tree for supporting DM in SPL. disabled use of JR1 in SPL and uboot, as JR1 is reserved for SECO FW. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/dts/fsl-imx8dx.dtsi | 61 +++- arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi

[PATCH v11 07/14] i.MX7ULP: Enable Job ring driver model.

2022-03-23 Thread Gaurav Jain
added crypto node in device tree. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/dts/imx7ulp.dtsi| 24 arch/arm/mach-imx/mx7ulp/Kco

[PATCH v11 06/14] i.MX7: Enable Job ring driver model.

2022-03-23 Thread Gaurav Jain
i.MX7D - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mx7/Kconfig | 1 + arch/arm/mach-imx/mx7

[PATCH v11 05/14] i.MX6: Enable Job ring driver model.

2022-03-23 Thread Gaurav Jain
i.MX6,i.MX6SX,i.MX6UL - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/mach-imx/mx6/Kconfig | 10 ++ arch/arm/mach-imx/mx6/soc.c | 13 +

[PATCH v11 04/14] mx6sabre: Remove unnecessary SPL configs

2022-03-23 Thread Gaurav Jain
From: Ye Li Because we don't use SPL_DM on mx6sabresd and mx6sabreauto, so it is unnecessary to have SPL DTB related configs and SPL_OF_CONTROL enabled. Signed-off-by: Ye Li Reviewed-by: Fabio Estevam Reviewed-by: Gaurav Jain --- configs/mx6sabreauto_defconfig | 2 -- configs/mx6sabresd_defc

[PATCH v11 03/14] crypto/fsl: i.MX8M: Enable Job ring driver model.

2022-03-23 Thread Gaurav Jain
i.MX8MM/MN/MP/MQ - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/imx8m/Kconfig | 13 + arch/arm/mach-imx/i

[PATCH v11 02/14] i.MX8M: crypto: updated device tree for supporting DM in SPL

2022-03-23 Thread Gaurav Jain
Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 18 +- arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 18 +- arch/arm/dts/imx8mp-evk-u-boot.dtsi | 18 +- 3 files changed, 51 insertions(+), 3 deletions(-

[PATCH v11 01/14] crypto/fsl: Add support for CAAM Job ring driver model

2022-03-23 Thread Gaurav Jain
added device tree support for job ring driver. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li Reviewed-by: Simon Glass --- drivers/crypto/fsl/Kconfig | 1 + drivers/crypto/fsl/jr.c| 323 --

[PATCH v11 00/14] Add CAAM driver model support

2022-03-23 Thread Gaurav Jain
This patchset adds the support for following: 1) CAAM Driver model for all i.MX, layerscape, PPC platforms. 2) Added crypto node in device tree files. 3) fix build issue for mx6sabre: Remove SPL DTB related configs and SPL_OF_CONTROL. i.MX platforms: i.MX6, i.MX7, i.MX7ULP, i.MX8MM/MN/MP/MQ, i.MX

Re: [PATCH 09/22] kmtegr1: Drop CONFIG_KMTEGR1

2022-03-23 Thread Heiko Schocher
Hello Tom, On 23.03.22 22:19, Tom Rini wrote: > The only usage of CONFIG_KMTEGR1 can be replaced by > CONFIG_TARGET_KMTEGR1 so do so and remove this other symbol. > > Cc: Holger Brunck > Cc: Heiko Schocher > Signed-off-by: Tom Rini > --- > board/keymile/common/ivm.c | 2 +- > configs/kmtegr1_

Re: How to debug u-boot data abort

2022-03-23 Thread AKASHI Takahiro
On Wed, Mar 23, 2022 at 09:27:08AM +0100, Heinrich Schuchardt wrote: > On 3/23/22 08:45, qianfan wrote: > > > > 在 2022/3/23 10:28, qianfan 写道: > > > > > > Hi: > > > > > > I had a custom AM335X board connected my computer by usbnet. It always > > > report data abort when 'dhcp': > > > > > > Next

Re: [PATCH 1/1] arm: bcmbca: introduce the bcmbca architecture and 47622 SOC

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 07:03:48PM -0700, William Zhang wrote: > This is the initial support for Broadcom's ARM-based 47622 SOC. > > In this change, our first SOC is an armv7 platform called 47622. The > initial support includes a bare-bone implementation and dts with ARM > PL011 uart. > > The SO

Re: [PATCH] sandbox: usb: Fix out-of-bounds read when fd=-1

2022-03-23 Thread Simon Glass
Hi Sean, On Wed, 23 Mar 2022 at 16:24, Sean Anderson wrote: > > sandbox_flash_bulk uses priv->read_len to determine if priv->buff contains > the response data (such as from SCSI_INQUIRY). However, if priv->fd=-1 in > handle_read, then priv->read_len is not set even though we are going to > PHASE_

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Simon Glass
Hi Mark, On Wed, 23 Mar 2022 at 17:15, Mark Kettenis wrote: > > > From: Michael Nazzareno Trimarchi > > Date: Wed, 23 Mar 2022 20:21:22 +0100 > > > > Hi Tom > > > > On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrote: > > > > > > Hi Tom, > > > > > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote:

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Simon Glass
Hi Tom, On Wed, 23 Mar 2022 at 14:09, Tom Rini wrote: > > On Wed, Mar 23, 2022 at 12:45:50PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > > > > > On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > > > > > > > The bootflow feature p

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-23 Thread Adam Ford
On Tue, Mar 22, 2022 at 7:48 AM Angus Ainslie wrote: > > On 2022-03-21 06:50, Heiko Thiery wrote: > > Hi Angus, > > > > [snip] > > > >> > So I'm not sure if the ipg clock is the right one for the boards that > >> > has different clock for ipg and per. > >> > >> So I only looked at imx6qdl.dtsi whe

[PATCH 1/1] arm: bcmbca: introduce the bcmbca architecture and 47622 SOC

2022-03-23 Thread William Zhang
This is the initial support for Broadcom's ARM-based 47622 SOC. In this change, our first SOC is an armv7 platform called 47622. The initial support includes a bare-bone implementation and dts with ARM PL011 uart. The SOC-specific code resides in arch/arm/mach-bcmbca/ and board related code is in

[PATCH 0/1] arm: bcmbca: introduce the bcmbca architecture and 47622 SOC

2022-03-23 Thread William Zhang
This change introduces Broadcom's ARCH_BCMBCA architecture for armv7 and armv8 based Broadband SoCs. We expect to send additional patches for each SoC in the near future. William Zhang (1): arm: bcmbca: introduce the bcmbca architecture and 47622 SOC MAINTAINERS| 11

[PATCH v4] pinctrl: nuvoton: Add NPCM8xx pinctrl driver

2022-03-23 Thread Stanley Chu
Add Nuvoton BMC NPCM845 Pinmux and Pinconf support. Signed-off-by: Stanley Chu --- v4: - correct the pin flags, add slew rate control suuport for rgmii pins v3: - separate group names and function names in different tables to allow for adding additional functions v2: - drop the WDnRCRB/CORS

Re: [RFC PATCH v1 16/21] test: hush: Fix variable expansion tests for hush 2021.

2022-03-23 Thread Francis Laniel
Hi. (Sorry for the very late reply) Le lundi 7 février 2022, 21:22:20 CET Simon Glass a écrit : > Hi Francis, > > On Sun, 6 Feb 2022 at 11:23, Francis Laniel > > wrote: > > Le mercredi 12 janvier 2022, 21:03:37 CET Simon Glass a écrit : > > > Hi Francis, > > > > > > On Fri, 31 Dec 2021 at 09

Re: data abort when run 'dhcp'

2022-03-23 Thread qianfan
Adding 'while (1) ;' before bad_mode in data_abort function and so I can gdb u-boot when data abort. Yes, I can connect it via gdb, but bt can't show the full stack. (gdb) add-symbol-file u-boot 0x9ff66000 add symbol table from file "u-boot" at     .text_addr = 0x9ff66000 (y or n) y Reading

Re: [PATCH 1/1] riscv: enable CONFIG_CMD_SBI for QEMU boards

2022-03-23 Thread Bin Meng
On Thu, Mar 24, 2022 at 5:46 AM Heinrich Schuchardt wrote: > > Let CONFIG_TARGET_QEMU_VIRT imply CONFIG_CMD_SBI. > > The sbi command provides detailed information about the SBI. > It is useful to test the discovery of extensions. > > Signed-off-by: Heinrich Schuchardt > --- > board/emulation/qem

Re: [PATCH v3] arm: kirkwood: nas220: Add DM Ethernet, SATA, GPIO

2022-03-23 Thread Tony Dinh
Hi Hajo, Please see this thread: https://lists.denx.de/pipermail/u-boot/2022-March/478686.html Due to a conflict with Tom's patch to move CONFIG_RESET_PHY_R to Kconfig, this NAS220 patch and my Sheevaplug patch will need to be rebased and resubmitted. We can do that after Tom's patch has been me

Re: [PATCH 0/7] Add Gateworks System Controller driver

2022-03-23 Thread Tim Harvey
On Mon, Mar 7, 2022 at 4:24 PM Tim Harvey wrote: > > This series Adds a driver for the Gateworks System Controller (GSC) > present on boards from Gateworks Corporation. > > Patches 1-4 are gw_ventana cleanups to prepare for using the DM_I2C > based driver. > Patch 5 is for the driver itself > Patc

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Mark Kettenis
> From: Michael Nazzareno Trimarchi > Date: Wed, 23 Mar 2022 20:21:22 +0100 > > Hi Tom > > On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrote: > > > > Hi Tom, > > > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > > > > > On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > > > >

Re: imx8mp EQoS "EQOS_DMA_MODE_SWR stuck"

2022-03-23 Thread Tim Harvey
On Wed, Mar 23, 2022 at 2:28 AM Marcel Ziswiler wrote: > > Hi Tim > > On Tue, 2022-03-22 at 17:04 -0700, Tim Harvey wrote: > > Greetings, > > > > I'm working on adding board support for an imx8mp SoC board which uses > > the EQoS MAC interface. I'm finding that eqos_start() fails with > > 'EQOS_DM

Re: [PATCH v2 2/4] net: mvneta: add SFP TX disable handling

2022-03-23 Thread Marek Behún
On Wed, 23 Mar 2022 18:19:08 +0100 Robert Marko wrote: > Add support for handling SFP TX disable for MVNETA in the same fashion as > to what MVPP2 is doing in order to enable using SFP-s. > > This allows using ethernet on SFP only boards. > > Signed-off-by: Robert Marko > --- > Changes in v2:

[PATCH] sandbox: usb: Fix out-of-bounds read when fd=-1

2022-03-23 Thread Sean Anderson
sandbox_flash_bulk uses priv->read_len to determine if priv->buff contains the response data (such as from SCSI_INQUIRY). However, if priv->fd=-1 in handle_read, then priv->read_len is not set even though we are going to PHASE_DATA. This causes sandbox_flash_bulk to try and read len bytes from priv

[PATCH 1/1] riscv: enable CONFIG_CMD_SBI for QEMU boards

2022-03-23 Thread Heinrich Schuchardt
Let CONFIG_TARGET_QEMU_VIRT imply CONFIG_CMD_SBI. The sbi command provides detailed information about the SBI. It is useful to test the discovery of extensions. Signed-off-by: Heinrich Schuchardt --- board/emulation/qemu-riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/board/em

[PATCH v2] mtd: gpmi: fix the bch setting backward compatible issue

2022-03-23 Thread Han Xu
Previous u-boot code changed the default bch setting behavior and caused backward compatible issue. This fix choose the legacy bch geometry back again as the default option. If the minimum ecc strength that NAND chips required need to be chosen, it can be enabled by either adding DT flag "fsl,use-m

[PATCH 21/22] Convert CONFIG_CLOCKS to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CLOCKS Signed-off-by: Tom Rini --- common/Kconfig | 4 .../avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig | 1 + configs/bitmain_antminer_s9_defconfig| 1 + conf

[PATCH 19/22] exynos: Drop CONFIG_CLK_*

2022-03-23 Thread Tom Rini
We only set one of these values ever at this point, so remove dead code. Cc: Minkyu Kang Cc: Jaehoon Chung Signed-off-by: Tom Rini --- arch/arm/mach-exynos/exynos4_setup.h | 20 include/configs/origen.h | 2 -- include/configs/smdkv310.h | 2 -- 3 f

[PATCH 16/22] Convert CONFIG_SDCARD et al to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SDCARD CONFIG_SPIFLASH Signed-off-by: Tom Rini --- boot/Kconfig | 14 ++ configs/P1010RDB-PA_36BIT_SDCARD_defconfig | 1 - configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig | 2 +- configs/P1010RDB-PA

[PATCH 18/22] Convert CONFIG_SYS_USE_NORFLASH et al to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_USE_NORFLASH CONFIG_SYS_USE_BOOT_NORFLASH Signed-off-by: Tom Rini --- board/atmel/at91sam9263ek/Kconfig | 3 +++ configs/at91sam9263ek_norflash_boot_defconfig | 2 +- configs/at91sam9263ek_norflash_defconfig | 2 +- includ

[PATCH 22/22] p1_p2_rdb: Remove CONFIG_CPLD_[BO]R_PRELIM

2022-03-23 Thread Tom Rini
These are not referenced in code, drop. Signed-off-by: Tom Rini --- include/configs/p1_p2_rdb_pc.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/p1_p2_rdb_pc.h b/include/configs/p1_p2_rdb_pc.h index a6523753d5ca..d0db99468ab5 100644 --- a/include/configs/p1_p2_rdb_pc.h ++

[PATCH 17/22] global: Remove CONFIG_SYS_USE_DATAFLASH*

2022-03-23 Thread Tom Rini
There are a handful of variants around CONFIG_SYS_USE_DATAFLASH and none of them now control anything further within their board config.h files, so remove these from CONFIG_SYS_EXTRA_OPTIONS and then remove the empty blocks in the board config.h files. In a few places further clean up related logi

[PATCH 20/22] Convert CONFIG_CLOCK_SYNTHESIZER to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CLOCK_SYNTHESIZER Signed-off-by: Tom Rini --- arch/arm/mach-omap2/am33xx/Kconfig | 13 + arch/arm/mach-omap2/am33xx/clk_synthesizer.c | 14 +++--- configs/am335x_boneblack_vboot_defconfig | 1 + configs/am335x_e

[PATCH 14/22] MPC837XERDB: Move CONFIG_PCIE to Kconfig

2022-03-23 Thread Tom Rini
Move this symbol to the board Kconfig file. Signed-off-by: Tom Rini --- board/freescale/mpc837xerdb/Kconfig | 3 +++ configs/MPC837XERDB_defconfig | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/board/freescale/mpc837xerdb/Kconfig b/board/freescale/mpc837xerdb/Kconfig

[PATCH 15/22] am43xx_evm_qspiboot: Remove CONFIG_SYS_EXTRA_OPTIONS

2022-03-23 Thread Tom Rini
CONFIG_QSPI is not used in the code, drop this. Signed-off-by: Tom Rini --- configs/am43xx_evm_qspiboot_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/am43xx_evm_qspiboot_defconfig b/configs/am43xx_evm_qspiboot_defconfig index 6bbb962639e4..59d16b0ce37e 100644 --- a/config

[PATCH 13/22] Convert CONFIG_LPUART et al to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_LPUART CONFIG_LPUART_32B_REG And note that CONFIG_LPUART_32B_REG is unused in code. Signed-off-by: Tom Rini --- configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 2 +- configs/ls1021aqds_nor_lpuart_defconfig | 2 +- configs/ls1021atwr_nor_l

[PATCH 12/22] Convert CONFIG_LSCHLV2 to Kconfig et al

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_LSCHLV2 CONFIG_LSXHL Cc: Michael Walle Signed-off-by: Tom Rini --- board/buffalo/lsxl/Kconfig | 11 +++ configs/lschlv2_defconfig | 2 +- configs/lsxhl_defconfig| 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --

[PATCH 11/22] mpc8548cds: Rework CONFIG_LEGACY usage

2022-03-23 Thread Tom Rini
This CONFIG option is used in one place, so pick a more direct name and migrate to Kconfig. Rework the code slightly. Cc: Priyanka Jain Signed-off-by: Tom Rini --- board/freescale/common/cds_via.c| 6 +- board/freescale/mpc8548cds/Kconfig | 3 +++ configs/MPC8548CDS_legacy_defconfig |

[PATCH 08/22] keymile: Move sourcing of common Kconfig

2022-03-23 Thread Tom Rini
The way board/keymile/Kconfig is written protects the options there from being parsed on non-keymile platforms. We cannot however safely source this file from multiple locations. This does not manifest as a problem currently as there are no choice statements inside of this file (nor the sub-Kconf

[PATCH 09/22] kmtegr1: Drop CONFIG_KMTEGR1

2022-03-23 Thread Tom Rini
The only usage of CONFIG_KMTEGR1 can be replaced by CONFIG_TARGET_KMTEGR1 so do so and remove this other symbol. Cc: Holger Brunck Cc: Heiko Schocher Signed-off-by: Tom Rini --- board/keymile/common/ivm.c | 2 +- configs/kmtegr1_defconfig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)

[PATCH 07/22] Convert CONFIG_EMMC_BOOT et al to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_EMMC_BOOT CONFIG_MAC_ADDR_IN_SPIFLASH CONFIG_NAND_BOOT CONFIG_SPL_FSL_PBL CONFIG_SYS_FSL_DDR4 In this case we re-sync options that had been set in CONFIG_SYS_EXTRA_OPTIONS but should not have been as they have proper entries. Signed-of

[PATCH 10/22] Convert CONFIG_KM_COGE5UN et al to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_KM_COGE5UN CONFIG_KM_KIRKWOOD_128M16 CONFIG_KM_KIRKWOOD CONFIG_KM_KIRKWOOD_PCI CONFIG_KM_NUSA CONFIG_KM_SUSE2 Cc: Holger Brunck Signed-off-by: Tom Rini --- board/keymile/km_arm/Kconfig | 23 +++ configs

[PATCH 06/22] mx28evk_auart_console: Remove CONFIG_SYS_EXTRA_OPTIONS

2022-03-23 Thread Tom Rini
This was only setting values not referenced in the code so remove it. Cc: Fabio Estevam Signed-off-by: Tom Rini --- configs/mx28evk_auart_console_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/mx28evk_auart_console_defconfig b/configs/mx28evk_auart_console_defconfig index

[PATCH 03/22] stmark2: Remove CONFIG_SERIAL_FLASH

2022-03-23 Thread Tom Rini
This is not referenced anywhere, remove it. Signed-off-by: Tom Rini --- include/configs/stmark2.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/stmark2.h b/include/configs/stmark2.h index b0167874fb7a..e1f2ee0a22b2 100644 --- a/include/configs/stmark2.h +++ b/include/conf

[PATCH 04/22] Convert CONFIG_MCFRTC et al to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_MCFRTC CONFIG_SYS_MCFRTC_BASE While at it, remove '#undef RTC_DEBUG' from these config files. Signed-off-by: Tom Rini --- arch/m68k/include/asm/immap.h| 4 configs/M53017EVB_defconfig | 2 ++ configs/M5329AFEE_defconfig | 2

[PATCH 02/22] Convert CONFIG_MCFTMR to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_MCFTMR Signed-off-by: Tom Rini --- arch/m68k/Kconfig | 3 +++ configs/M5208EVBE_defconfig | 1 + configs/M5235EVB_Flash32_defconfig| 1 + configs/M5235EVB_defconfig| 1 + configs/M5249EVB_defconfig

[PATCH 05/22] stmark2: Migrate CONFIG_SYS_EXTRA_OPTIONS to Kconfig

2022-03-23 Thread Tom Rini
This platform is the only one to set these options, so define them in the board Kconfig file. Cc: Angelo Dureghello Signed-off-by: Tom Rini --- board/sysam/stmark2/Kconfig | 7 +++ configs/stmark2_defconfig | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/board/sysam/s

[PATCH 01/22] Convert CONFIG_CF_DSPI to Kconfig

2022-03-23 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CF_DSPI Signed-off-by: Tom Rini --- arch/m68k/Kconfig | 5 + include/configs/stmark2.h | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index 97c0b7b834e7..ae8d26d671dd 100644

Re: [PATCH] mtd: gpmi: fix the gpmi bch setting unalignment issue

2022-03-23 Thread Han Xu
On 22/03/22 12:34PM, Tim Harvey wrote: > On Mon, Mar 21, 2022 at 1:37 PM Han Xu wrote: > > > > The code change fixed the kernel gpmi bch setting not aligned with > > u-boot settings issue. It still uses the legacy bch geometry as the > > default option. If users need to choose the minimum ecc stre

Re: [EXT] [PATCH] ARM: imx: romapi: Repair FlexSPI NOR boot offset

2022-03-23 Thread Marek Vasut
On 3/23/22 03:42, Ye Li wrote: Hi Marek, Hi, diff --git a/arch/arm/mach-imx/spl_imx_romapi.c b/arch/arm/mach- imx/spl_imx_romapi.c index d827de375a6..c47f5a6bdb4 100644 --- a/arch/arm/mach-imx/spl_imx_romapi.c +++ b/arch/arm/mach-imx/spl_imx_romapi.c @@ -38,14 +38,8 @@ ulong spl_romapi_raw_se

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 12:45:50PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > > > On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > > > > > The bootflow feature provide a built-in way for U-Boot to automatically > > > boot an Operating

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 08:57:36PM +0100, Michael Nazzareno Trimarchi wrote: > Hi Tom > > On Wed, Mar 23, 2022 at 8:30 PM Tom Rini wrote: > > > > On Wed, Mar 23, 2022 at 08:21:22PM +0100, Michael Nazzareno Trimarchi wrote: > > > Hi Tom > > > > > > On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrot

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Adam Ford
On Wed, Mar 23, 2022 at 2:19 PM Sean Anderson wrote: > > On 3/23/22 2:53 PM, Simon Glass wrote: > > Hi Sean, > > > > On Wed, 23 Mar 2022 at 12:33, Sean Anderson wrote: > >> > >> On 3/23/22 2:26 PM, Heiko Thiery wrote: > >>> Hi Simon, > >>> > >>> Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Gl

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Michael Nazzareno Trimarchi
Hi Tom On Wed, Mar 23, 2022 at 8:30 PM Tom Rini wrote: > > On Wed, Mar 23, 2022 at 08:21:22PM +0100, Michael Nazzareno Trimarchi wrote: > > Hi Tom > > > > On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrote: > > > > > > Hi Tom, > > > > > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > > > > >

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Sean, On Wed, 23 Mar 2022 at 13:19, Sean Anderson wrote: > > On 3/23/22 2:53 PM, Simon Glass wrote: > > Hi Sean, > > > > On Wed, 23 Mar 2022 at 12:33, Sean Anderson wrote: > >> > >> On 3/23/22 2:26 PM, Heiko Thiery wrote: > >>> Hi Simon, > >>> > >>> Am Mi., 23. März 2022 um 19:04 Uhr schrieb

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Tom, On Wed, 23 Mar 2022 at 12:59, Tom Rini wrote: > > On Wed, Mar 23, 2022 at 12:53:59PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 23 Mar 2022 at 12:49, Tom Rini wrote: > > > > > > On Wed, Mar 23, 2022 at 02:33:12PM -0400, Sean Anderson wrote: > > > > On 3/23/22 2:26 PM, Heiko Th

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 08:21:22PM +0100, Michael Nazzareno Trimarchi wrote: > Hi Tom > > On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrote: > > > > Hi Tom, > > > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > > > > > On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > > > > >

[PATCH 1/1] cmd: efidebug: simplify do_efi_boot_add()

2022-03-23 Thread Heinrich Schuchardt
When calling efi_dp_from_name() we are not interested in the device part. Just pass NULL as an argument. Suggested-by: AKASHI Takahiro Signed-off-by: Heinrich Schuchardt --- cmd/efidebug.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c i

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Michael Nazzareno Trimarchi
Hi Tom On Wed, Mar 23, 2022 at 7:46 PM Simon Glass wrote: > > Hi Tom, > > On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > > > On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > > > > > The bootflow feature provide a built-in way for U-Boot to automatically > > > boot an Operating

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Sean Anderson
On 3/23/22 2:53 PM, Simon Glass wrote: Hi Sean, On Wed, 23 Mar 2022 at 12:33, Sean Anderson wrote: On 3/23/22 2:26 PM, Heiko Thiery wrote: Hi Simon, Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : Hi Heinrich, On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt wrote: On 3/21/2

Re: [PATCH] power-domain: Fix use of uninitialized value in dev_power_domain_ctrl

2022-03-23 Thread Simon Glass
On Wed, 23 Mar 2022 at 12:26, Sean Anderson wrote: > > If dev_count_phandle_with_args returns 0 or another error, then pd will never > have been initialized by power_domain_get_by_index. Avoid comparing against > pd.dev in this situation. > > Fixes: 3e4fcfa4bc ("power-domain: fix hang in endless l

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 12:53:59PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 23 Mar 2022 at 12:49, Tom Rini wrote: > > > > On Wed, Mar 23, 2022 at 02:33:12PM -0400, Sean Anderson wrote: > > > On 3/23/22 2:26 PM, Heiko Thiery wrote: > > > > Hi Simon, > > > > > > > > Am Mi., 23. März 2022 um

Re: [PATCH] efi_loader: optional persistence of variables

2022-03-23 Thread Heinrich Schuchardt
On 3/23/22 17:22, Tom Saeger wrote: On Tue, Mar 22, 2022 at 06:03:28PM -0500, Tom Saeger wrote: On Tue, Mar 22, 2022 at 11:33:20PM +0100, Heinrich Schuchardt wrote: On 3/22/22 23:16, Tom Saeger wrote: On Tue, Mar 22, 2022 at 10:41:40PM +0100, Heinrich Schuchardt wrote: On 3/22/22 22:21, Tom S

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Tom, On Wed, 23 Mar 2022 at 12:49, Tom Rini wrote: > > On Wed, Mar 23, 2022 at 02:33:12PM -0400, Sean Anderson wrote: > > On 3/23/22 2:26 PM, Heiko Thiery wrote: > > > Hi Simon, > > > > > > Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass > > > : > > > > > > > > Hi Heinrich, > > > > > >

Re: [PATCH] sandbox: sdl: Add stub sandbox_sdl_remove_display()

2022-03-23 Thread Simon Glass
Hi Andrew, On Wed, 23 Mar 2022 at 12:06, Andrew Scull wrote: > > > +static int sandbox_sdl_remove_display(void) > > Forgot the inline :/ should I resend or can it be added when applying? Best to resend I think. With that you can add: Reviewed-by: Simon Glass > > > +{ > > + return -ENODE

Re: [PATCH] arm: apple: Fix mem layout

2022-03-23 Thread Simon Glass
Hi Mark, On Wed, 23 Mar 2022 at 04:18, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Wed, 23 Mar 2022 03:59:58 -0600 > > > > Hi Mark, > > > > On Mon, 21 Mar 2022 at 15:41, Mark Kettenis wrote: > > > > > > The current approach for setting the environment variables that > > > describe th

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Sean, On Wed, 23 Mar 2022 at 12:33, Sean Anderson wrote: > > On 3/23/22 2:26 PM, Heiko Thiery wrote: > > Hi Simon, > > > > Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : > >> > >> Hi Heinrich, > >> > >> On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt > >> wrote: > >>> > >>> On 3/

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 02:33:12PM -0400, Sean Anderson wrote: > On 3/23/22 2:26 PM, Heiko Thiery wrote: > > Hi Simon, > > > > Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : > > > > > > Hi Heinrich, > > > > > > On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt > > > wrote: > > > > >

Re: [PATCH v4 00/33] Initial implementation of standard boot

2022-03-23 Thread Simon Glass
Hi Tom, On Wed, 23 Mar 2022 at 08:05, Tom Rini wrote: > > On Sun, Mar 06, 2022 at 05:49:43AM -0700, Simon Glass wrote: > > > > The bootflow feature provide a built-in way for U-Boot to automatically > > boot an Operating System without custom scripting and other customisation. > > This is called

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Sean Anderson
On 3/23/22 2:26 PM, Heiko Thiery wrote: Hi Simon, Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : Hi Heinrich, On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt wrote: On 3/21/22 15:26, Heiko Thiery wrote: It was observed that enabling additional DM modules the configured malloc

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Heiko Thiery
Hi Simon, Am Mi., 23. März 2022 um 19:04 Uhr schrieb Simon Glass : > > Hi Heinrich, > > On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt wrote: > > > > On 3/21/22 15:26, Heiko Thiery wrote: > > > It was observed that enabling additional DM modules the configured > > > malloc value is not suffici

[PATCH] power-domain: Fix use of uninitialized value in dev_power_domain_ctrl

2022-03-23 Thread Sean Anderson
If dev_count_phandle_with_args returns 0 or another error, then pd will never have been initialized by power_domain_get_by_index. Avoid comparing against pd.dev in this situation. Fixes: 3e4fcfa4bc ("power-domain: fix hang in endless loop on i.MX8") Signed-off-by: Sean Anderson --- drivers/powe

[PATCH v3 2/3] malloc: Annotate allocator for valgrind

2022-03-23 Thread Sean Anderson
This annotates malloc and friends so that valgrind can track the heap. To do this, we need to follow a few rules: * Call VALGRIND_MALLOCLIKE_BLOCK whenever we malloc something * Call VALGRIND_FREELIKE_BLOCK whenever we free something (generally after we have done our bookkeeping) * Call VALGRIND

[PATCH v3 3/3] doc: sandbox: Document how to run sandbox with valgrind

2022-03-23 Thread Sean Anderson
This documents how to get more detailed results from valgrind made possible by the last two commits. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) doc/arch/sandbox.rst | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/ar

[PATCH v3 0/3] malloc: Enable profiling dlmalloc with valgrind

2022-03-23 Thread Sean Anderson
This series adds support for running valgrind against U-Boot's internal malloc. This allows for much more useful reports to be generated. Some example output of valgrind run against u-boot/master with this branch applied may be found at [1]. Note that valgrind gives up around acpi. This feature st

Re: [PATCH v2] board: kontron: increase the CONFIG_SYS_MALLOC_F_LEN

2022-03-23 Thread Simon Glass
Hi Heinrich, On Tue, 22 Mar 2022 at 03:25, Heinrich Schuchardt wrote: > > On 3/21/22 15:26, Heiko Thiery wrote: > > It was observed that enabling additional DM modules the configured > > malloc value is not sufficient. So lets increase the value. > > > > Signed-off-by: Heiko Thiery > > --- > > v

[PATCH v2 4/4] mvebu: uDPU: update defconfig

2022-03-23 Thread Robert Marko
Update the current uDPU defconfig with following changes: * Disable CONFIG_SPI_BOOT, its not needed for booting and the device boots from eMMC anyway. * Disable CONFIG_SYS_CONSOLE_INFO_QUIET, there is no need to diverge from other boards by not priting the console device * Enable CONFIG_CMD_MTD in

[PATCH v2 3/4] arm: mvebu: dts: uDPU: fix non-working networking

2022-03-23 Thread Robert Marko
uDPU is a bit of a specific device in that it does not have any copper ports nor any ethernet PHY-s but 2 SFP ports. This is an issue since MVNETA requires a PHY phandle or a fixed-link to be defined under its node. Since U-boot has no SFP support this is reasonable in order to know how to configu

[PATCH v2 2/4] net: mvneta: add SFP TX disable handling

2022-03-23 Thread Robert Marko
Add support for handling SFP TX disable for MVNETA in the same fashion as to what MVPP2 is doing in order to enable using SFP-s. This allows using ethernet on SFP only boards. Signed-off-by: Robert Marko --- Changes in v2: * Parse the standard SFP node for TX disable GPIO instead of using a cust

[PATCH v2 1/4] arm: mvebu: dts: uDPU: update DTS

2022-03-23 Thread Robert Marko
Update the uDPU DTS to the version that is pending upstream [1][2]. [1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20220322105857.1107016-1-robert.ma...@sartura.hr/ [2] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20220322105857.1107016-2-robert.ma...@sartura.hr/

Re: [PATCH] configs: imx6dl_mamoj_defconfig: Enable LTO on imx6dl_mamoj board

2022-03-23 Thread Fabio Estevam
On Wed, Mar 23, 2022 at 1:52 PM Michael Trimarchi wrote: > > Enable LTO on mamoj to reduce SPL and uboot size. Tested with gcc > gcc-11.1.0 > > U-Boot 2022.04-rc4-00051-g17fc5facd0 (Mar 23 2022 - 16:43:43 +0100) > > CPU: Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz) > CPU: Extended Com

Re: [PATCH V3] dt-bindings: nvmem: add U-Boot environment variables binding

2022-03-23 Thread Rob Herring
On Mon, 28 Feb 2022 14:12:50 +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > U-Boot uses environment variables for storing device setup data. It > usually needs to be accessed by a bootloader, kernel and often > user-space. > > This binding allows describing environment data located in a r

[PATCH] configs: imx6dl_mamoj_defconfig: Enable LTO on imx6dl_mamoj board

2022-03-23 Thread Michael Trimarchi
Enable LTO on mamoj to reduce SPL and uboot size. Tested with gcc gcc-11.1.0 U-Boot 2022.04-rc4-00051-g17fc5facd0 (Mar 23 2022 - 16:43:43 +0100) CPU: Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 40C Reset cause: POR Model:

Re: [PATCH v2] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Adam Ford
On Wed, Mar 23, 2022 at 11:27 AM Tom Rini wrote: > > On Wed, Mar 23, 2022 at 01:23:29PM -0300, Fabio Estevam wrote: > > On Wed, Mar 23, 2022 at 1:16 PM Tom Rini wrote: > > > > > It should probably also cover the rest of imx8, and how close to you > > > think imx6 is? And, git grep'ing I see a bu

Re: [PATCH 2/4] net: mvneta: add SFP TX disable handling

2022-03-23 Thread Robert Marko
On Wed, Mar 23, 2022 at 4:20 PM Marek Behún wrote: > > On Wed, 23 Mar 2022 14:39:01 +0100 > Robert Marko wrote: > > > Add support for handling SFP TX disable for MVNETA in the same fashion as > > to what MVPP2 is doing in order to enable using SFP-s. > > > > This allows using ethernet on SFP only

Re: [PATCH v2] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Tom Rini
On Wed, Mar 23, 2022 at 01:23:29PM -0300, Fabio Estevam wrote: > On Wed, Mar 23, 2022 at 1:16 PM Tom Rini wrote: > > > It should probably also cover the rest of imx8, and how close to you > > think imx6 is? And, git grep'ing I see a bunch of layerscape also > > overriding this with something lar

Re: [PATCH v2] imx8m: Use a sane SYS_MALLOC_F_LEN default

2022-03-23 Thread Fabio Estevam
On Wed, Mar 23, 2022 at 1:16 PM Tom Rini wrote: > It should probably also cover the rest of imx8, and how close to you > think imx6 is? And, git grep'ing I see a bunch of layerscape also > overriding this with something larger. I am not comfortable in changing imx8qxp/imx8qm/layerscape as I can

Re: [PATCH] efi_loader: optional persistence of variables

2022-03-23 Thread Tom Saeger
On Tue, Mar 22, 2022 at 06:03:28PM -0500, Tom Saeger wrote: > On Tue, Mar 22, 2022 at 11:33:20PM +0100, Heinrich Schuchardt wrote: > > On 3/22/22 23:16, Tom Saeger wrote: > > > On Tue, Mar 22, 2022 at 10:41:40PM +0100, Heinrich Schuchardt wrote: > > > > On 3/22/22 22:21, Tom Saeger wrote: > > > > >

[PATCH u-boot-marvell v2] arm: a37xx: espressobin: Fix non-working SPI

2022-03-23 Thread Pali Rohár
Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from upstream Linux kernel") ported Linux's device-tree files for Armada 3720 SOCs. This broke SPI support on some Espressobin boards and results in following U-Boot error: Loading Environment from SPIFlash... jedec_spi_nor flash@0: u

Re: [PATCH u-boot-marvell] arm: a37xx: espressobin: Fix non-working SPI

2022-03-23 Thread Pali Rohár
On Wednesday 23 March 2022 17:13:21 Stefan Roese wrote: > Hi Pali, > > On 3/23/22 14:18, Pali Rohár wrote: > > Commit 0934dddc6436 ("arm: a37xx: Update DTS files to version from > > upstream Linux kernel") ported Linux's device-tree files for Armada 3720 > > SOCs. This broke SPI support on some Es

  1   2   >