[PATCH v2 1/5] dts: qcs615-ride-u-boot.dtsi: Add memory entry to bootup

2025-05-20 Thread Aswin Murugan
Added the memory entry to bootup. Signed-off-by: Aswin Murugan --- v2: - No changes to this patch in v2 --- arch/arm/dts/qcs615-ride-u-boot.dtsi | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 arch/arm/dts/qcs615-ride-u-boot.dtsi diff --git a/arch/arm/dts/qcs615-ride-u

[PATCH v2 5/5] configs: add qcs615_defconfig

2025-05-20 Thread Aswin Murugan
Introduce a defconfig for QCS615 based boards. Signed-off-by: Aswin Murugan --- v2: - No changes to this patch in v2 --- configs/qcom_qcs615_defconfig | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 configs/qcom_qcs615_defconfig diff --git a/configs/qcom_qcs615

[PATCH v2 0/5] Introduce support for QCS615 SoC based Platform

2025-05-20 Thread Aswin Murugan
These patches introduce the initial support code needed for the Qualcomm QCS615 SoC IQ6 based Platform. Please see [1] for SoC related details Thanks Aswin 1 - https://docs.qualcomm.com/bundle/publicresource/87-83838-1_REV_A_Qualcomm_IQ6_Series_Product_Brief.pdf Signed-off-by: Aswin Murugan -

[PATCH v2 4/5] qcom_defconfig: Enable QCS615 clock driver

2025-05-20 Thread Aswin Murugan
Enable the QCS615 clock driver in Qualcomm defconfig. Signed-off-by: Aswin Murugan --- v2: - No changes to this patch in v2 --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index b8399701da0..8510828824f 100644 --- a/c

[PATCH v2 3/5] clk/qcom: qcs615: Add GCC clock driver for QCS615

2025-05-20 Thread Aswin Murugan
Port Linux's gcc-qcs615.c driver to U-Boot for basic bring-up. Reviewed-by: Neil Armstrong Signed-off-by: Aswin Murugan --- Changes in v2: - Replaced the "1" with BIT(0) in GATE_CLK() --- drivers/clk/qcom/Kconfig| 8 ++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock-q

[PATCH v2 2/5] phy: qcom: Enable QMP UFS PHY driver for QCS615

2025-05-20 Thread Aswin Murugan
Enable QMP phy for QCS615, referenced from Linux. Reviewed-by: Neil Armstrong Signed-off-by: Aswin Murugan --- v2: - No changes to this patch in v2 --- drivers/phy/qcom/phy-qcom-qmp-ufs.c | 127 1 file changed, 127 insertions(+) diff --git a/drivers/phy/qcom/phy-qc

Re: [PATCH v4 1/2] BeagleBoard: Bring it back with updates.

2025-05-20 Thread Derald D. Woods
On Sat, May 17, 2025 at 09:28:00PM +, OMAP at BSF wrote: > * Converted to using DM_I2C. > * New config file for xM. > * Run 'patman' on patches. > * Use upstream device tree files. > > Signed-off-by: Steven Hill > --- > v2: Use upstream device trees. > v3: No change. > v4: Update name in MAIN

Re: [PATCH v5 1/6] arm: uniphier: Change _debug_uart_putc function to inline

2025-05-20 Thread Kever Yang
On 2025/5/20 19:36, Lukasz Czechowski wrote: Update the definition of _debug_uart_putc to static inline. This matches the instructions in include/debug_uart.h and provides consistency with implementations for other platforms. Signed-off-by: Lukasz Czechowski Reviewed-by: Kever Yang Thanks,

Re: [PATCH v5 2/6] efi: stub: Change _debug_uart_putc function to inline

2025-05-20 Thread Kever Yang
On 2025/5/20 19:36, Lukasz Czechowski wrote: Update definition of _debug_uart_putc to static inline. This will allow to avoid compilation warnings about unused code after introduction of patch changing debug uart functions to dummies if CONFIG_DEBUG_UART is not set. This also matches the instru

Re: [PATCH v5 4/6] debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART is not set

2025-05-20 Thread Kever Yang
On 2025/5/20 19:36, Lukasz Czechowski wrote: In case DEBUG UART is not used, define dummy macros replacing the actual function implementations that will not be available. This allows to compile code and avoid linker errors. Redefine the DEBUG_UART_FUNCS macro if DEBUG UART is not available, to

RE: [PATCH] mmc: am654_sdhci: Clear UHS_MODE_SELECT when < MMC_HS_52

2025-05-20 Thread Peng Fan
> Subject: [PATCH] mmc: am654_sdhci: Clear UHS_MODE_SELECT when > < MMC_HS_52 > > This clears UHS_MODE_SELECT for timing modes < MMC_HS_52. > > When initializing to HS400 mode, the host controller downgrades to > non-uhs modes so clear UHS_MODE_SELECT at modes < MMC_HS_52. Typo: '<' -> '<='

Re: [PATCH v1] linux/sizes.h: sync from kernel

2025-05-20 Thread 高惟杰
On Tue, 2025-05-20 at 11:09 +0200, Emanuele Ghidoli wrote: > External email : Please do not click links or open attachments until > you have verified the sender or the content. > > > From: Emanuele Ghidoli > > The kernel added new size definitions and substituted the > boilerplate/reference to

[PATCH 0/1] fs: fs_devread should log error when read outside partition

2025-05-20 Thread Tony Dinh
Currently there is a bug in u-boot Ext4 filesystem driver that causes a "read outside partition" error. This bug only shows when the HDD is greater than 2TB in capacity (i.e. driver using uint64 lbaint_t). But all users will see is u-boot silently failed to read the HDD file system directory. Fo

[PATCH 1/1] fs: fs_devread should log error when read outside partition

2025-05-20 Thread Tony Dinh
Log the error if fs_devread() fails when trying to reading outside partition. This will make bug reporting easier. Signed-off-by: Tony Dinh --- fs/fs_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs_internal.c b/fs/fs_internal.c index ab4847ac257..ff27c564efc

[PATCH] mmc: am654_sdhci: Clear UHS_MODE_SELECT when < MMC_HS_52

2025-05-20 Thread Judith Mendez
This clears UHS_MODE_SELECT for timing modes < MMC_HS_52. When initializing to HS400 mode, the host controller downgrades to non-uhs modes so clear UHS_MODE_SELECT at modes < MMC_HS_52. This fixes eMMC writes on j7200 EVM. Fixes: 6067aa66b3bb ("mmc: am654_sdhci: Add am654_sdhci_set_control_reg")

[PATCH v2] bootm: Fix bmi->images pointer not initialized in some cases

2025-05-20 Thread Benjamin ROBIN
When building with only bootz command, without bootm, images pointer inside bootm_info structure is not initialized. And since this structure is stored in stack, the generated error is kind of random, but most of the time this will generate: "ramdisk - allocation error". Also, after analysis, this

Re: [PATCH] bootm: Fix bootz, bmi->images pointer was uninitialized

2025-05-20 Thread Benjamin ROBIN
Le Mon, May 19, 2025 at 03:06:08PM -0600, Tom Rini a écrit : > Good catch. This should also get a: > Fixes: c2211ff65136 ("bootm: Add more fields to bootm_info") Thank you for the review. I am preparing a v2 of this patch. > And after reading the code and grepping around more, I think we should >

Re: [PATCH 2/4] iommu: qcom-smmu: Introduce sc7180 compatible string

2025-05-20 Thread Casey Connolly
On 5/20/25 15:25, George Chan via B4 Relay wrote: From: George Chan Add basic compatible string for sc7180 family soc. Signed-off-by: Vitalii Skorkin Co-developed-by: George Chan Signed-off-by: George Chan Reviewed-by: Casey Connolly --- drivers/iommu/qcom-hyp-smmu.c | 1 + 1 fil

[PATCH] dtc: Add Kconfig option to pad device tree blob

2025-05-20 Thread Eric Schikschneit
This will allow arch(s) that use device tree blobs to pad the end of the device tree so they can be modified by board files at run time. This will help prevent errors such as FDT_ERR_NOSPACE from occuring. Signed-off-by: Eric Schikschneit --- arch/Kconfig | 7 +++ arch/arc/

Re: [PATCH v2 1/4] board: bsh: imx6ulz_smm_m2: Match SPL DDR settings to DCD table

2025-05-20 Thread Michael Nazzareno Trimarchi
Hi Dario On Tue, May 20, 2025 at 5:07 PM Dario Binacchi wrote: > > From: Michael Trimarchi > > When using SPL on i.mx6 we frequently notice some DDR initialization > mismatches between the SPL code and the non-SPL code. > > As the non-SPL code have been tested for long time and proves to be > re

Re: [PATCH v2] caam: bugfix CAAM error on startup

2025-05-20 Thread Fabio Estevam
On Tue, May 20, 2025 at 9:53 AM Olaf Baehring wrote: > > In rare cases U-Boot returns an error message when intantiating the RNG > of the CAAM device: > “SEC0: RNG4 SH0 instantiation failed with error 0x” > This means, that even when the CAAM device reports a finished > descriptor, none

[PATCH v2 2/4] board: bsh: imx6ulz_smm_m2: Add support for 256 MiB DRAM

2025-05-20 Thread Dario Binacchi
From: Simon Holesch Calibration values were calculated using the NXP tool I.MX6ULL_DDR3_Script_Aid_V0.01.xlsx Signed-off-by: Wolfgang Birkner Signed-off-by: Simon Holesch Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v2: - Use standard C comment style boar

[PATCH v2 4/4] board: bsh: imx6ulz_smm_m2: Add delay between DRAM read access

2025-05-20 Thread Dario Binacchi
From: Michael Bode A small delay between DRAM read access with wrong parameters and reconfiguration is necessary. Without a delay between DRAM read access and a following reconfiguration this reconfiguration fails for certain DRAM chips (Nanya). Signed-off-by: Michael Bode Signed-off-by: Michae

[PATCH v2 3/4] board: bsh: imx6ulz_smm_m2: Add support for 512 MiB DRAM

2025-05-20 Thread Dario Binacchi
From: Michael Bode Calibration values were calculated using the NXP tool I.MX6ULL_DDR3_Script_Aid_V0.01.xlsx Signed-off-by: Michael Bode Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v2: - Use standard C comment style board/bsh/imx6ulz_smm_m2/Makefile

[PATCH v2 1/4] board: bsh: imx6ulz_smm_m2: Match SPL DDR settings to DCD table

2025-05-20 Thread Dario Binacchi
From: Michael Trimarchi When using SPL on i.mx6 we frequently notice some DDR initialization mismatches between the SPL code and the non-SPL code. As the non-SPL code have been tested for long time and proves to be reliable, let's configure the DDR in the exact same way as the non-SPL case. The

[PATCH v3 0/5] Restore imx8mn_bsh_smm_s2 properly booting

2025-05-20 Thread Dario Binacchi
Commits [1] and [2] broke the booting of the BSH SMM S2 board. The patches in this series restore proper booting. [1] 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") [2] dda454e933c6 ("serial: mxc: Support bulk enabling clocks") Changes in v3: - Drop patch 4/4 "serial: mxc: restore bo

Re: [PATCH 4/4] usb: gadget: Introduce usb gadget vendor/product default id for ARCH_QCOM

2025-05-20 Thread Neil Armstrong
On 20/05/2025 16:25, George Chan via B4 Relay wrote: From: George Chan Currently vendor/product id are both 0, and that might not as we want. Set to some arbitary known value that we can make it work more smoothly. Signed-off-by: George Chan --- drivers/usb/gadget/Kconfig | 2 ++ 1 file ch

Re: [PATCH 3/4] boot: bootmeth_android: Conditionally dependent on abootimg

2025-05-20 Thread Tom Rini
On Tue, May 20, 2025 at 10:25:58PM +0800, George Chan via B4 Relay wrote: > From: George Chan > > If target u-boot img do not support androidboot v3 or greater, > abootimg might not be necessary. > > aarch64-linux-gnu-ld.bfd: boot/bootmeth_android.o: in function > `boot_android_normal': > /hom

Re: [PATCH 1/4] image-android: Prepend/postpend default bootargs value with given bootcmd

2025-05-20 Thread Tom Rini
On Tue, May 20, 2025 at 10:25:56PM +0800, George Chan via B4 Relay wrote: > From: George Chan > > Control how default bootargs is prepended or postpended to boot param found > from androidboot img. > > Signed-off-by: George Chan > --- > boot/Kconfig | 8 > boot/image-android.

Re: [GIT PULL] Please pull mmc-2025-05-20

2025-05-20 Thread Tom Rini
On Tue, 20 May 2025 23:33:36 +0800, Peng Fan wrote: > Please pull mmc-2025-05-20 > > - > Fix mmc cv1800b build without MMC_SUPPORTS_TUNING > - > > CI: https://source.denx.de/u-boot/custodians/u-boot-m

[PATCH 4/4] usb: gadget: Introduce usb gadget vendor/product default id for ARCH_QCOM

2025-05-20 Thread George Chan via B4 Relay
From: George Chan Currently vendor/product id are both 0, and that might not as we want. Set to some arbitary known value that we can make it work more smoothly. Signed-off-by: George Chan --- drivers/usb/gadget/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/K

[PATCH 0/4] A series of patch for enable sc7180 android boot

2025-05-20 Thread George Chan via B4 Relay
insertions(+), 3 deletions(-) --- base-commit: 126a88d49bcae04bbfc0d6723097cd6341355ade change-id: 20250520-sc7180-android-boot-a845ecf48a48 Best regards, -- George Chan

[PATCH 1/4] image-android: Prepend/postpend default bootargs value with given bootcmd

2025-05-20 Thread George Chan via B4 Relay
From: George Chan Control how default bootargs is prepended or postpended to boot param found from androidboot img. Signed-off-by: George Chan --- boot/Kconfig | 8 boot/image-android.c | 10 -- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/boot/Kcon

[PATCH 3/4] boot: bootmeth_android: Conditionally dependent on abootimg

2025-05-20 Thread George Chan via B4 Relay
From: George Chan If target u-boot img do not support androidboot v3 or greater, abootimg might not be necessary. aarch64-linux-gnu-ld.bfd: boot/bootmeth_android.o: in function `boot_android_normal': /home/user/sources/u-boot-next/boot/bootmeth_android.c:541:(.text.boot_android_normal+0xd0): u

[PATCH 2/4] iommu: qcom-smmu: Introduce sc7180 compatible string

2025-05-20 Thread George Chan via B4 Relay
From: George Chan Add basic compatible string for sc7180 family soc. Signed-off-by: Vitalii Skorkin Co-developed-by: George Chan Signed-off-by: George Chan --- drivers/iommu/qcom-hyp-smmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/qcom-hyp-smmu.c b/drivers/iommu/qcom

[GIT PULL] Please pull mmc-2025-05-20

2025-05-20 Thread Peng Fan
Hi Tom, Please pull mmc-2025-05-20 - Fix mmc cv1800b build without MMC_SUPPORTS_TUNING - CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/26241 Thanks, Peng The following changes

Re: [PATCH] mmc: cv1800b: Fix build without MMC_SUPPORTS_TUNING

2025-05-20 Thread Peng Fan (OSS)
From: Peng Fan On Sun, 27 Apr 2025 23:46:19 +0200, Alexander Sverdlin wrote: > That's how it looks like without CONFIG_MMC_SUPPORTS_TUNING before the > patch: > > aarch64-buildroot-linux-gnu-ld.bfd: drivers/mmc/cv1800b_sdhci.o: in function > `cv1800b_execute_tuning': > drivers/mmc/cv1800b_sdhc

Re: [PATCH v5 2/6] efi: stub: Change _debug_uart_putc function to inline

2025-05-20 Thread Tom Rini
On Tue, May 20, 2025 at 01:36:40PM +0200, Lukasz Czechowski wrote: > Update definition of _debug_uart_putc to static inline. > This will allow to avoid compilation warnings about unused code > after introduction of patch changing debug uart functions to > dummies if CONFIG_DEBUG_UART is not set. >

Re: [PATCH v5 1/6] arm: uniphier: Change _debug_uart_putc function to inline

2025-05-20 Thread Tom Rini
On Tue, May 20, 2025 at 01:36:39PM +0200, Lukasz Czechowski wrote: > Update the definition of _debug_uart_putc to static inline. > This matches the instructions in include/debug_uart.h and > provides consistency with implementations for other platforms. > > Signed-off-by: Lukasz Czechowski Revi

Re: [PATCH] cmd: Flush destination buffer only if it is available

2025-05-20 Thread Tom Rini
On Tue, May 20, 2025 at 02:35:53PM +0530, Varadarajan Narayanan wrote: > On Mon, May 19, 2025 at 08:19:05AM -0600, Tom Rini wrote: > > On Mon, May 19, 2025 at 12:19:34PM +0530, Varadarajan Narayanan wrote: > > > > > From: Vandhiadevan Karunamoorthy > > > > > > There are code paths in do_imgextract

Re: [PATCH v1] linux/sizes.h: sync from kernel

2025-05-20 Thread Tom Rini
On Tue, May 20, 2025 at 11:09:17AM +0200, Emanuele Ghidoli wrote: > From: Emanuele Ghidoli > > The kernel added new size definitions and substituted the > boilerplate/reference to the license with a SPDX identifier. > > Drop a local SZ_8G definition in MediaTek MT7988 SoC board file. > > Signe

[PATCH v2 2/4] tools: mkimage: validate image references in FIT configurations

2025-05-20 Thread Aristo Chen
When parsing a FIT image source (ITS), mkimage does not currently check whether the image names referenced in the /configurations section (e.g. "kernel", "fdt", "ramdisk", "loadables") actually exist in the /images node. This patch introduces a validation step during FIT import that iterates over

[PATCH v2 0/4] mkimage: validate image references in FIT configurations

2025-05-20 Thread Aristo Chen
Hi all, This series introduces a validation step in mkimage to ensure that all image names referenced under the /configurations node of a FIT source (ITS) are actually defined under the /images node. ### Motivation When using mkimage to build FIT images, it's easy to mistakenly reference nonex

[PATCH v2 4/4] test: py: add mkimage test for undefined image references in FIT configs

2025-05-20 Thread Aristo Chen
Add a test case to verify that mkimage correctly rejects a FIT source that references a non-existent image from a configuration node. This test introduces a minimal ITS that defines a valid kernel image but references a missing "fdt" image under the /configurations section. The test asserts that m

Re: [PATCH v3 4/5] board: bsh: imx8mn_bsh_smm_s2/s2pro: enlarge CONFIG_SPL_SYS_MALLOC_F_LEN

2025-05-20 Thread Fabio Estevam
Hi Dario and Michael, On Tue, May 20, 2025 at 5:55 AM Dario Binacchi wrote: > > The commit dda454e933c6 ("serial: mxc: Support bulk enabling clocks") > breaks the booting of the BSH SMM S2 board. The analysis of the issue > revealed memory allocation failures during the registration of UART4 > cl

[PATCH v2 1/4] tools: mkimage: propagate error codes from fit_handle_file()

2025-05-20 Thread Aristo Chen
The fit_handle_file() function previously returned a hardcoded -1 on error. This change updates the logic to return the actual error code stored in `ret`, allowing for error propagation. This improves debuggability and enables downstream callers to distinguish different failure causes, such as FDT

[PATCH v2] caam: bugfix CAAM error on startup

2025-05-20 Thread Olaf Baehring
In rare cases U-Boot returns an error message when intantiating the RNG of the CAAM device: “SEC0: RNG4 SH0 instantiation failed with error 0x” This means, that even when the CAAM device reports a finished descriptor, none is found in the output ring. This might be caused by a missing cac

[PATCH v2 3/4] binman: test: Ensure all config references exist in /images node

2025-05-20 Thread Aristo Chen
Several binman FIT test device trees reference image nodes such as atf and uboot in their /configurations sections, but those image nodes were not actually defined in the /images node. This mismatch can lead to validation errors when stricter consistency checks are introduced. This patch adds mini

[PATCH v2 4/5] lmb: use a single function to free up memory

2025-05-20 Thread Sughosh Ganu
There is no need to have two separate API's for freeing up memory. Use a single API lmb_free() to achieve this. Signed-off-by: Sughosh Ganu --- Changes since V1: None boot/image-fdt.c| 2 +- cmd/load.c | 2 +- include/lmb.h | 6 ++--- lib/efi_loader

[PATCH v2 5/5] doc: add lmb documentation

2025-05-20 Thread Sughosh Ganu
The LMB module has undergone significant changes in the recent past. Add a document which briefly describes what the LMB module does, and the changes that have been made to it's design since the 2025.01 release. Signed-off-by: Sughosh Ganu --- Changes since V1: None doc/api/index.rst | 1

[PATCH v2 3/5] lmb: staticise lmb_add_memory()

2025-05-20 Thread Sughosh Ganu
lmb_add_memory() is only called from the lmb module. Mark the function as static. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas --- Changes since V1: None include/lmb.h | 8 lib/lmb.c | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/include/lmb.h b

[PATCH v2 2/5] lmb: replace the lmb_alloc() and lmb_alloc_base() API's

2025-05-20 Thread Sughosh Ganu
There currently are two API's for requesting memory from the LMB module, lmb_alloc() and lmb_alloc_base(). The function which does the actual allocation is the same. Use the earlier introduced API lmb_allocate_mem() for both types of allocation requests. Signed-off-by: Sughosh Ganu --- Changes si

[PATCH v2 1/5] lmb: replace lmb_reserve() and lmb_alloc_addr() API's

2025-05-20 Thread Sughosh Ganu
There currently are multiple allocation API's in the LMB module. There are a couple of API's for allocating memory(lmb_alloc() and lmb_alloc_base()), and then there are two for requesting a reservation for a particular memory region (lmb_reserve() and lmb_alloc_addr()). Introduce a single API lmb_a

[PATCH v2 0/5] lmb: use a single API for all allocations

2025-05-20 Thread Sughosh Ganu
The LMB module has a bunch for API's which are used for allocating memory. There are a couple of API's for requesting memory, and two more for reserving regions of memory. Replace these different API's with a single one, lmb_allocate_mem(). The type of allocation to be made is specified through o

Re: [PATCH RFT v3 0/3] fastboot: add support for generic block flashing

2025-05-20 Thread Mattijs Korpershoek
Hi, On Tue, 06 May 2025 18:10:06 +0200, neil.armstr...@linaro.org wrote: > This serie permits using any block device as target > for fastboot by moving the generic block logic into > a common set of helpers and also use them as generic > backend. > > The erase logic has been extended to support s

Re: [PATCH] board: freescale: imx8mn_evk: let clock system enable UART clock

2025-05-20 Thread Fabio Estevam
On Tue, May 20, 2025 at 6:02 AM Dario Binacchi wrote: > > From: Michael Trimarchi > > Now that the UART driver can enable the required clocks, remove > the hard-coded clock enable. > > Signed-off-by: Michael Trimarchi > Signed-off-by: Dario Binacchi Thanks for the cleanup: Tested-by: Fabio Es

Re: [PATCH 3/4] board: bsh: imx6ulz_smm_m2: Add support for 512 MiB DRAM

2025-05-20 Thread Fabio Estevam
On Tue, May 13, 2025 at 1:37 PM Dario Binacchi wrote: > +extern struct dram_timing_info bsh_dram_timing_512mb; > extern struct dram_timing_info bsh_dram_timing_256mb; > extern struct dram_timing_info bsh_dram_timing_128mb; Please keep these entries sorted.

Re: [PATCH 2/4] board: bsh: imx6ulz_smm_m2: Add support for 256 MiB DRAM

2025-05-20 Thread Fabio Estevam
On Tue, May 13, 2025 at 1:36 PM Dario Binacchi wrote: > +static const struct dram_cfg_param ddr_ddrc_cfg_128mb[] = { > + // IOMUX > + > + //DDR IO TYPE: Same comment as in the previous patch. > + //read data bit delay: 3 is the reccommended default value, although > out of res

Re: [PATCH 1/4] board: bsh: imx6ulz_smm_m2: Match SPL DDR settings to DCD table

2025-05-20 Thread Fabio Estevam
On Tue, May 13, 2025 at 1:36 PM Dario Binacchi wrote: > > From: Michael Trimarchi > > When using SPL on i.mx6 we frequently notice some DDR initialization > mismatches between the SPL code and the non-SPL code. > > As the non-SPL code have been tested for long time and proves to be > reliable, le

[PATCH v5 2/6] efi: stub: Change _debug_uart_putc function to inline

2025-05-20 Thread Lukasz Czechowski
Update definition of _debug_uart_putc to static inline. This will allow to avoid compilation warnings about unused code after introduction of patch changing debug uart functions to dummies if CONFIG_DEBUG_UART is not set. This also matches the instructions in include/debug_uart.h and provides consi

[PATCH v5 6/6] rockchip: px30: Fix hard dependency to DEBUG_UART_BOARD_INIT

2025-05-20 Thread Lukasz Czechowski
Because DEBUG_UART_BOARD_INIT depends on DEBUG_UART, hard dependency to DEBUG_UART_BOARD_INIT in ROCKCHIP_PX30 can cause warnings if DEBUG_UART is disabled. The DEBUG_UART_BOARD_INIT is already implied by ARCH_ROCKCHIP entry. Remove hard dependency from ROCKCHIP_PX30, so that it will be consistent

[PATCH v5 1/6] arm: uniphier: Change _debug_uart_putc function to inline

2025-05-20 Thread Lukasz Czechowski
Update the definition of _debug_uart_putc to static inline. This matches the instructions in include/debug_uart.h and provides consistency with implementations for other platforms. Signed-off-by: Lukasz Czechowski --- arch/arm/mach-uniphier/debug-uart/debug-uart.c | 2 +- 1 file changed, 1 inser

[PATCH v5 4/6] debug_uart: Replace debug functions with dummies if CONFIG_DEBUG_UART is not set

2025-05-20 Thread Lukasz Czechowski
In case DEBUG UART is not used, define dummy macros replacing the actual function implementations that will not be available. This allows to compile code and avoid linker errors. Redefine the DEBUG_UART_FUNCS macro if DEBUG UART is not available, to avoid compilation errors. Signed-off-by: Lukasz

[PATCH v5 5/6] rockchip: px30: Weaken dependency TPL/SPL serial

2025-05-20 Thread Lukasz Czechowski
Allow to disable serial console in TPL and SPL. Weak dependency to SPL_SERIAL and TPL_SERIAL is also used in other Rockchip boards. Signed-off-by: Lukasz Czechowski Reviewed-by: Quentin Schulz Reviewed-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig | 4 ++-- 1 file changed, 2 insertions(+)

[PATCH v5 3/6] ram: rockchip: Fix dependency of RAM_ROCKCHIP_DEBUG

2025-05-20 Thread Lukasz Czechowski
The RAM_ROCKCHIP_DEBUG can be used only if DEBUG_UART is available. The next commit introduces changes in definition of debug uart functions, so that DEBUG_UART is required to be defined in order to initialize uart and use print functions. Signed-off-by: Lukasz Czechowski Reviewed-by: Kever Yang

[PATCH v5 0/6] Rockchip: Allow to silent TPL/SPL debug console

2025-05-20 Thread Lukasz Czechowski
Currently it is not possible to completely silent the debug console in i.e. PX30, what might be required in some embedded devices. Disabling DEBUG_UART results in errors, due to missing symbols. In particular, rockchip sdram driver performs calls to debug_uart functions (i.e. printascii), defined d

[PATCH v3 3/5] configs: imx8mn_bsh_smm_s2: load U-Boot from raw NAND

2025-05-20 Thread Dario Binacchi
Commit 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") breaks the boot of the BSH SMM S2 board. Add options to load U-Boot from raw NAND sector. Fixes: 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") Signed-off-by: Dario Binacchi --- (no changes since v2) Changes in v2:

Re: [PATCH] cmd: Flush destination buffer only if it is available

2025-05-20 Thread Varadarajan Narayanan
On Mon, May 19, 2025 at 08:19:05AM -0600, Tom Rini wrote: > On Mon, May 19, 2025 at 12:19:34PM +0530, Varadarajan Narayanan wrote: > > > From: Vandhiadevan Karunamoorthy > > > > There are code paths in do_imgextract(), where 'dest' could be zero. > > Hence, avoid cache flush of 'dest' doesn't poin

[PATCH v1] linux/sizes.h: sync from kernel

2025-05-20 Thread Emanuele Ghidoli
From: Emanuele Ghidoli The kernel added new size definitions and substituted the boilerplate/reference to the license with a SPDX identifier. Drop a local SZ_8G definition in MediaTek MT7988 SoC board file. Signed-off-by: Emanuele Ghidoli --- arch/arm/mach-mediatek/mt7988/init.c | 3 +-- inc

[PATCH] board: freescale: imx8mn_evk: let clock system enable UART clock

2025-05-20 Thread Dario Binacchi
From: Michael Trimarchi Now that the UART driver can enable the required clocks, remove the hard-coded clock enable. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- board/freescale/imx8mn_evk/spl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/freescale/imx8m

[PATCH v3 5/5] board: bsh: imx8mn_bsh_smm_s2/s2pro: let clock system enable UART clock

2025-05-20 Thread Dario Binacchi
Now that the UART driver can enable the required clocks, remove the hard-coded clock enable. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Drop patch 4/4 "serial: mxc: restore booting for imx8mn_bsh_smm_s2" - Add patch 4

[PATCH v3 4/5] board: bsh: imx8mn_bsh_smm_s2/s2pro: enlarge CONFIG_SPL_SYS_MALLOC_F_LEN

2025-05-20 Thread Dario Binacchi
The commit dda454e933c6 ("serial: mxc: Support bulk enabling clocks") breaks the booting of the BSH SMM S2 board. The analysis of the issue revealed memory allocation failures during the registration of UART4 clocks as well as other peripherals. Increasing SYS_MALLOC_F_LEN to 0x1 fixed the issu

[PATCH v3 2/5] imx: spl_imx_romapi: support raw NAND sector

2025-05-20 Thread Dario Binacchi
Commit 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") breaks the boot of the BSH SMM S2 board. As stated in the dropped comment, "Some boards use this value even though MMC is not enabled in SPL, for example imx8mn_bsh_smm_s2". Support load of the U-Boot image from raw NAND sector. F

[PATCH v3 1/5] spl: Kconfig: support U-Boot load from raw NAND

2025-05-20 Thread Dario Binacchi
Commit 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") breaks the boot of the BSH SMM S2 board. As stated in the commit itself, "Some boards use this value even though MMC is not enabled in SPL, for example imx8mn_bsh_smm_s2". Support load of the U-Boot image from raw NAND sector. This