Re: [PATCH] spi: zynqmp_gqspi: Update tapdelay value

2022-11-23 Thread Dhruva Gole
On 23/11/22 11:36, Ashok Reddy Soma wrote: From: T Karthik Reddy Update GQSPI_LPBK_DLY_ADJ_DLY_1 tapdelay value for Versal for frequencies above 100MHz. Please can you help me understand why this was needed to be updated? If there was some bug/ anomally with 0x2 then can you describe why

[PATCH] fs: ext4: Fix dereferencing the null pointer 'ptr'

2022-11-23 Thread Mikhail Ilin
If memory allocation fails on line 780, then 'fail' will be jumped to and 'ptr' will be null, causing it to be dereferenced it on line 855. Thus, before using 'ptr[i]' one must make sure that the 'ptr' pointer is not NULL. Fixes: 934b14f2bb30 ("ext4: free allocations by parse_path()") Signed-o

[PATCH] xilinx: Remove unused ZYNQ_MAC_IN_EEPROM/ZYNQ_GEM_I2C_MAC_OFFSET entries

2022-11-23 Thread Michal Simek
The commit ba74bcf3e07b ("xilinx: common: Remove zynq_board_read_rom_ethaddr()") removed zynq_board_read_rom_ethaddr() because xlnx,eeprom link via DT chosen node is no longer used. But forget to remove Kconfig entries which are used by this code only. Signed-off-by: Michal Simek --- board/xili

Re: Setting MAC address from I2C EEPROM - debug / commands? (Xilinx)

2022-11-23 Thread Michal Simek
On 11/23/22 04:14, Sean Anderson wrote: On 11/22/22 20:23, David Antliff wrote: Hi, I'm looking to extract the board's MAC address from serial I2C EEPROM at boot time, so I'm trying to work out how I can tell if U-Boot is actually able to communicate with this EEPROM, outside of manual i2

Re: [PATCH] fs: ext4: Fix dereferencing the null pointer 'ptr'

2022-11-23 Thread Stefan Roese
On 23.11.22 09:06, Mikhail Ilin wrote: If memory allocation fails on line 780, then 'fail' will be jumped to and 'ptr' will be null, causing it to be dereferenced it on line 855. Thus, before using 'ptr[i]' one must make sure that the 'ptr' pointer is not NULL. Nitpicking. You seem to h

RE: [PATCH] spi: zynqmp_gqspi: Update tapdelay value

2022-11-23 Thread Soma, Ashok Reddy
Hi Dhruva, > -Original Message- > From: Dhruva Gole > Sent: Wednesday, November 23, 2022 1:34 PM > To: Soma, Ashok Reddy ; u- > b...@lists.denx.de > Cc: ja...@amarulasolutions.com; Simek, Michal ; > g...@xilinx.com; git (AMD-Xilinx) ; T Karthik Reddy > > Subject: Re: [PATCH] spi: zynqmp_

[PATCH v2] spi: zynqmp_gqspi: Update tapdelay value

2022-11-23 Thread Ashok Reddy Soma
From: T Karthik Reddy The driver was using an incorrect value for GQSPI_LPBK_DLY_ADJ_DLY_1 tapdelay for Versal for frequencies above 100MHz. Change it from 2 to 1 based on the recommended value in IP spec. Signed-off-by: T Karthik Reddy Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Up

[PATCH v3] tools: mkimage: Fix nullptr at strchr()

2022-11-23 Thread Mikhail Ilin
The copy_datafile(ifd, params.datafile) function has been implemented to copy data by reducing the number of lines in the main function. Signed-off-by: Mikhail Ilin --- tools/mkimage.c | 35 +++--- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/too

[PATCH] tools: imx8mimage: Fix handle leak

2022-11-23 Thread Mikhail Ilin
The handle "fd" was created in imx8mimage.c:178 by calling the "fopen" function and is lost in imx8mimage.c:210. Should close the 'fd' file descriptor before exiting the parse_cfg_file(char *name) function. Fixes: 6609c2663c9c ("tools: add i.MX8M image support") Signed-off-by: Mikhail Ilin --

Re: [PATCH 2/3] cmd: add maximum boot option index Kconfig option

2022-11-23 Thread Jerome Forissier
Hi, On 11/23/22 08:17, Masahisa Kojima wrote: > eficonfig command reads the all possible UEFI boot options > from 0x to 0x to construct the menu. This takes too much > time in some environment, especially for the platform using > OP-TEE and RPMB based secure storage. > For example, on Soci

[PATCH] tools: imx8image: Fix handle leak

2022-11-23 Thread Mikhail Ilin
The handle "fd" was created in imx8image.c:249 by calling the "fopen" function and is lost in imx8image.c:282. Should close the 'fd' file descriptor before exiting the parse_cfg_file(image_t *param_stack, char *name) function. Fixes: a2b96ece5be1 ("tools: add i.MX8/8X image support") Signed-of

[PATCH] tools: fdtgrep: Fix handle leak

2022-11-23 Thread Mikhail Ilin
The handle "fd" was created in fdtgrep.c:708 by calling the "open" function and is lost in fdtgrep.c:716 and fdtgrep.c:723. Close file descriptor 'fd' before exiting with an error from function utilfdt_read_err_len(const char *filename, char **buffp, off_t *len). Fixes: 1043d0a0296a ("fdt: Add

[PATCH] xilinx: Add option to select SC id instead of DUT id for SC support

2022-11-23 Thread Michal Simek
Reading MAC address from on board EEPROM requires different type for System Controller (SC). Signed-off-by: Michal Simek --- board/xilinx/Kconfig | 9 + board/xilinx/common/fru.h | 1 + board/xilinx/common/fru_ops.c | 6 +- 3 files changed, 15 insertions(+), 1 deletion(

[PATCH v3 1/2] tools: mkimage: don't print error message "Success" in case of failure

2022-11-23 Thread Marc Kleine-Budde
In case there's no struct image_type_params::set_header callback, no "errno" will be set. Don't fail with an error message, followed by "Success". Remove the printing of the human readable "errno" value. Signed-off-by: Marc Kleine-Budde --- tools/mkimage.c | 4 ++-- 1 file changed, 2 insertions(

[no subject]

2022-11-23 Thread Marc Kleine-Budde
Hello, the first patch cleans up the error message output if struct image_type_params::set_header is set, the other adds support for creating legacy images with type flat_dt. regards, Marc Changes since v2: - renamed new image type to "fdt_legacy" (suggested by Sean Anderson) Changes since v1: -

[PATCH v3 2/2] tools: mkimage: add new image type "fdt_legacy"

2022-11-23 Thread Marc Kleine-Budde
If the user select the image type "flat_dt" a FIT image will be build. This breaks the legacy use case of putting a Flat Device Tree into a legacy u-boot image. Add a new image type "fdt_legacy" to build a legacy u-boot image with a "flat_dt" type. Link: https://lore.kernel.org/all/20221028155205

[PATCH v3 0/2] tools: mkimage: cleanups + allow to create legacy image with type flat_dt

2022-11-23 Thread Marc Kleine-Budde
Hello, the first patch cleans up the error message output if struct image_type_params::set_header is set, the other adds support for creating legacy images with type flat_dt. regards, Marc Changes since v2: - renamed new image type to "fdt_legacy" (suggested by Sean Anderson) Changes since v1: -

Re: Setting MAC address from I2C EEPROM - debug / commands? (Xilinx)

2022-11-23 Thread Michael Walle
>> ethernet { >> nvmem-cells = <&mac_address>; >> nvmem-cell-names = "mac-address"; >> }; >> >> You'll need 2022.07 for this I think. This is the same method which >> Linux uses. I added this specificly to be able to load MAC addresses >> from EEPROMs without needing to hard code stuff i

Re: [PATCH 5/6] pogo_v4: Disable LTO

2022-11-23 Thread Tom Rini
On Tue, Nov 22, 2022 at 01:09:55PM -0800, Tony Dinh wrote: > Resend to include the mailing list! > > Tony > > On Tue, Nov 22, 2022 at 11:58 AM Tony Dinh wrote: > > > > Hi Tom, > > > > On Tue, Nov 22, 2022 at 9:32 AM Tom Rini wrote: > > > > > > With gcc-12.2 we now get: > > > lib/zlib/inflate.c:

[PATCH 1/2] arm: socfpga: soc64: Add mask support when enable/disable bridges

2022-11-23 Thread Jit Loon Lim
From: Ley Foon Tan HSD #18016042797-1: The existing ignore the "mask" value when call to socfpga_bridges_reset(). This patch add the mask support when bridge enable/disable. Mask value: BIT0: soc2fpga BIT1: lwhps2fpga BIT2: fpga2soc These bridges available only in Stratix 10: BIT3: f2sdram0 B

[PATCH 2/2] arm: socfpga: soc64: Add mask support to INTEL_SIP_SMC_HPS_SET_BRIDGES

2022-11-23 Thread Jit Loon Lim
From: Ley Foon Tan HSD #18016042797-2: Add mask support to INTEL_SIP_SMC_HPS_SET_BRIDGES SMC call. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/reset_manager_s10.c | 10 +++--- include/linux/intel-smc.h | 14 ++ 2 files chan

[GIT PULL] Please pull u-boot-amlogic-20221122

2022-11-23 Thread Neil Armstrong
Hi Tom, Here's changes for next release: - Implement setbrg op to meson serial device - Re-add the old PHY reset binding for nanopi-k2 The CI job is at https://source.denx.de/u-boot/custodians/u-boot-amlogic/pipelines/14199 Thanks, Neil The following changes since commit 536c642ffef545b4b5b

[PATCH] arm: socfpga: soc64: Add malloc.h

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee HSD #1308580006: Some compilers complaint implicit declaration of malloc function, and some compilers have no this issue. Adding malloc.h to resolve this issue. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/secure_vab.c | 9 +

[PATCH] arm: socfpga: Define the usage of boot scratch cold reg 8

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee The boot scratch cold reg 8 is shared between DBE, DDR init progress update and Linux EDAC. This patch defines how the bits are used by respective features above and their macro names used in U-Boot. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- .../includ

[PATCH] arm: socfpga: n5x: Update DDR init progress bit

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee The bit[30] of boot scratch cold 8 register is used as DDR init progress tracking by SDM when watchdog is triggered due to ddr init hang, so that SDM can run a clean reset to DDR subsystem. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/ddr/altera/s

[PATCH] ddr: altera: n5x: Checking DDR DBE

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee DDR need to be initialized and running calibration if DBE is triggered Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/ddr/altera/sdram_n5x.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/drive

[PATCH] ddr: altera: n5x: Checking DDR init hang before reset due to watchdog

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee DDR need to be initialized and running calibration if DDR init hang before reset due to watchdog. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/ddr/altera/sdram_n5x.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletion

[PATCH] arm: socfpga: soc64: Fix with correct header file

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee HSD #18016722456: Includes only required header for mdelay function. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/secure_vab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/secure_vab.c b/

[PATCH] ddr: altera: n5x: Return error if invalid DDR type is detected in argument

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee Return error immediately if invalid DDR type is detected in argument so that uninitialized local variables such val and upd_val would not be used. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/ddr/altera/sdram_n5x.c | 3 +++ 1 file changed, 3 inser

[PATCH] ddr: altera: n5x: Copies calibration data to DDR when DDR retention is set

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee Ensure the PHY calibration data is copied to DDR only when DDR retention is set. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/ddr/altera/sdram_n5x.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/ddr/altera

[PATCH] ddr: altera: n5x: Ensure correct size of result for correct type casting

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee Klockwork reported there is potential value overflow with incorrect typecast, but this is not valid in this arithmetic implementation because result is never over 32-bit size. The code is improved to ensure correct size of result returned with correct type casting for the sak

Re: Please pull u-boot-dm

2022-11-23 Thread Tom Rini
On Tue, Nov 22, 2022 at 07:13:03PM -0700, Simon Glass wrote: > Hi Tom, > > The following changes since commit 521277ec15eb794229403ec24b8c00a4ff02b0b6: > > Merge tag 'xilinx-for-v2023.01-rc3' of > https://source.denx.de/u-boot/custodians/u-boot-microblaze (2022-11-22 > 12:33:48 -0500) > > are

Re: Setting MAC address from I2C EEPROM - debug / commands? (Xilinx)

2022-11-23 Thread Michal Simek
On 11/23/22 14:27, Michael Walle wrote: ethernet { nvmem-cells = <&mac_address>; nvmem-cell-names = "mac-address"; }; You'll need 2022.07 for this I think. This is the same method which Linux uses. I added this specificly to be able to load MAC addresses from EEPROMs without needi

[PATCH] ddr: altera: n5x: Ensure 'cal->header.data_len' is validated

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee Klocwork reported the unvalidated integer value 'cal->header.data_len' is used but this is not a issue because the proper value is calculated before assigning 'cal->header.data_len' and CRC32 is generated before saving this value into QSPI to ensure data integrity when readin

Re: Setting MAC address from I2C EEPROM - debug / commands? (Xilinx)

2022-11-23 Thread Sean Anderson
On 11/23/22 10:11, Michal Simek wrote: On 11/23/22 14:27, Michael Walle wrote: ethernet {   nvmem-cells = <&mac_address>;   nvmem-cell-names = "mac-address"; }; You'll need 2022.07 for this I think. This is the same method which Linux uses. I added this specificly to be able to load M

[PATCH] drivers: fpga: Add FPGA configuration during bootm for Intel SOCFPGA

2022-11-23 Thread Jit Loon Lim
From: Yau Wai Gan This enable the capability to automatically perform FPGA configuration when booting Linux FIT image via bootm command. The FPGA configuration bitstream shall be packed within the FIT image. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- drivers/fpga/altera.c | 41

[PATCH v2] configs: roc-pc-rk3399: Enable rockchip efuse support

2022-11-23 Thread Christopher Obbard
Enable efuse support which allows reading of the cpuid#, serial# and also generates a unique mac address from the board's serial. Signed-off-by: Christopher Obbard --- Changes in v2: - added missing configuration symbol CONFIG_MISC_INIT_R=y configs/roc-pc-mezzanine-rk3399_defconfig | 2 ++ conf

[PATCH 0/2] adc: stm32mp15: add support of generic channels binding

2022-11-23 Thread Olivier Moysan
Add support of generic IIO channels binding: ./devicetree/bindings/iio/adc/adc.yaml Keep support of legacy property st,adc-channels for backward compatibility. However, the st,adc-channels property is deprecated, and generic channel bindings should be used instead. Mixing of generic and legacy p

[PATCH 1/2] adc: stm32mp15: split channel init into several routines

2022-11-23 Thread Olivier Moysan
Split stm32_adc_chan_of_init channel initialization function into several routines to increase readability and prepare channel generic binding handling. Signed-off-by: Olivier Moysan --- drivers/adc/stm32-adc.c | 44 +++-- 1 file changed, 34 insertions(+), 10

[PATCH 2/2] adc: stm32mp15: add support of generic channels binding

2022-11-23 Thread Olivier Moysan
Add support of generic IIO channels binding: ./devicetree/bindings/iio/adc/adc.yaml Keep support of st,adc-channels for backward compatibility. Signed-off-by: Olivier Moysan --- drivers/adc/stm32-adc.c | 51 - 1 file changed, 45 insertions(+), 6 deletions

[PATCH 0/2] mach-meson: port dwc2_otg usage to CONFIG_DM_USB_GADGET=y

2022-11-23 Thread Mattijs Korpershoek
While working on some USB bugs on the VIM3L board, we stumbled upon the fact that mach-meson still uses legacy board_usb_*() functions instead of using DM [1] This series aim to switch the g12a based boards to use CONFIG_DM_USB_GADGET and removes the board_usb_*() logic. * The first patch adds m

[PATCH 1/2] usb: dwc3-meson-g12a: force mode on child add/removal

2022-11-23 Thread Mattijs Korpershoek
arch/mach-meson has some custom usb logic, in particular: * on board_usb_init(), we force USB_DR_MODE_PERIPHERAL * on board_usb_cleanup(), we force USB_DR_MODE_HOST With DM_USB_GADGET=y, board_usb_init/cleanup() are no longer used when we call usb_gadget_initialize(). Instead, the generic (from ud

[PATCH 2/2] ARM: meson: g12a: switch dwc2 otg to DM

2022-11-23 Thread Mattijs Korpershoek
With CONFIG_DM_USB_GADGET=y, we no longer need any board_usb_*() logic because: * the dwc2 driver is DM compatible, and handles its own clock enabling * the dwc3-meson-g12a glue drivers handles "force mode switching" Remove all mach-meson/g12a usb code and enable CONFIG_DM_USB_GADGET. Note: Only

Re: [PATCH v2 2/2] mach-meson: g12a: reset usb controller in reset_misc()

2022-11-23 Thread Mattijs Korpershoek
On Tue, Oct 11, 2022 at 19:57, neil.armstr...@linaro.org wrote: > On 11/10/2022 18:36, Mattijs Korpershoek wrote: >> On Tue, Oct 11, 2022 at 17:39, Marek Vasut wrote: >> >>> On 10/11/22 09:12, neil.armstr...@linaro.org wrote: On 10/10/2022 19:16, Marek Vasut wrote: > On 10/10/22 18:22,

[PATCH] cmd: fix dependency for CMD_CLS

2022-11-23 Thread John Keeping
It seems this symbol was missed when renaming DM_VIDEO -> VIDEO. Update it. Fixes: b86986c7b3 ("video: Rename CONFIG_DM_VIDEO to CONFIG_VIDEO") Signed-off-by: John Keeping --- cmd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 1092fb9

Re: [GIT PULL] Please pull u-boot-amlogic-20221122

2022-11-23 Thread Tom Rini
On Wed, Nov 23, 2022 at 03:08:23PM +0100, Neil Armstrong wrote: > > Hi Tom, > > Here's changes for next release: > - Implement setbrg op to meson serial device > - Re-add the old PHY reset binding for nanopi-k2 > > The CI job is at > https://source.denx.de/u-boot/custodians/u-boot-amlogic/pipe

[PATCH v5 0/3] Support UEFI SPI I/O protocol

2022-11-23 Thread Paul Barker
These patches add support for the UEFI SPI I/O protocol defined in the UEFI Platform Initialization (PI) Specification, Version 1.7 Errata A (April 2020). This allows a UEFI application to interact with devices on the SPI bus. This support is initially intended to be used to communicate with SPI d

[PATCH v5 1/3] efi_loader: Add SPI I/O protocol support

2022-11-23 Thread Paul Barker
This addition allows UEFI applications running under u-boot to access peripherals on SPI busses. It is based on the UEFI Platform Initialization (PI) Specification, Version 1.7 Errata A (April 2020). Only the core functionality required to discover SPI peripherals and communicate with them is curre

[PATCH v5 2/3] efi_selftest: Add tests for SPI protocol support

2022-11-23 Thread Paul Barker
These tests ensure that the new UEFI SPI I/O protocol support works as expected. They intended to execute on the sandbox target. Signed-off-by: Paul Barker --- MAINTAINERS | 1 + arch/sandbox/dts/test.dts| 13 + lib/efi_selftest/Makefile

[PATCH v5 3/3] arm: dts: am335x-sancloud-bbe-lite: UEFI SPI export

2022-11-23 Thread Paul Barker
Add properties to the Authenta SPI flash device node to enable access by a UEFI application using a fixed GUID. Signed-off-by: Paul Barker --- arch/arm/dts/am335x-sancloud-bbe-lite-u-boot.dtsi | 13 ++--- arch/arm/dts/am335x-sancloud-bbe-lite.dts | 2 +- 2 files changed, 11 inse

Re: [PATCH v4 1/1] u-boot-initial-env: rework make target

2022-11-23 Thread Tom Rini
On Tue, Nov 08, 2022 at 09:52:22AM +0100, Max Krummenacher wrote: > From: Max Krummenacher > > With LTO enabled the U-Boot initial environment is no longer stored > in an easy accessible section in env/common.o. I.e. the section name > changes from build to build, its content maybe compressed an

Re: [PATCH v4 1/1] u-boot-initial-env: rework make target

2022-11-23 Thread Pali Rohár
On Wednesday 23 November 2022 13:18:40 Tom Rini wrote: > On Tue, Nov 08, 2022 at 09:52:22AM +0100, Max Krummenacher wrote: > > > From: Max Krummenacher > > > > With LTO enabled the U-Boot initial environment is no longer stored > > in an easy accessible section in env/common.o. I.e. the section

Re: [PATCH v4 1/1] u-boot-initial-env: rework make target

2022-11-23 Thread Tom Rini
On Wed, Nov 23, 2022 at 07:22:52PM +0100, Pali Rohár wrote: > On Wednesday 23 November 2022 13:18:40 Tom Rini wrote: > > On Tue, Nov 08, 2022 at 09:52:22AM +0100, Max Krummenacher wrote: > > > > > From: Max Krummenacher > > > > > > With LTO enabled the U-Boot initial environment is no longer sto

Re: [PATCH] cmd: fix dependency for CMD_CLS

2022-11-23 Thread Heinrich Schuchardt
On 11/23/22 18:16, John Keeping wrote: It seems this symbol was missed when renaming DM_VIDEO -> VIDEO. Update it. Fixes: b86986c7b3 ("video: Rename CONFIG_DM_VIDEO to CONFIG_VIDEO") Signed-off-by: John Keeping Reviewed-by: Heinrich Schuchardt --- cmd/Kconfig | 2 +- 1 file changed, 1

Re: [PATCH 2/2] sunxi: video: Add support for active low LCD power pin

2022-11-23 Thread Andre Przywara
On Tue, 22 Nov 2022 21:57:03 +0100 Giulio Benetti wrote: Hi, > On some board gpio to power LCD can be active low, so let's add > CONFIG_VIDEO_LCD_POWER_ACTIVE_LOW to allow this. This is all so very sadly outdated code, which could be all solved very nicely by just looking at the DT. Do you desc

Re: Setting MAC address from I2C EEPROM - debug / commands? (Xilinx)

2022-11-23 Thread David Antliff
Hi Sean, thank you for your reply. On 23 Nov 2022, Sean Anderson wrote: > On 11/22/22 20:23, David Antliff wrote: > > My question is - is the 'i2c' command now the accepted and best way to > > interact with an > > I2C EEPROM? Or is there another command I can enable (other than "eeprom") > > tha

Re: Setting MAC address from I2C EEPROM - debug / commands? (Xilinx)

2022-11-23 Thread David Antliff
Hi Michal, On 23 Nov 2022, Michal Simek wrote: >> On 11/23/22 04:14, Sean Anderson wrote: >>> On 11/22/22 20:23, David Antliff wrote: >>> Hi, >>> >>> I'm looking to extract the board's MAC address from serial I2C EEPROM at >>> boot >>> time, so >>> I'm trying to work out how I can tell if U-Boot

Re: [PATCH 5/6] pogo_v4: Disable LTO

2022-11-23 Thread Tony Dinh
Hi Tom, On Wed, Nov 23, 2022 at 5:45 AM Tom Rini wrote: > > On Tue, Nov 22, 2022 at 01:09:55PM -0800, Tony Dinh wrote: > > Resend to include the mailing list! > > > > Tony > > > > On Tue, Nov 22, 2022 at 11:58 AM Tony Dinh wrote: > > > > > > Hi Tom, > > > > > > On Tue, Nov 22, 2022 at 9:32 AM To

Re: [PATCH 4/6] arm: Use the WEAK assembly entry point consistently

2022-11-23 Thread Pali Rohár
On Tuesday 22 November 2022 12:31:56 Tom Rini wrote: > It is a bad idea, and more modern toolchains will fail, if you declare > an assembly function to be global and then weak, instead of declaring it > weak to start with. Update assorted assembly files to use the WEAK macro > directly. > > Signed

[PATCH] sunxi: define SYS_MONITOR_LEN in Kconfig, not _defconfig

2022-11-23 Thread Andre Przywara
Commit 08574ed339fb ("Convert CONFIG_SYS_MONITOR_LEN to Kconfig") moved the definition of said config variable from the common sunxi header to *every board's* defconfig. This is a platform choice, not board specific, so remove the variable from there, instead set the one value for all Allwinner boa

Re: [PATCH 4/6] arm: Use the WEAK assembly entry point consistently

2022-11-23 Thread Tom Rini
On Wed, Nov 23, 2022 at 11:50:59PM +0100, Pali Rohár wrote: > On Tuesday 22 November 2022 12:31:56 Tom Rini wrote: > > It is a bad idea, and more modern toolchains will fail, if you declare > > an assembly function to be global and then weak, instead of declaring it > > weak to start with. Update a

Re: [PATCH 4/6] arm: Use the WEAK assembly entry point consistently

2022-11-23 Thread Pali Rohár
On Wednesday 23 November 2022 18:15:17 Tom Rini wrote: > On Wed, Nov 23, 2022 at 11:50:59PM +0100, Pali Rohár wrote: > > On Tuesday 22 November 2022 12:31:56 Tom Rini wrote: > > > It is a bad idea, and more modern toolchains will fail, if you declare > > > an assembly function to be global and then

[PATCH] Nokia RX-51: Use ENTRY/ENDPROC for save_boot_params

2022-11-23 Thread Pali Rohár
ENTRY/ENDPROC macros from linux/linkage.h will make code more readable and also will properly mark assembly symbol in ELF binary as function symbol. Signed-off-by: Pali Rohár --- board/nokia/rx51/lowlevel_init.S | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/noki

RE: [PATCH 1/3] ram: ast2600: Fix incorrect statement of the register polling

2022-11-23 Thread Ryan Chen
> -Original Message- > From: Dylan Hung > Sent: Friday, November 11, 2022 3:30 PM > To: Ryan Chen ; ChiaWei Wang > ; j...@jms.id.au; Dylan Hung > ; u-boot@lists.denx.de > Cc: BMC-SW > Subject: [PATCH 1/3] ram: ast2600: Fix incorrect statement of the register > polling > > The condition "

RE: [PATCH 2/3] ram: ast2600: Improve ddr4 timing and signal quality

2022-11-23 Thread Ryan Chen
> -Original Message- > From: Dylan Hung > Sent: Friday, November 11, 2022 3:30 PM > To: Ryan Chen ; ChiaWei Wang > ; j...@jms.id.au; Dylan Hung > ; u-boot@lists.denx.de > Cc: BMC-SW > Subject: [PATCH 2/3] ram: ast2600: Improve ddr4 timing and signal quality > > Adjust the following setti

RE: [PATCH 3/3] ram: ast2600: Align the RL and WL setting

2022-11-23 Thread Ryan Chen
> -Original Message- > From: Dylan Hung > Sent: Friday, November 11, 2022 3:30 PM > To: Ryan Chen ; ChiaWei Wang > ; j...@jms.id.au; Dylan Hung > ; u-boot@lists.denx.de > Cc: BMC-SW > Subject: [PATCH 3/3] ram: ast2600: Align the RL and WL setting > > Use macro to represent the RL and WL

Re: [PATCH 2/3] cmd: add maximum boot option index Kconfig option

2022-11-23 Thread Masahisa Kojima
Hi Heinrich, On Wed, 23 Nov 2022 at 16:26, Heinrich Schuchardt wrote: > > On 11/23/22 08:17, Masahisa Kojima wrote: > > eficonfig command reads the all possible UEFI boot options > > from 0x to 0x to construct the menu. This takes too much > > time in some environment, especially for the

Re: [PATCH 2/3] cmd: add maximum boot option index Kconfig option

2022-11-23 Thread Masahisa Kojima
Hi Jerome, On Wed, 23 Nov 2022 at 19:57, Jerome Forissier wrote: > > Hi, > > On 11/23/22 08:17, Masahisa Kojima wrote: > > eficonfig command reads the all possible UEFI boot options > > from 0x to 0x to construct the menu. This takes too much > > time in some environment, especially for t

[PATCH] ddr: altera: n5x: Fixing debug log typo

2022-11-23 Thread Jit Loon Lim
From: Tien Fong Chee Fixing debug log typo. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/ddr/altera/sdram_n5x.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/ddr/altera/sdram_n5x.c b/drivers/ddr/altera/sdram_n5x.c index 8a5f0

Re: [PATCH v3 2/2] tools: mkimage: add new image type "fdt_legacy"

2022-11-23 Thread Sean Anderson
On 11/23/22 06:55, Marc Kleine-Budde wrote: If the user select the image type "flat_dt" a FIT image will be build. This breaks the legacy use case of putting a Flat Device Tree into a legacy u-boot image. Add a new image type "fdt_legacy" to build a legacy u-boot image with a "flat_dt" type. Li

Re: [PATCH v3 2/3] clk: stm32mp13: introduce STM32MP13 RCC driver

2022-11-23 Thread Sean Anderson
On 11/22/22 03:05, Gabriel Fernandez wrote: STM32MP13 RCC driver uses Common Clock Framework and also a 'clk-stm32-core' API. Then STM32MPx RCC driver will contain only data configuration (gates, mux, dividers and the way to check security) or some specific clocks. This API will be used by all ne

Re: [PATCH v3 1/3] dt-bindings: stm32mp13: add clock & reset support for STM32MP13

2022-11-23 Thread Sean Anderson
On 11/22/22 03:05, Gabriel Fernandez wrote: Add support of stm32mp13 DT bindings of clock and reset. Signed-off-by: Gabriel Fernandez Reviewed-by: Patrick Delaunay --- (no changes since v1) MAINTAINERS | 2 + include/dt-bindings/clock/stm32mp13-clks.h

Re: [PATCH v1] clk: nuvoton: fix bug for calculate pll clock

2022-11-23 Thread Sean Anderson
On 11/21/22 04:15, Jim Liu wrote: Fix bug for npcm7xx bmc calculate pll clock. PLLCON1 need to divide by 2. Signed-off-by: Jim Liu --- drivers/clk/nuvoton/clk_npcm7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/nuvoton/clk_npcm7xx.c b/drivers/clk/nuvoto

Re: [PATCH v2] spi: zynqmp_gqspi: Update tapdelay value

2022-11-23 Thread Dhruva Gole
Hi, On 23/11/22 14:34, Ashok Reddy Soma wrote: From: T Karthik Reddy The driver was using an incorrect value for GQSPI_LPBK_DLY_ADJ_DLY_1 tapdelay for Versal for frequencies above 100MHz. Change it from 2 to 1 based on the recommended value in IP spec. Thanks, this looks much clearer ;) Si

R: Patch proposal - mkimage: fit: Support signed conf 'auto' FITs

2022-11-23 Thread Pegorer Massimo
Hi Simon, > Da: Simon Glass > Inviato: mercoledì 23 novembre 2022 03:09 > > Hi Pegorer, > > On Sat, 19 Nov 2022 at 11:01, Pegorer Massimo > wrote: > > > > Commit 87b0af9317cb4105f3f29cb0a4c28c7cd87ea65f added support for > > signing auto-generated (mkimage -f auto) FIT. Unfortunately, this s