[PATCH] mtd: spi-nor-core: Fix index value for SCCR dwords

2022-09-11 Thread tkuw584924
From: Takahiro Kuwano Array index for SCCR 22th DWORD should be 21. Fixes: bebdc237507c ("mtd: spi-nor: Parse SFDP SCCR Map") Signed-off-by: Takahiro Kuwano --- drivers/mtd/spi/spi-nor-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-core.c

Re: [PATCH v3 1/1] efi_driver: don't bind internal block devices

2022-09-11 Thread AKASHI Takahiro
On Fri, Sep 09, 2022 at 04:11:18PM +0200, Heinrich Schuchardt wrote: > UEFI block devices can either mirror U-Boot's internal devices or be > provided by an EFI application like iPXE. > > When ConnectController() is invoked for the EFI_BLOCK_IO_PROTOCOL > interface for such an application

Re: [PATCH v2 3/3] i2c: stm32: only send a STOP upon transfer completion

2022-09-11 Thread Jorge Ramirez-Ortiz, Foundries
On 09/09/22, Alain Volmat wrote: > Hi Patrick > > On Fri, Sep 09, 2022 at 02:53:23PM +0200, Patrick DELAUNAY wrote: > > Hi Alain > > > > On 9/8/22 12:59, Alain Volmat wrote: > > > Current function stm32_i2c_message_xfer is sending a STOP > > > whatever the result of the transaction is. This can

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c.

2022-09-11 Thread Tom Rini
On Sun, Sep 11, 2022 at 04:16:12PM +0300, Sergei Antonov wrote: > On Sun, 11 Sept 2022 at 11:47, Jit Loon Lim wrote: > > > > From: Chin Liang See > > > > An old inffast.c optimization turns out to not be optimal anymore > > with modern compilers, and furthermore was not compliant with the > > C

Re: [PATCH 0/7] arm: dts: Create common imx8mn-u-boot

2022-09-11 Thread Adam Ford
On Mon, Aug 15, 2022 at 6:43 AM Adam Ford wrote: > > On Sun, Aug 14, 2022 at 5:57 PM Fabio Estevam wrote: > > > > Hi Adam, > > > > On Sun, Jul 31, 2022 at 8:46 PM Adam Ford wrote: > > > > > > Every imx8mn board has a bunch of similar entries on their > > > respective board-u-boot.dtsi file to

[PATCH 4/4] common/board_f: drop ifdefs around header includes

2022-09-11 Thread Ovidiu Panait
Drop the remaining ifdef around spl.h include. Signed-off-by: Ovidiu Panait --- common/board_f.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 96458c5151..4db1626c29 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -35,9 +35,7 @@

[PATCH 3/4] common/board_f: introduce arch_setup_dest_addr()

2022-09-11 Thread Ovidiu Panait
In order to move ppc-specific code out of setup_dest_addr(), provide an arch-specific variant arch_setup_dest_addr(), that can be used by architecture code to fix up the initial reloc address. It is called at the end of setup_dest_addr() initcall and the default implementation is a nop stub.

[PATCH 1/4] common/board_f: remove XTRN_DECLARE_GLOBAL_DATA_PTR dead code

2022-09-11 Thread Ovidiu Panait
The XTRN_DECLARE_GLOBAL_DATA_PTR declarations in ppc code are permanently commented out, so there are no users for this macro: #if 1 #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r2") #else #define XTRN_DECLARE_GLOBAL_DATA_PTR extern #define

[PATCH 2/4] common/board_f: move CONFIG_MACH_TYPE logic to arch/arm/lib/bdinfo.c

2022-09-11 Thread Ovidiu Panait
asm/mach_type.h header and CONFIG_MACH_TYPE macro are arm-specific, so move related bdinfo logic to arch_setup_bdinfo() in arch/arm/lib/bdinfo.c. Signed-off-by: Ovidiu Panait --- arch/arm/lib/bdinfo.c | 12 common/board_f.c | 7 --- 2 files changed, 12 insertions(+), 7

[PATCH 8/8] drivers: mtd: nand: HSD #1508104447-13: mtd: nand: raw: denali: Wait for reset completion status

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Fixed delay 200us is not working in certain platform. Change to poll for reset completion status to have more reliable reset process. Controller will set the rst_comp bit in intr_status register after controller has completed its reset and initialization process.

[PATCH 7/8] configs: HSD #1508104447-10: configs: socfpga: Add Nand defconfig for Stratix10

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Add NAND defconfig for Stratix10. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- configs/socfpga_stratix10_nand_defconfig | 86 1 file changed, 86 insertions(+) create mode 100644 configs/socfpga_stratix10_nand_defconfig diff --git

[PATCH 6/8] arch: arm: dts: HSD #1508104447-8: arm: dts: Makefile: Enable Stratix10 NAND dtb build

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Enable build for socfpga_stratix10_socdk_nand.dtb. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/dts/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 86e9407456..9a9d7163d9 100644 ---

[PATCH 5/8] arch: arm: dts: HSD #1508104447-7: arm: dts: socfpga: stratix10: Add NAND u-boot.dtsi

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Add new file socfpga_stratix10_socdk_nand-u-boot.dtsi for Uboot specific properties. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- .../socfpga_stratix10_socdk_nand-u-boot.dtsi | 36 +++ 1 file changed, 36 insertions(+) create mode 100644

[PATCH 4/8] arch: arm: dts: HSD #1508104447-6: arm: dts: socfpga: stratix10: Add NAND board file

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Copied from Linux commit ID 3c0f3b8545e7 ("arm64: dts: add NAND board files for Stratix10 and Agilex") The Stratix10 devkit supports a separate NAND daughter card. The NAND daughter card replaces the SDMMC slot that is on the default daughter card thus requires a separate

[PATCH 2/8] configs: HSD #1508104447-3: configs: socfpga: stratix10: Move CONFIG_MTDIDS_DEFAULT to defconfig

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Move CONFIG_MTDIDS_DEFAULT to defconfig and add mtdids to ENV settings. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- configs/socfpga_stratix10_defconfig | 1 + configs/socfpga_stratix10_qspi_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH 3/8] arch: arm: dts: HSD #1508104447-5: arm: dts: socfpga: stratix10: Add NAND IP to base dts

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Add NAND node to stratix10 base dtsi file. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_stratix10.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/socfpga_stratix10.dtsi

[PATCH 1/8] configs: HSD #1508104447-2: configs: socfpga: stratix10: Enable CONFIG_CMD_MTD

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Enable CONFIG_CMD_MTD. CONFIG_MTD_PARTITIONS is enabled by CONFIG_CMD_MTD. So, remove CONFIG_MTD_PARTITIONS from socfpga_stratix10_socdk.h. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- configs/socfpga_stratix10_defconfig | 1 +

[PATCH] arm: socfpga: Enable driver model for watchdog timer drivers

2022-09-11 Thread Jit Loon Lim
From: Chee Hong Ang All SoCFPGA platforms are now switching to CONFIG_WDT (driver model for watchdog timer drivers) from CONFIG_HW_WATCHDOG. Signed-off-by: Chee Hong Ang Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_stratix10_socdk.dts | 4 ++

[PATCH] arm: socfpga: increase QSPI kernel Image size for Stratix10 and Agilex

2022-09-11 Thread Jit Loon Lim
From: Joyce Ooi This patch increases the allocated kernel Image size to 32MB for QSPI for Stratix10 and Agilex as the latest kernel size has increased. Signed-off-by: Joyce Ooi Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_qspi_defconfig| 2 +-

[PATCH 2/2] arch: arm: mach-socfpga: HSD #1508115548-2: Ensure bitstream address location not exceed 512MB

2022-09-11 Thread Jit Loon Lim
From: Chee Hong Ang Secure Device Manager(SDM) has only 512MB window address space to HPS over PSI BE link. The default access range is 0x0 to 0x1FFF. To allow SDM accessing the address space more than 512MB, SMMU has to be setup for address translation. U-Boot will not allow the fpga

[PATCH 1/2] arch: arm: mach-socfpga: HSD #1508115548-1: Add SMMU status and Stream ID checking functions

2022-09-11 Thread Jit Loon Lim
Add functions for checking SMMU bypass status and matching valid hardware device Stream ID in SMMU Stream Mapping Registers. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/include/mach/smmu_s10.h | 65 ++ arch/arm/mach-socfpga/smmu_s10.c

[PATCH] configs: socfpga: agilex: Enable CONFIG_SPL_CACHE in NAND defconfig

2022-09-11 Thread Jit Loon Lim
add new CONFIG_SPL_CACHE for SPL build. Enable it to allow cache driver build in SPL for Agilex NAND defconfig. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_nand_defconfig | 84 +++ 1 file changed, 84 insertions(+) create mode

Re: Question about uboot initialisation

2022-09-11 Thread momo aubin
Hi Simon, Thanks for getting back to me. How can I avoid top posting ? i'm a new How uboot know that the kernel has started ? If the system is blocked during the u-boot stage, is it possible to restart all the systems ? It is possible to put a timer in the u-boot stage in case of the kernel has

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c.

2022-09-11 Thread Sergei Antonov
On Sun, 11 Sept 2022 at 11:47, Jit Loon Lim wrote: > > From: Chin Liang See > > An old inffast.c optimization turns out to not be optimal anymore > with modern compilers, and furthermore was not compliant with the > C standard, for which decrementing a pointer before its allocated > memory is

[PATCH 7/7] configs: HSD #1507526426-10: configs: socfpga: agilex: Add NAND boot support

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Add NAND boot env settings Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h index

[PATCH 6/7] arch: arm: dts: HSD #1507526426-9: arm: dts: agilex: Fix incorrect rootfs partition size for NAND

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan rootfs partition size should be 0x3bd8. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_agilex_socdk_nand.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/socfpga_agilex_socdk_nand.dts

[PATCH 2/7] configs: HSD #1507526426-3: configs: socfpga: agilex: Move MTDIDS_DEFAULT to defconfig

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Move MTDIDS_DEFAULT to defconfig and add mtdids to ENV settings. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_atf_defconfig | 1 + configs/socfpga_agilex_defconfig | 1 + ...efconfig =>

[PATCH 3/7] arch: arm: dts: HSD #1507526426-6: arm: dts: socfpga: Add NAND support for Agilex

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Add NAND daughter card support, it has the following peripherals:: - NAND - GMAC2 - I2C2 - UART0 Note, no SDMMC on NAND daughter card. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/dts/Makefile | 1 +

[PATCH 5/7] configs: HSD #1507526426-8: configs: socfpga: Add Nand defconfig for Agilex

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Add Nand defconfig for Agilex. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_nand_defconfig | 80 ++ include/configs/socfpga_soc64_common.h | 10 2 files changed, 80 insertions(+), 10 deletions(-) create

[PATCH 1/7] configs: HSD #1507526426-2: configs: socfpga: agilex: Enable CONFIG_CMD_MTD

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Enable CONFIG_CMD_MTD. CONFIG_MTD_PARTITIONS is enabled by CONFIG_CMD_MTD. So, remove CONFIG_MTD_PARTITIONS from socfpga_agilex_socdk.h. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_atf_defconfig | 1 + configs/socfpga_agilex_defconfig

[PATCH 4/7] configs: HSD #1507526426-7: configs: socfpga: agilex: Add NAND support

2022-09-11 Thread Jit Loon Lim
From: Ley Foon Tan Add NAND related CONFIGs. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/configs/socfpga_soc64_common.h

Re: [PATCH v3 1/2] cmd: mvebu/bubt: Check for A38x image data checksum

2022-09-11 Thread Pali Rohár
On Tuesday 23 August 2022 14:52:23 Pali Rohár wrote: > Currently for A38x image is checked only header checksum. > So check also for image data checksum to prevent flashing broken image. > > Signed-off-by: Pali Rohár > Reviewed-by: Stefan Roese > > --- > Changes in v3: > * Compile fix (move

[PATCH] arch: arm: mach-socfpga: HSD #1707102234: Agilex: Disable MPFE HMC Adapter Firewall

2022-09-11 Thread Jit Loon Lim
From: Thor Thayer Disable the MPFE HMC Adapter Firewall for the MPU because the Linux SDRAM ECC needs to access that register. Also cleanup the HMC Firewall added for SMMU. Signed-off-by: Thor Thayer Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/firewall.c | 10

[PATCH] board_f: show_dram_config: Print also real DRAM size

2022-09-11 Thread Pali Rohár
32-bit U-Boot builds cannot use more than around 2 GB of DDR memory. But on some platforms/boards it is possible to connect also 4 GB SODIMM DDR memory. U-Boot currently prints only effective size of RAM which can use, which may be misleading as somebody would expect that this line prints total

[PATCH] display_options: print_size: Fix order overflow

2022-09-11 Thread Pali Rohár
Function print_size() round size to the nearst value with one decimal fraction number. But in special cases also unit order may overflow. For example value 1073689396 is printed as "1024 MiB" and value 1073741824 as "1 GiB". Fix this issue by detecting order overflow and increasing unit order.

[PATCH] arch: arm: mach-socfpga: HSD #1707095796: Remove MPFE Firewall for SMMU

2022-09-11 Thread Jit Loon Lim
From: Thor Thayer Remove firewall on MPFE so that SMMU can setup/walk tables in the DDR. Signed-off-by: Thor Thayer Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/firewall.c | 6 ++ arch/arm/mach-socfpga/include/mach/base_addr_soc64.h | 1 +

[PATCH 10/9] powerpc/mpc85xx: Fix re-align of unmapped DDR memory message for non-SPL builds

2022-09-11 Thread Pali Rohár
During init_dram() is called also setup_ddr_tlbs_phys() function which may print message about unmapped DDR memory. So in this case print also re-aligning filler after unmapped DDR memory message. Signed-off-by: Pali Rohár --- arch/powerpc/cpu/mpc85xx/tlb.c | 3 +++ 1 file changed, 3

[PATCH] lib: zlib: Use post-increment only in inffast.c.

2022-09-11 Thread Jit Loon Lim
From: Chin Liang See An old inffast.c optimization turns out to not be optimal anymore with modern compilers, and furthermore was not compliant with the C standard, for which decrementing a pointer before its allocated memory is undefined. Per the recommendation of a security audit of the zlib

Re: [PATCH 04/17] net: ipv6: Add Neighbor Discovery Protocol (NDP)

2022-09-11 Thread Vyacheslav Mitrofanov V
On Fri, 2022-09-09 at 08:44 -0600, Simon Glass wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On Thu, 8 Sept 2022 at 05:59, Viacheslav Mitrofanov > wrote: > > Implement basic of NDP. It doesn't include such things as Router > > Solicitation, Router Advertisement and Redirect. It

Re: [PATCH v4 00/17] IPv6 support

2022-09-11 Thread Vyacheslav Mitrofanov V
On Thu, 2022-09-08 at 14:58 +0300, Viacheslav Mitrofanov wrote: > This patch set adds basic IPv6 support to U-boot. > It is based on Chris's Packham patches > (https://lists.denx.de/pipermail/u-boot/2017-January/279366.html) > Chris's patches were taken as base. There were efforts to launch it >