[PATCH 1/2] HSD #1507453717: arm: socfpga: stratix10: add QSPI boot feature

2022-09-05 Thread Jit Loon Lim
From: "Ooi, Joyce" This patch adds the QSPI boot feature for Stratix10 Signed-off-by: Ooi, Joyce Signed-off-by: Jit Loon Lim --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/socfpga_stratix10_socdk_qspi.dts | 14 configs/socfpga_stratix10_qspi_defconfig

[PATCH 2/2] HSD #1507453717: arm: socfpga: agilex: add QSPI boot feature

2022-09-05 Thread Jit Loon Lim
From: "Ooi, Joyce" This patch adds the QSPI boot feature for Agilex Signed-off-by: Ooi, Joyce Signed-off-by: Jit Loon Lim --- arch/arm/dts/Makefile | 1 + arch/arm/dts/socfpga_agilex_socdk.dts | 1 + arch/arm/dts/socfpga_agilex_socdk_qspi.d

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

2022-09-11 Thread Jit Loon Lim
code by Trail of Bits and TrustInSoft, in support of the Mozilla Foundation, this "optimization" was removed, in order to avoid the possibility of undefined behavior. Signed-off-by: Mark Adler Signed-off-by: Chin Liang See Signed-off-by: Jit Loon Lim --- lib/zlib/inff

[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 + arch/arm/mach

[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 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 b/include/configs

[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 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 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 + arch/arm/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 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 b/arch/arm/dts

[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] 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

[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 2/2] arch: arm: mach-socfpga: HSD #1508115548-2: Ensure bitstream address location not exceed 512MB

2022-09-11 Thread Jit Loon Lim
reconfiguration with any bitstream data address exceed 512MB to proceed if PSI BE link address translation is not setup in SMMU. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/include/mach/smmu_s10.h | 6 ++ drivers/fpga/intel_sdm_mb.c | 13

[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 +- configs

[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 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 + configs

[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 b/arch/arm/dts

[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 4/8] arch: arm: dts: HSD #1508104447-6: arm: dts: socfpga: stratix10: Add NAND board file

2022-09-11 Thread Jit Loon Lim
a separate board dts file. Add flash0 label to QSPI node to reference it in other dts file later. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_stratix10_socdk_nand.dts | 223 ++ 1 file changed, 223 insertions(+) create mode 100644 ar

[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 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 --- a

[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 a

[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
-by: Radu Bacrau Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- drivers/mtd/nand/raw/denali_dt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/denali_dt.c b/drivers/mtd/nand/raw/denali_dt.c index cf4df0168a..5a4c11e159 100644 --- a

[PATCH 1/2] spl: socfpga: Getting SPL boot device from DT

2022-09-16 Thread Jit Loon Lim
vice if no boot device is defined in DT. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_stratix10_socdk.dts | 1 + arch/arm/mach-socfpga/spl_s10.c | 65 2 files changed, 66 insertions(+) diff --git a/ar

[PATCH 2/2] arm: spl: create a common spl for Stratix10 and Agilex

2022-09-16 Thread Jit Loon Lim
From: "Ooi, Joyce" Since Stratix10 and Agilex are using ARM64, there are some common codes in the SPL. Hence, spl_soc64.c is created to place the common codes. Signed-off-by: Ooi, Joyce Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/spl_s10.c | 63 ---

[PATCH] arm: socfpga: soc64: Use UCLASS_MTD instead of UCLASS_MISC

2022-09-16 Thread Jit Loon Lim
From: Ley Foon Tan Commit 407b01b3b3f5 ("mtd: rawnand: denali_dt: use UCLASS_MTD instead of UCLASS_MISC") change to use UCLASS_MTD instead of UCLASS_MISC. Update spl_boot_device() to use UCLASS_MTD. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/s

[PATCH] arm: socfpga: Add handoff data support for Diamond Mesa

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Diamond Mesa support both HPS handoff data and DDR handoff data. HPS handoff data support re-use Straix10 and Agilex code. DDR handoff data is newly introduced in Diamond Mesa. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/include/mach

[PATCH 1/9] drivers: clk: dm: Add clock driver for Diamond Mesa

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Add clock manager driver for Diamond Mesa. Provides clock initialization and get_rate functions. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- drivers/clk/altera/clk-dm.c | 504 +++ drivers/clk/altera/clk-dm.h | 217

[PATCH 6/9] board: intel: dm: Add socdk board support for Diamond Mesa

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Add socdk board support for Diamond Mesa. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- board/intel/dm-socdk/MAINTAINERS | 7 +++ board/intel/dm-socdk/Makefile| 7 +++ board/intel/dm-socdk/socfpga.c | 7 +++ 3 files changed, 21 insertions

[PATCH 3/9] arm: socfpga: dm: Add clock manager for Diamond Mesa

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Add clock manager driver for Diamond Mesa. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/clock_manager_dm.c | 79 +++ .../include/mach/clock_manager_dm.h | 14 2 files changed, 93 insertions

[PATCH 2/9] drivers: clk: dm: Add memory clock driver for Diamond Mesa

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Add memory clock manager driver for Diamond Mesa. Provides clock initialization and enable functions. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- drivers/clk/altera/clk-mem-dm.c | 135 drivers/clk/altera/clk-mem-dm.h | 84

[PATCH 5/9] arm: socfpga: dm: Add SPL for Diamond Mesa

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Add SPL for Diamond Mesa. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/spl_dm.c | 97 ++ 1 file changed, 97 insertions(+) create mode 100644 arch/arm/mach-socfpga/spl_dm.c diff --git a/arch/arm/mach

[PATCH 8/9] configs: dm: Add Diamond Mesa CONFIGs

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Add CONFIGs for Diamond Mesa. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- include/configs/socfpga_dm_socdk.h | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 include/configs/socfpga_dm_socdk.h diff --git a/include

[PATCH 9/9] arm: socfpga: dm: Enable Intel Diamond Mesa bulid

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Enable build for Intel Diamond Mesa. Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/Kconfig| 18 arch/arm/mach-socfpga/Makefile | 31 + configs/socfpga_dm_atf_defconfig | 77

[PATCH 7/9] arm: dts: dm: Add base dtsi and devkit dts for Diamond Mesa

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Add base dtsi and devkit dts for Diamond Mesa. Signed-off-by: Siew Chin Lim Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_dm-u-boot.dtsi | 102 arch/arm/dts/socfpga_dm.dtsi | 640 ++ arch

[PATCH 4/9] ddr: altera: dm: Add SDRAM driver for Diamond Mesa

2022-09-18 Thread Jit Loon Lim
From: Siew Chin Lim Add SDRAM driver for Diamond Mesa. Signed-off-by: Siew Chin Lim Signed-off-by: Tien Fong Chee --- arch/arm/mach-socfpga/include/mach/misc.h |4 + arch/arm/mach-socfpga/misc_soc64.c| 70 +- drivers/ddr/altera/sdram_dm.c | 1227 +

[PATCH] drivers: fpga: intel_sdm_mb: Add checking for INTEL_SIP_SMC_STATUS_BUSY

2022-09-18 Thread Jit Loon Lim
From: Ley Foon Tan Add checking for INTEL_SIP_SMC_STATUS_BUSY (1). Status busy means transfer is accepted but SDM does not have more freed buffer. It is not an error. Continue process the data if receive OK and BUSY status. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- drivers

[PATCH] drivers: cadence_qspi_apb: Add watchdog_reset to prevent timeout

2022-09-18 Thread Jit Loon Lim
From: Yau Wai Gan Reset the watchdog within functions that require long processing time to prevent watchdog timeout. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- drivers/spi/cadence_qspi_apb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/spi

[PATCH 1/5] arm: socfpga: soc64: Move spl_board_prepare_for_boot()

2022-09-18 Thread Jit Loon Lim
From: Ley Foon Tan Move spl_board_prepare_for_boot() to spl_soc64.c. spl_board_prepare_for_boot() will use for all SoC64 platforms. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/spl_soc64.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch

[PATCH 3/5] arm: socfpga: soc64: Move socfpga_init_smmu() to before boot SSBL

2022-09-18 Thread Jit Loon Lim
Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/spl_agilex.c| 1 + .../mach-socfpga/{spl_agilex.c => spl_dm.c} | 38 +++ arch/arm/mach-socfpga/spl_soc64.c | 3 ++ 3 files changed, 18 insertions(+), 24 deletions(-) copy arch/arm/m

[PATCH 2/5] arm: socfpga: soc64: Change to use spl_perform_fixups()

2022-09-18 Thread Jit Loon Lim
From: Ley Foon Tan spl_board_prepare_for_boot() function is only called in U-boot flow, not for ATF flow. Change to use spl_perform_fixups() to support U-boot and ATF flow. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/spl_soc64.c | 2 +- 1 file changed

[PATCH 5/5] doc: socfpga: Add secure region change

2022-09-18 Thread Jit Loon Lim
From: Ley Foon Tan Add section 3.2 for SDRAM secure region update. Signed-off-by: Ley Foon Tan Signed-off-by: Jit Loon Lim --- doc/README.socfpga | 327 - 1 file changed, 174 insertions(+), 153 deletions(-) diff --git a/doc/README.socfpga b/doc

[PATCH 4/5] ddr: altera: soc64: Add secure region support for ATF flow

2022-09-18 Thread Jit Loon Lim
Loon Lim --- drivers/ddr/altera/sdram_agilex.c | 16 +- drivers/ddr/altera/sdram_dm.c | 998 ++ drivers/ddr/altera/sdram_s10.c| 16 +- 3 files changed, 1002 insertions(+), 28 deletions(-) create mode 100644 drivers/ddr/altera/sdram_dm.c diff --git a/drivers

[PATCH 016/347] FogBugz #516535: Fix QSPI write issues

2022-08-30 Thread Jit Loon Lim
From: Chee Hong Ang QSPI driver perform chip select on every flash read/write access. The driver need to disable/enable the QSPI controller while performing chip select. This may cause some data lost especially the QSPI controller is configured to run at slower speed as it may take longer time to

[PATCH] ddr: socfpga: Fix integer overflow

2022-08-30 Thread Jit Loon Lim
From: Tien Fong Chee dramaddrw data structure are defined as u32. Compiler assume 32-bit arithmetic on expression and the shifting operation to be done on a 32-bit value. So, the expression would overflow if the shifting is more than 32-bit. Signed-off-by: Tien Fong Chee --- drivers/ddr/altera

[PATCH] arch: arm: mach-socfpga: Add mailbox command for HPS execution stage notification

2022-08-30 Thread Jit Loon Lim
is U-Boot, and the Operating System which is Linux Signed-off-by: Chin Liang See Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/include/mach/mailbox_s10.h | 7 +++ arch/arm/mach-socfpga/mailbox_s10.c | 6 ++ 2 files changed, 13 insertions(+) diff --git a/arch/arm/ma

[PATCH] arch: arm : mach-socfpga: Add mailbox command for HPS execution stage notification

2022-08-30 Thread Jit Loon Lim
is U-Boot, and the Operating System which is Linux Signed-off-by: Chin Liang See Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/include/mach/mailbox_s10.h | 7 +++ arch/arm/mach-socfpga/mailbox_s10.c | 6 ++ 2 files changed, 13 insertions(+) diff --git a/arch/arm/ma

[PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot

2022-08-30 Thread Jit Loon Lim
s watchdog. Signed-off-by: Chin Liang See Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/spl_s10.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c index c20e87cdbe..9bfd1a0f6a 100644 --- a/arch/arm/mach-socfpga/spl_s

[PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot

2022-08-30 Thread Jit Loon Lim
s watchdog. Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/spl_s10.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c index c20e87cdbe..9bfd1a0f6a 100644 --- a/arch/arm/mach-socfpga/spl_s10.c +++ b/arch/arm/mach-socfp

[PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot

2022-08-30 Thread Jit Loon Lim
s watchdog. Signed-off-by: Chin Liang See Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/spl_s10.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c index c20e87cdbe..9bfd1a0f6a 100644 --- a/arch/arm/mach-socfpga/spl_s

[PATCH] arch: arm: mach-socfpga: To notify SDM when U-Boot pass control to Linux

2022-08-30 Thread Jit Loon Lim
From: Chin Liang See Prior U-Boot pass control to Linux, U-Boot will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition. Signed-off-by: Chin Liang See Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/misc_soc64.c | 5 +++

[PATCH] arch: arm: mach-socfpga: Add SMMU initialization and setup

2022-08-31 Thread Jit Loon Lim
From: Thor Thayer Add the SMMU initialization - Allow non-secure accesses with SMMU peripherals - Setup stream ID for SMMU peripheral matching Signed-off-by: Thor Thayer Signed-off-by: Siew Chin Lim Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/Makefile| 2 + arch

[PATCH 2/2] arm: socfpga: soc64: Perform warm reset after L2 reset in SPL on S10

2022-08-31 Thread Jit Loon Lim
tself into WFI mode. Firmware will get the warm reset request from HPS and perform the warm reset sequence to reboot all the HPS cores. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/lowlevel_init_soc64.S | 24 + 1 file changed, 24 inser

[PATCH 1/2] arm: socfpga: soc64: Enable L2 reset on S10

2022-08-31 Thread Jit Loon Lim
and in the u-boot command prompt. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- .../include/mach/reset_manager_soc64.h| 1 + drivers/sysreset/sysreset_socfpga_soc64.c | 58 ++- include/configs/socfpga_soc64_common.h| 7 +++ 3 files cha

[PATCH 0/2] *** SUBJECT HERE ***

2022-08-31 Thread Jit Loon Lim
*** BLURB HERE *** Chee Hong Ang (2): arm: socfpga: soc64: Enable L2 reset on S10 arm: socfpga: soc64: Perform warm reset after L2 reset in SPL on S10 .../include/mach/reset_manager_soc64.h| 1 + arch/arm/mach-socfpga/lowlevel_init_soc64.S | 24 drivers/sysreset/sysreset_

[PATCH 0/3] *** SUBJECT HERE ***

2022-08-31 Thread Jit Loon Lim
*** BLURB HERE *** Chee Hong Ang (3): arch: arm: mach-socfpga: Add a backup copy of .data section for SoC64 SPL configs: socfpga: Specify new linker script specific to SoC64 SPL arch: arm: mach-socfpga: Reload SoC64 SPL state after warm reset arch/arm/mach-socfpga/lowlevel_init_soc64.S

[PATCH 3/3] arch: arm: mach-socfpga: Reload SoC64 SPL state after warm reset

2022-08-31 Thread Jit Loon Lim
SPL. This is required to make sure SPL still run in fresh state after warm reset. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/lowlevel_init_soc64.S | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/mach-socfpga

[PATCH 1/3] arch: arm: mach-socfpga: Add a backup copy of .data section for SoC64 SPL

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang Add a new .data section for preserving the original state of the .data section of SoC64 SPL. This new .data section is required to make SPL reentrant after warm reset. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/u-boot-spl-soc64.lds

[PATCH 2/3] configs: socfpga: Specify new linker script specific to SoC64 SPL

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang Specify new linker script for SoC64 SPL to ensure SPL is reentrant after warm reset. Signed-off-by: Chee Hong Ang Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_defconfig| 1 + configs/socfpga_stratix10_defconfig | 1 + 2 files changed, 2 insertions(+) diff

[PATCH] driver: fpga: Adding Freeze Bridge for PR console support

2022-08-31 Thread Jit Loon Lim
. Here are the example of expected steps for partial reconfiguration $ bridge enable $ fatload mmc 0:1 100 pr_bitstream.rbf $ pr start 0 $ fpga load 0 100 $filesize $ pr end 0 Signed-off-by: Chin Liang See Signed-off-by: Jit Loon Lim --- drivers/fpga/Kconfig| 9 +++ drivers/fpga/Makefile

[PATCH] arm: socfpga: stratix10: Enable CONFIG_FPGA_INTEL_PR

2022-08-31 Thread Jit Loon Lim
From: Chee Hong Ang Enable Intel FPGA Partial Reconfiguration driver by default for Stratix10. Signed-off-by: Chee Hong Ang --- configs/socfpga_stratix10_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig ind

[PATCH] HSD #2205749969: board: altera: Add fitImage to support S10 secure boot for both U-Boot and kernel

2022-08-31 Thread Jit Loon Lim
From: "Ooi, Joyce" FitImage files are added to load Linux kernel image and U-boot image for Stratix10 Secure Boot. Signed-off-by: Ooi, Joyce Signed-off-by: Jit Loon Lim --- .../stratix10-socdk/its/kernel-sign.its | 51 +++ .../altera/stratix10-socdk/its/uboo

[PATCH] reset: socfpga: release more A10 peripherals out of reset

2022-09-01 Thread Jit Loon Lim
From: Tien Fong Chee Current implementation almost release all peripherals out of reset for gen5, but A10 has more peripherals than gen5, hence this patch is required to release the rest of peripherals to support old kernels. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim

[PATCH] arm: socfpga: soc64: Enable ARM SMCCC

2022-09-01 Thread Jit Loon Lim
From: Chee Hong Ang Enable ARM Secure Monitor Call Calling Convention (SMCCC) Signed-off-by: Chee Hong Ang Signed-off-by: Siew Chin Lim --- configs/socfpga_agilex_defconfig| 1 + configs/socfpga_stratix10_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/socfpga_agil

[PATCH] arm: socfpga: Ensure the DTS QSPI clock is set correctly

2022-09-01 Thread Jit Loon Lim
Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h index 06198ddd82..14506ac2b2 100644 --- a/include/configs

[PATCH] Kconfig: distro: Use imply instead of select for CMD_FAT

2022-09-01 Thread Jit Loon Lim
From: Tien Fong Chee Using imply instead of select for CMD_FAT so overwritten is allowed in later configuration. Signed-off-by: Tien Fong Chee --- Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kconfig b/Kconfig index 991b260182..71374980e9 100644 --- a/Kconfig +++

[PATCH] misc: fs_loader: Add QSPI RAW partition loading support

2022-09-01 Thread Jit Loon Lim
From: Tien Fong Chee Enhanced the generic firmware loader to support QSPI RAW partition loading. This would enable FPGA configuration bitstream loading from QSPI RAW partition to program FPGA. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/misc/fs_loader.c | 92

[PATCH] arm: Enable cache-pl310 driver build for both SPL and proper U-Boot

2022-09-05 Thread Jit Loon Lim
Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/lib/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index c603fe61bc..575042e6df 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -43,6 +43,7 @@ ifdef CONFIG_ARM64 obj

[PATCH] mtd: nand: Allow full NAND framework in SPL

2022-09-05 Thread Jit Loon Lim
From: Tien Fong Chee Add configuration option to compile the entire NAND framework into U-Boot SPL. This is required by some drivers, like the Denali NAND, which use a lot of functionality from the NAND core. Signed-off-by: Marek Vasut Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim

[PATCH] mtd: nand: denali: Add SPL image loader

2022-09-05 Thread Jit Loon Lim
From: Tien Fong Chee Add image loader used by the NAND SPL into the full Denali NAND driver. This allows usage of the full Denali NAND driver in SPL instead of the reduced SPL-only version. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/mtd/nand/raw/denali.c | 55

[PATCH v1] drivers: mtd: spi: Add support for GD55LB02GEBIR SPI NOR flash

2023-08-03 Thread Jit Loon Lim
From: Teik Heng Chong Add Support for GigaDevice GD55LB02GEBIR SPI NOR flash as QSPI configuration flash Signed-off-by: Teik Heng Chong --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index

[PATCH v1] drivers: spi: Add MT25U01G part number for SPI NOR Flash

2023-08-03 Thread Jit Loon Lim
ash device. Signed-off-by: Jit Loon Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 3ca46330bb..1b2e88cd26 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c

[PATCH v1] doc: Add the link for the documentation of the .its

2023-08-03 Thread Jit Loon Lim
Provide the link for the .its related documentation for Arria10. Signed-off-by: Jit Loon Lim --- doc/device-tree-bindings/fpga/altera-socfpga-a10-fpga-mgr.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/device-tree-bindings/fpga/altera-socfpga-a10-fpga-mgr.txt b/doc/device-tree

[PATCH 2/6] misc: socfpga_secreg: Enable register settings in DTS

2022-12-11 Thread Jit Loon Lim
Loon Lim --- drivers/misc/Kconfig | 9 drivers/misc/Makefile | 2 + drivers/misc/socfpga_secreg.c | 86 +++ 3 files changed, 97 insertions(+) create mode 100644 drivers/misc/socfpga_secreg.c diff --git a/drivers/misc/Kconfig b/drivers/misc

[PATCH 4/6] arm: dts: socfpga: Update existing FW & SEC config to DTS

2022-12-11 Thread Jit Loon Lim
From: Tien Fong Chee Update N5X existing firewall and secure register settings in source codes to device tree. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_n5x-u-boot.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/socfpga_n5x-u

[PATCH 6/6] arm: socfpga: Enhance checking on potential overwrite

2022-12-11 Thread Jit Loon Lim
. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/misc/socfpga_secreg.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/misc/socfpga_secreg.c b/drivers/misc/socfpga_secreg.c index a4b297e7f1..0ea30c254b 100644 --- a/drivers/misc/socfpga_secreg.c

[PATCH 3/6] arm: dts: socfpga: Copy existing FW & SEC config to DTS

2022-12-11 Thread Jit Loon Lim
From: Tien Fong Chee Copy existing firewall and secure register settings in source codes to device tree. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- arch/arm/dts/socfpga_agilex-u-boot.dtsi| 13 ++- arch/arm/dts/socfpga_n5x-u-boot.dtsi | 10 ++ arch/arm/dts

[PATCH] arm: socfpga: soc64: Add support for board_boot_order()

2022-12-11 Thread Jit Loon Lim
From: Sin Hui Kho Add board_boot_order() to retrieve the list of boot devices from spl-boot-order property in device tree. This board_boot_order() will use for all Intel SOC64 device for single SPL binary. Signed-off-by: Sin Hui Kho Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga

[PATCH] arm: socfpga: Add function to get Board ID

2022-12-11 Thread Jit Loon Lim
From: Yau Wai Gan Board ID is defined in JTAG User Code register. This function retrieves the Board ID and perform validation on it. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/board.c | 39 +++ .../mach-socfpga/include

[PATCH] arm: socfpga: Enable U-boot FIT Config Name Match with Board ID

2022-12-11 Thread Jit Loon Lim
From: Yau Wai Gan U-boot FIT configuration shall be selected based on the Board ID that is set. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/board.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-socfpga

[PATCH] arm: socfpga: Export Board ID as U-boot Environment Variable

2022-12-11 Thread Jit Loon Lim
From: Yau Wai Gan Board ID is exported as environment variable for use to boot Linux FIT configuration. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/misc_soc64.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-socfpga/misc_soc64.c

[PATCH 2/4] configs: defconfig: Update default NAND MTD partition for Agilex and Stratix 10

2022-12-11 Thread Jit Loon Lim
From: Sin Hui Kho Change default MTD partition scheme for NAND flash after implementation of UBI and UBIFS. "u-boot" partition remain for raw u-boot image, but "root" partition is use for UBI image containing all other components. Signed-off-by: Sin Hui Kho Signed-

[PATCH 4/4] arm: socfpga: soc64: Load and boot for NAND flash with UBI and UBIFS in enviroment

2022-12-11 Thread Jit Loon Lim
From: Sin Hui Kho Load kernel and device tree from UBI volume. Set root file system type for NAND boot as UBIFS located at UBI volume on MTD partition 1 or namely "root". Signed-off-by: Sin Hui Kho Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 9 +++

[PATCH 1/4] configs: defconfig: Enable UBI and UBIFS for Agilex and Stratix10

2022-12-11 Thread Jit Loon Lim
From: Sin Hui Kho Enabling configs required for UBI and UBIFS commands. Set environment in a UBI volume. So, remove CONFIG_ENV_IS_IN_NAND as the environment is now in UBI volume. Signed-off-by: Sin Hui Kho Signed-off-by: Jit Loon Lim --- configs/socfpga_agilex_nand_atf_defconfig| 11

[PATCH 3/4] arm: dts: Update NAND MTD partition for Agilex and Stratix 10

2022-12-11 Thread Jit Loon Lim
From: Sin Hui Kho Change NAND flash MTD partition in device tree after implementation of UBI and UBIFS. "u-boot" partition remain for raw u-boot image, but "root" partition is use for UBI image containing all other components. Signed-off-by: Sin Hui Kho Signed-off-by: Jit

[PATCH] include: configs: socfpga: Add environment variables for distro boot

2022-12-11 Thread Jit Loon Lim
From: Yau Wai Gan Added environment variables needed to support distro boot. Signed-off-by: Yau Wai Gan Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 81 +- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/include/configs

[PATCH] mtd: spi-nor-ids: add Macronix flash entry

2022-12-11 Thread Jit Loon Lim
From: Tien Fong Chee Add Macronix mx25u51245g flash entry, so this can be used on SoCFPGA devices. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- drivers/mtd/spi/spi-nor-ids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi-nor-ids.c b

[PATCH] spl: fit: nand: fix fit loading on bad blocks

2022-12-11 Thread Jit Loon Lim
the sectors concerned. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- common/spl/spl_nand.c | 3 +- drivers/mtd/nand/raw/denali.c | 91 ++- 2 files changed, 92 insertions(+), 2 deletions(-) diff --git a/common/spl/spl_nand.c b/common/spl

[PATCH] Add CONFIG_SYS_NAND_SELF_INIT to Kconfig for NAND DENALI driver

2022-12-11 Thread Jit Loon Lim
From: "Lokanathan, Raaj" Add the CONFIG_SYS_NAND_SELF_INIT to the Kconfig to follow the changes from mainline. Signed-off-by: Lokanathan, Raaj Signed-off-by: Jit Loon Lim --- drivers/mtd/nand/raw/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/raw

[PATCH 1/2] configs: add env. variable to support compressed kernel in qspiboot

2022-12-11 Thread Jit Loon Lim
From: Kah Jing Lee Fix qspiboot issue which uncompressed kernel(5.16) overflows to rootfs Add 2 env. variables to support compressed kernel in legacy qspiboot: setenv kernel_comp_addr_r 0x900 setenv kernel_comp_size 0x0100 Signed-off-by: Kah Jing Lee Signed-off-by: Jit Loon Lim

[PATCH 2/2] configs: increase CONFIG_SYS_BOOTM_LEN to support kernel > 32MB

2022-12-11 Thread Jit Loon Lim
From: Kah Jing Lee Increase CONFIG_SYS_BOOTM_LEN to support kernel image from 5.15.lts that is > 32MB Signed-off-by: Kah Jing Lee Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/socfpga_soc64_commo

[PATCH] arm: socfpga: Expand the help text for the bridge command.

2022-12-11 Thread Jit Loon Lim
x 10: bit3: f2sdram0 bit4: f2sdram1 bit5: f2sdram2 Signed-off-by: Lokanathan, Raaj Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/misc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c index 9c19157de7..0112cfd

[PATCH] mtd: spi: Add ISSI QSPI to lightweight SPI flash stack for spl

2022-12-11 Thread Jit Loon Lim
From: "Lokanathan, Raaj" Add support for reading data/images from this ISSI QSPI flash. Signed-off-by: Lokanathan, Raaj Signed-off-by: Jit Loon Lim --- drivers/mtd/spi/spi-nor-tiny.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi-no

[PATCH v1 1/1] arch:arm: Agilex5 enablement

2024-02-20 Thread Jit Loon Lim
This patch is to enable Agilex5 platform for Intel product. Changes, modification and new files are created for board, dts, configs and makefile to create the base for Agilex5. Signed-off-by: Jit Loon Lim --- arch/arm/Kconfig | 9 +- arch/arm/dts/Makefile

[PATCH v2 0/1] Agilex5 enablement

2024-02-25 Thread Jit Loon Lim
V1: https://patchwork.ozlabs.org/project/uboot/patch/20240220143603.22091-1-jit.loon@intel.com/ V2: Fixed Git auto-merge causing misalignment of code and insert/delete Jit Loon Lim (1): arch:arm: Agilex5 enablement arch/arm/Kconfig | 13 +- arch/arm/dts

[PATCH v2 1/1] arch:arm: Agilex5 enablement

2024-02-25 Thread Jit Loon Lim
This patch is to enable Agilex5 platform for Intel product. Changes, modification and new files are created for board, dts, configs and makefile to create the base for Agilex5. Signed-off-by: Jit Loon Lim --- Changes v1 -> v2: - fixed git auto merge issue --- arch/arm/Kcon

[PATCH 1/3] fpga: intel_pr: Change to use fdt_get_resource()

2022-11-07 Thread Jit Loon Lim
-by: Jit Loon Lim --- drivers/fpga/intel_pr.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/fpga/intel_pr.c b/drivers/fpga/intel_pr.c index b8f510fbd7..6637425452 100644 --- a/drivers/fpga/intel_pr.c +++ b/drivers/fpga/intel_pr.c @@ -34,6 +34,8 @@ static

[PATCH 2/3] Set/clear reset_req bit before/after PR

2022-11-07 Thread Jit Loon Lim
, Chiau Ee Signed-off-by: Jit Loon Lim --- drivers/fpga/intel_pr.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/fpga/intel_pr.c b/drivers/fpga/intel_pr.c index 6637425452..a0a758488b 100644 --- a/drivers/fpga/intel_pr.c +++ b/drivers/fpga/intel_pr.c

  1   2   >