Skip to contentSkip to conversation

arch:arm: Agilex5 enablement

PATCH Superseded Jit Loon Lim 2 participants 3 messages Feb 20, 2024 – Feb 26, 2024

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch:arm: Agilex5 enablement

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.

---
 arch/arm/Kconfig                              |   9 +-
 arch/arm/dts/Makefile                         |  32 +----
 .../arm/dts/socfpga_agilex5_socdk-u-boot.dtsi |  11 +-
 arch/arm/dts/socfpga_agilex5_socdk.dts        |  67 +---------
 arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi    |   2 +-
 arch/arm/mach-socfpga/Kconfig                 | 125 +++++-------------
 arch/arm/mach-socfpga/Makefile                |  99 +-------------
 arch/arm/mach-socfpga/board.c                 |   2 -
 .../include/mach/base_addr_soc64.h            |  16 +--
 board/intel/agilex5-socdk/MAINTAINERS         |   2 +
 board/intel/agilex5-socdk/Makefile            |   2 +-
 board/intel/agilex5-socdk/socfpga.c           |   2 +-
 configs/socfpga_agilex5_defconfig             |  33 -----
 include/configs/socfpga_agilex5_socdk.h       |   2 +-
 include/configs/socfpga_soc64_common.h        |  40 +-----
 15 files changed, 63 insertions(+), 381 deletions(-)
arch/arm/Kconfig +5 -4
index 43d5ad346f..c8d91669da 100644
@@ -28,7 +28,7 @@ config COUNTER_FREQUENCY
 			ROCKCHIP_RK3288 || ROCKCHIP_RK322X || ROCKCHIP_RK3036
 	default 25000000 if ARCH_LX2160A || ARCH_LX2162A || ARCH_LS1088A
 	default 100000000 if ARCH_ZYNQMP
-	default 400000000 if ARCH_SOCFPGA && ARM64
+	default 200000000 if ARCH_SOCFPGA && ARM64 && TARGET_SOCFPGA_AGILEX5
 	default 0
 	help
 	  For platforms with ARMv8-A and ARMv7-A which features a system
@@ -1088,14 +1088,14 @@ config ARCH_SNAPDRAGON
 	select SPMI
 	imply CMD_DM
 
-config ARCH_SOCFPGA
-	bool "Altera SOCFPGA family"
+bool "Altera SOCFPGA family"
 	select ARCH_EARLY_INIT_R
 	select ARCH_MISC_INIT if !TARGET_SOCFPGA_ARRIA10
 	select ARM64 if TARGET_SOCFPGA_SOC64
 	select CPU_V7A if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
 	select DM
 	select DM_SERIAL
+	select GICV2
 	select GPIO_EXTRA_HEADER
 	select ENABLE_ARM_SOC_BOOT0_HOOK if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
 	select OF_CONTROL
@@ -1109,7 +1109,7 @@ config ARCH_SOCFPGA
 	select SPL_SOCFPGA_SEC_REG if TARGET_SOCFPGA_SOC64
 	select SPL_SERIAL
 	select SPL_SYSRESET
-	select SPL_WATCHDOG
+	select SPL_WATCHDOG if !TARGET_SOCFPGA_AGILEX5
 	select SUPPORT_SPL
 	select SYS_NS16550
 	select SYS_THUMB_BUILD if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
@@ -1123,6 +1123,7 @@ config ARCH_SOCFPGA
 	imply DM_SPI
 	imply DM_SPI_FLASH
 	imply FAT_WRITE
+	imply MTD
 	imply SPL
 	imply SPL_DM
 	imply SPL_DM_SPI
arch/arm/dts/Makefile +1 -31
index 90d933a9ae..646f4feaf7 100644
@@ -543,37 +543,7 @@ dtb-$(CONFIG_TARGET_AM3517_EVM) += am3517-evm.dtb
 dtb-$(CONFIG_TARGET_THUNDERX_88XX) += thunderx-88xx.dtb
 
 dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
-	socfpga_agilex_n6010.dtb			\
-	socfpga_agilex_socdk.dtb			\
-	socfpga_agilex_socdk_nand.dtb                   \
-	socfpga_agilex_socdk_qspi.dtb			\
-	socfpga_agilex5_socdk.dtb			\
-	socfpga_agilex5_emu.dtb			\
-	socfpga_agilex7m_socdk.dtb			\
-	socfpga_agilex7m_socdk_nand.dtb			\
-	socfpga_arria5_secu1.dtb			\
-	socfpga_arria5_socdk.dtb			\
-	socfpga_arria10_chameleonv3_270_2.dtb		\
-	socfpga_arria10_chameleonv3_270_3.dtb		\
-	socfpga_arria10_chameleonv3_480_2.dtb		\
-	socfpga_arria10_socdk_nand.dtb			\
-	socfpga_arria10_socdk_qspi.dtb			\
-	socfpga_arria10_socdk_sdmmc.dtb			\
-	socfpga_cyclone5_mcvevk.dtb			\
-	socfpga_cyclone5_is1.dtb			\
-	socfpga_cyclone5_socdk.dtb			\
-	socfpga_cyclone5_dbm_soc1.dtb			\
-	socfpga_cyclone5_de0_nano_soc.dtb		\
-	socfpga_cyclone5_de1_soc.dtb			\
-	socfpga_cyclone5_de10_nano.dtb			\
-	socfpga_cyclone5_sockit.dtb			\
-	socfpga_cyclone5_socrates.dtb			\
-	socfpga_cyclone5_sr1500.dtb			\
-	socfpga_cyclone5_vining_fpga.dtb		\
-	socfpga_n5x_socdk.dtb				\
-	socfpga_stratix10_socdk.dtb			\
-	socfpga_stratix10_socdk_nand.dtb                \
-	socfpga_stratix10_socdk_qspi.dtb
+	socfpga_agilex5_socdk.dtb
 
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-evm.dtb	\
 	dra72-evm-revc.dtb dra71-evm.dtb dra76-evm.dtb
arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi +6 -5
index 5da93576c2..28e1c140c2 100755
@@ -2,7 +2,7 @@
 /*
  * U-Boot additions
  *
- * Copyright (C) 2022-2023 Intel Corporation <www.intel.com> 
+ * Copyright (C) 2024 Intel Corporation <www.intel.com>
  */
 
 #include "socfpga_agilex5-u-boot.dtsi"
@@ -14,16 +14,17 @@
 	};
 
 	soc {
-		freeze_controller: freeze_controller@f9000450 {
+		freeze_controller: freeze_controller@0x20000450 {
 			compatible = "altr,freeze-bridge-controller";
-			reg = <0xf9000450 0x00000010>;
+			reg = <0x20000450 0x00000010>;
 			status = "disabled";
 		};
 	};
 
 	memory {
-		/* 2GB on Simics*/
-		reg = <0 0x80000000 0 0x80000000>;
+		/* 8GB */
+		reg = <0 0x80000000 0 0x80000000>,
+		      <8 0x80000000 1 0x80000000>;
 	};
 
 	chosen {
arch/arm/dts/socfpga_agilex5_socdk.dts +1 -66

93 lines not on this page · raw message

arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi +1 -1
index ddadde874d..7a5af489c5 100644
@@ -2,7 +2,7 @@
 /*
  * U-Boot additions
  *
- * Copyright (C) 2020-2023 Intel Corporation <www.intel.com>
+ * Copyright (C) 2024 Intel Corporation <www.intel.com>
  */
 
 #if defined(CONFIG_FIT)
arch/arm/mach-socfpga/Kconfig +34 -91

239 lines not on this page · raw message

arch/arm/mach-socfpga/Makefile +1 -98

156 lines not on this page · raw message

arch/arm/mach-socfpga/board.c +0 -2
index a6ace9fd9f..219e3f9d74 100644
@@ -183,8 +183,6 @@ void board_prep_linux(struct bootm_headers *images)
 	if (use_fit && IS_ENABLED(CONFIG_CADENCE_QSPI)) {
 		if (env_get("linux_qspi_enable"))
 			run_command(env_get("linux_qspi_enable"), 0);
-		if (env_get("rsu_status"))
-			run_command(env_get("rsu_status"), 0);
 	}
 }
 #endif
arch/arm/mach-socfpga/include/mach/base_addr_soc64.h +7 -9
index 20de892414..8215238ac7 100644
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /*
- * Copyright (C) 2016-2023 Intel Corporation <www.intel.com>
+ * Copyright (C) 2016-2024 Intel Corporation <www.intel.com>
  */
 
 #ifndef _SOCFPGA_SOC64_BASE_HARDWARE_H_
@@ -32,14 +32,12 @@
 #define SOCFPGA_FW_DDR_CCU_DMI0_ADDRESS		0x18000800
 #define SOCFPGA_FW_DDR_CCU_DMI1_ADDRESS		0x18000A00
 #define SOCFPGA_FW_TBU2NOC_ADDRESS		0x18000C00
-#define SOCFPGA_FIREWALL_L4_PER			0xffd21000 /* TODO */
-#define SOCFPGA_FIREWALL_L4_SYS			0xffd21100 /* TODO */
-#define SOCFPGA_FIREWALL_SOC2FPGA		0xffd21200 /* TODO */
-#define SOCFPGA_FIREWALL_LWSOC2FPGA		0xffd21300 /* TODO */
-#define SOCFPGA_FIREWALL_TCU			0xffd21400 /* TODO */
-#define SOCFPGA_FIREWALL_PRIV_MEMORYMAP_PRIV	0xffd24800 /* TODO */
-#define SOCFPGA_DMANONSECURE_ADDRESS		0xffda0000 /* TODO */
-#define SOCFPGA_DMASECURE_ADDRESS		0xffda1000 /* TODO */
+#define SOCFPGA_FIREWALL_L4_PER			0x10d21000
+#define SOCFPGA_FIREWALL_L4_SYS			0x10d21100
+#define SOCFPGA_FIREWALL_SOC2FPGA		0x10d21200
+#define SOCFPGA_FIREWALL_LWSOC2FPGA		0x10d21300
+#define SOCFPGA_FIREWALL_TCU			0x10d21400
+#define SOCFPGA_FIREWALL_PRIV_MEMORYMAP_PRIV	0x10d24800
 #define GICD_BASE				0x1d000000
 #define GICR_BASE				0x1d060000
 #else
board/intel/agilex5-socdk/MAINTAINERS +2 -0
index e198308c43..b696f788c8 100755
@@ -1,5 +1,7 @@
 SOCFPGA BOARD
 M:	Tien Fong Chee <[email protected]>
+M:	Teik Heng Chong <[email protected]>
+M:	Jit Loon Lim <[email protected]>
 S:	Maintained
 F:	board/intel/agilex5-socdk/
 F:	include/configs/socfpga_agilex5_socdk.h
board/intel/agilex5-socdk/Makefile +1 -1
index 52f7de8880..d598d249e5 100755
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2022 Intel Corporation <www.intel.com>
+# Copyright (C) 2024 Intel Corporation <www.intel.com>
 #
 # SPDX-License-Identifier:	GPL-2.0
 #
board/intel/agilex5-socdk/socfpga.c +1 -1
index ae5c04557c..f1b5fd9a14 100755
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * Copyright (C) 2022 Intel Corporation <www.intel.com>
+ * Copyright (C) 2024 Intel Corporation <www.intel.com>
  *
  */
 
configs/socfpga_agilex5_defconfig +0 -33
index fd3e1efc65..415c8e4a2b 100755
@@ -9,7 +9,6 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x04100000
 CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="socfpga_agilex5_socdk"
-CONFIG_TARGET_SOCFPGA_AGILEX5_SIMICS=y
 CONFIG_TARGET_SOCFPGA_AGILEX5_SOCDK=y
 CONFIG_IDENT_STRING="socfpga_agilex5"
 CONFIG_SPL_FS_FAT=y
@@ -34,35 +33,18 @@ CONFIG_CMD_NVEDIT_SELECT=y
 CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
-CONFIG_CMD_MMC=y
 CONFIG_CMD_SF=y
-CONFIG_PHY=y
-CONFIG_SPL_PHY=y
-CONFIG_PHY_CADENCE_COMBOPHY=y
-CONFIG_DM_MMC=y
-CONFIG_SPL_MMC=y
-CONFIG_SPL_DM_MMC=y
-CONFIG_MMC_SDHCI=y
-CONFIG_MMC_SDHCI_ADMA=y
-CONFIG_SPL_MMC_SDHCI_ADMA=y
-CONFIG_SYS_MMC_MAX_BLK_COUNT=256
-CONFIG_MMC_SDHCI_CADENCE=y
-CONFIG_CMD_FAT=y
 CONFIG_DOS_PARTITION=y
 CONFIG_SPL_DOS_PARTITION=y
 CONFIG_SPL_SYS_DISABLE_DCACHE_OPS=y
 CONFIG_CMD_MTD=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
-CONFIG_CMD_NAND_TRIMFFS=y
-CONFIG_CMD_NAND_LOCK_UNLOCK=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_CACHE=y
 CONFIG_SPL_SPI_FLASH_MTD=y
 CONFIG_SPI_FLASH_MTD=y
 CONFIG_SPL_MTD_SUPPORT=y
-CONFIG_MTDIDS_DEFAULT="nand0=10b80000.nand.0"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=10b80000.nand.0:2m(u-boot),-(root)"
 CONFIG_CMD_UBI=y
 CONFIG_CMD_UBIFS=y
 CONFIG_MTD_UBI=y
@@ -83,31 +65,22 @@ CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
 CONFIG_MISC=y
-CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
-CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
-CONFIG_SYS_NAND_U_BOOT_OFFS=0x0
-CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND=0x100000
 CONFIG_SF_DEFAULT_MODE=0x2003
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_UBI_SILENCE_MSG=y
-CONFIG_PHY_MARVELL=y
 CONFIG_DM_ETH=y
-CONFIG_DWC_ETH_XGMAC=y
 CONFIG_RGMII=y
 CONFIG_DM_RESET=y
 CONFIG_SYS_NS16550_MEM32=y
 CONFIG_SPI=y
 CONFIG_CADENCE_QSPI=y
 CONFIG_DESIGNWARE_SPI=y
-CONFIG_NOP_PHY=y
 CONFIG_USB=y
 CONFIG_USB_DWC2=y
-CONFIG_USB_DWC3=y
 CONFIG_USB_XHCI_HCD=y
-CONFIG_USB_XHCI_DWC3=y
 CONFIG_UBIFS_SILENCE_MSG=y
 # CONFIG_SPL_USE_TINY_PRINTF is not set
 CONFIG_PANIC_HANG=y
@@ -136,11 +109,5 @@ CONFIG_SPL_BSS_MAX_SIZE=0x100000
 CONFIG_I3C=y
 CONFIG_DW_I3C_MASTER=y
 CONFIG_CMD_I3C=y
-CONFIG_MTD_RAW_NAND=y
-CONFIG_NAND_CADENCE=y
-CONFIG_SPL_NAND_SUPPORT=y
-CONFIG_SPL_NAND_FRAMEWORK=y
-CONFIG_SPL_NAND_CADENCE=y
 CONFIG_SYS_MAXARGS=32
 CONFIG_CMD_TIMER=y
-CONFIG_SYS_NAND_ONFI_DETECTION=y
include/configs/socfpga_agilex5_socdk.h +1 -1
index ad2b5632d1..b5b5bd767f 100755
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0
  *
- * Copyright (C) 2019-2022 Intel Corporation <www.intel.com>
+ * Copyright (C) 2024 Intel Corporation <www.intel.com>
  *
  */
 
include/configs/socfpga_soc64_common.h +2 -38
index c21d8eb891..a4b6999f40 100644
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0
  *
- * Copyright (C) 2017-2023 Intel Corporation <www.intel.com>
+ * Copyright (C) 2017-2024 Intel Corporation <www.intel.com>
  *
  */
 
@@ -14,35 +14,6 @@
 /*
  * U-Boot general configurations
  */
-/* sysmgr.boot_scratch_cold4 & 5 (64bit) will be used for PSCI_CPU_ON call */
-#define CPU_RELEASE_ADDR		0xFFD12210
-/* sysmgr.boot_scratch_cold8 bit 17 (1bit) will be used to check whether CPU0
- * is being powered off/on from kernel
- */
-#define BOOT_SCRATCH_COLD8		0xFFD12220
-
-/*
- * sysmgr.boot_scratch_cold6 & 7 (64bit) will be used by master CPU to
- * store its VBAR_EL3 value. Other slave CPUs will read from this
- * location and update their VBAR_EL3 respectively
- */
-#define VBAR_EL3_BASE_ADDR		0xFFD12218
-/*
- * Share sysmgr.boot_scratch_cold6 & 7 (64bit) with VBAR_LE3_BASE_ADDR
- * Indicate L2 reset is done. HPS should trigger warm reset via RMR_EL3.
- */
-#define L2_RESET_DONE_REG		0xFFD12218
-
-/*
- * sysmgr.boot_scratch_cold8 bit 19 (1bit) will be used to check whether CPU0
- * is being powered off/on from kernel
- */
-#define BOOT_SCRATCH_COLD8		0xFFD12220
-
-/* Magic word to indicate L2 reset is completed */
-#define L2_RESET_DONE_STATUS		0x1228E5E7
-#define CONFIG_SYS_CACHELINE_SIZE	64
-#define CFG_SYS_MEM_RESERVE_SECURE	0	/* using OCRAM, not DDR */
 
 /*
  * U-Boot console configurations
@@ -62,8 +33,7 @@
 /*
  * U-Boot environment configurations
  */
-
- /*
+/*
  * NAND support
  */
 #ifdef CONFIG_NAND_DENALI
@@ -298,12 +268,6 @@
  */
 #define CFG_SYS_NS16550_CLK		100000000
 
-/*
-=======
- * Timer & watchdog configurations
- */
-#define COUNTER_FREQUENCY		400000000
-
 /*
  * SDMMC configurations
  */
Signature · 1 line
2.26.2
#1 lore raw

Hi,

Quoted 48 lines

-----Original Message-----
From: Lim, Jit Loon <[email protected]>
Sent: Tuesday, February 20, 2024 10:36 PM
To: [email protected]
Cc: Jagan Teki <[email protected]>; Marek <[email protected]>; Simon <[email protected]>; Chee, Tien Fong <[email protected]>; Hea, Kok Kiang <[email protected]>; Maniyam, Dinesh <[email protected]>; Ng, Boon Khai <[email protected]>; Yuslaimi, Alif Zakuan <[email protected]>; Chong, Teik Heng <[email protected]>; Zamri, Muhammad Hazim Izzat <[email protected]>; Lim, Jit Loon <[email protected]>; Tang, Sieu Mun <[email protected]>; Bin Meng <[email protected]>
Subject: [PATCH v1 1/1] arch:arm: Agilex5 enablement

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.

---
 arch/arm/Kconfig                              |   9 +-
 arch/arm/dts/Makefile                         |  32 +----
 .../arm/dts/socfpga_agilex5_socdk-u-boot.dtsi |  11 +-
 arch/arm/dts/socfpga_agilex5_socdk.dts        |  67 +---------
 arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi    |   2 +-
 arch/arm/mach-socfpga/Kconfig                 | 125 +++++-------------
 arch/arm/mach-socfpga/Makefile                |  99 +-------------
 arch/arm/mach-socfpga/board.c                 |   2 -
 .../include/mach/base_addr_soc64.h            |  16 +--
 board/intel/agilex5-socdk/MAINTAINERS         |   2 +
 board/intel/agilex5-socdk/Makefile            |   2 +-
 board/intel/agilex5-socdk/socfpga.c           |   2 +-
 configs/socfpga_agilex5_defconfig             |  33 -----
 include/configs/socfpga_agilex5_socdk.h       |   2 +-
 include/configs/socfpga_soc64_common.h        |  40 +-----
 15 files changed, 63 insertions(+), 381 deletions(-)
arch/arm/Kconfig index renamed from arch/arm/Kconfig +0 -0

43d5ad346f..c8d91669da 100644

arch/arm/Kconfig +0 -0
@@ -28,7 +28,7 @@ config COUNTER_FREQUENCY
 			ROCKCHIP_RK3288 || ROCKCHIP_RK322X ||

ROCKCHIP_RK3036
default 25000000 if ARCH_LX2160A || ARCH_LX2162A ||
ARCH_LS1088A

arch/arm/Kconfig config COUNTER_FREQUENCY · line 31

Quoted 2 lines
arch/arm/Kconfig +0 -1
 	default 100000000 if ARCH_ZYNQMP
-	default 400000000 if ARCH_SOCFPGA && ARM64

This patch is not based on latest U-Boot main branch https://source.denx.de/u-boot/u-boot.git, no such code in current main branch.

arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1091

Quoted 10 lines
arch/arm/Kconfig +1 -0
+	default 200000000 if ARCH_SOCFPGA && ARM64 &&

TARGET_SOCFPGA_AGILEX5

arch/arm/Kconfig +0 -1
 	default 0
 	help
 	  For platforms with ARMv8-A and ARMv7-A which features a system
@@ -1088,14 +1088,14 @@ config ARCH_SNAPDRAGON
 	select SPMI
 	imply CMD_DM
 
-config ARCH_SOCFPGA

Why remove this?

arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1091

Quoted 2 lines
arch/arm/Kconfig +1 -1
-	bool "Altera SOCFPGA family"
+bool "Altera SOCFPGA family"

Why to change this?

Quoted 13 lines
arch/arm/Kconfig +0 -0
 	select ARCH_EARLY_INIT_R
 	select ARCH_MISC_INIT if !TARGET_SOCFPGA_ARRIA10
 	select ARM64 if TARGET_SOCFPGA_SOC64
 	select CPU_V7A if TARGET_SOCFPGA_GEN5 ||

TARGET_SOCFPGA_ARRIA10

arch/arm/Kconfig +1 -0
 	select DM
 	select DM_SERIAL
+	select GICV2
 	select GPIO_EXTRA_HEADER
 	select ENABLE_ARM_SOC_BOOT0_HOOK if

TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10

arch/arm/Kconfig +0 -0
 	select OF_CONTROL

arch/arm/Kconfig config ARCH_SOCFPGA · line 1112

Quoted 5 lines
arch/arm/Kconfig +1 -1
@@ -1109,7 +1109,7 @@ config ARCH_SOCFPGA
 	select SPL_SOCFPGA_SEC_REG if TARGET_SOCFPGA_SOC64
 	select SPL_SERIAL
 	select SPL_SYSRESET
-	select SPL_WATCHDOG
+	select SPL_WATCHDOG if !TARGET_SOCFPGA_AGILEX5

This can be removed, watchdog is supported in Agilex5

Quoted 42 lines
arch/arm/Kconfig +0 -0
 	select SUPPORT_SPL
 	select SYS_NS16550
 	select SYS_THUMB_BUILD if TARGET_SOCFPGA_GEN5 ||

TARGET_SOCFPGA_ARRIA10 @@ -1123,6 +1123,7 @@ config ARCH_SOCFPGA

arch/arm/Kconfig +1 -0
 	imply DM_SPI
 	imply DM_SPI_FLASH
 	imply FAT_WRITE
+	imply MTD
 	imply SPL
 	imply SPL_DM
 	imply SPL_DM_SPI
arch/arm/dts/Makefile index renamed from arch/arm/dts/Makefile +0 -0

90d933a9ae..646f4feaf7 100644

arch/arm/dts/Makefile +0 -0
@@ -543,37 +543,7 @@ dtb-$(CONFIG_TARGET_AM3517_EVM) += am3517-

evm.dtb
dtb-$(CONFIG_TARGET_THUNDERX_88XX) += thunderx-88xx.dtb

dtb-$(CONFIG_ARCH_SOCFPGA) += \

arch/arm/dts/Makefile +0 -21
-	socfpga_agilex_n6010.dtb			\
-	socfpga_agilex_socdk.dtb			\
-	socfpga_agilex_socdk_nand.dtb                   \
-	socfpga_agilex_socdk_qspi.dtb			\
-	socfpga_agilex5_socdk.dtb			\
-	socfpga_agilex5_emu.dtb			\
-	socfpga_agilex7m_socdk.dtb			\
-	socfpga_agilex7m_socdk_nand.dtb			\
-	socfpga_arria5_secu1.dtb			\
-	socfpga_arria5_socdk.dtb			\
-	socfpga_arria10_chameleonv3_270_2.dtb		\
-	socfpga_arria10_chameleonv3_270_3.dtb		\
-	socfpga_arria10_chameleonv3_480_2.dtb		\
-	socfpga_arria10_socdk_nand.dtb			\
-	socfpga_arria10_socdk_qspi.dtb			\
-	socfpga_arria10_socdk_sdmmc.dtb			\
-	socfpga_cyclone5_mcvevk.dtb			\
-	socfpga_cyclone5_is1.dtb			\
-	socfpga_cyclone5_socdk.dtb			\
-	socfpga_cyclone5_dbm_soc1.dtb			\
-	socfpga_cyclone5_de0_nano_soc.dtb		\

arch/arm/dts/Makefile dtb-$(CONFIG_TARGET_AM3517_EVM) += am3517-evm.dtb · line 576

Quoted 10 lines
arch/arm/dts/Makefile +0 -10
-	socfpga_cyclone5_de1_soc.dtb			\
-	socfpga_cyclone5_de10_nano.dtb			\
-	socfpga_cyclone5_sockit.dtb			\
-	socfpga_cyclone5_socrates.dtb			\
-	socfpga_cyclone5_sr1500.dtb			\
-	socfpga_cyclone5_vining_fpga.dtb		\
-	socfpga_n5x_socdk.dtb				\
-	socfpga_stratix10_socdk.dtb			\
-	socfpga_stratix10_socdk_nand.dtb                \
-	socfpga_stratix10_socdk_qspi.dtb

Why remove these?

Quoted 11 lines
arch/arm/dts/Makefile +1 -0
+	socfpga_agilex5_socdk.dtb
 
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-evm.dtb
	\

dra72-evm-revc.dtb dra71-evm.dtb dra76-evm.dtb diff --git
a/arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi b/arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi
index 5da93576c2..28e1c140c2 100755

arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi line 6

Quoted 6 lines
arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi +1 -1
@@ -2,7 +2,7 @@
 /*
  * U-Boot additions
  *
- * Copyright (C) 2022-2023 Intel Corporation <www.intel.com>
+ * Copyright (C) 2024 Intel Corporation <www.intel.com>
  */

You are not using U-Boot main branch as the base.
Please rebase the patch on U-Boot main branch, I will review in next version.

[...]

Regards,
Tien Fong

#2 lore raw

Thanks

Best Regards
JL Lim (Benjamin)

Quoted 188 lines

-----Original Message-----
From: Chee, Tien Fong <[email protected]>
Sent: Wednesday, February 21, 2024 2:25 PM
To: Lim, Jit Loon <[email protected]>; [email protected]
Cc: Jagan Teki <[email protected]>; Marek <[email protected]>; Simon <[email protected]>; Hea, Kok Kiang <[email protected]>; Maniyam, Dinesh <[email protected]>; Ng, Boon Khai <[email protected]>; Yuslaimi, Alif Zakuan <[email protected]>; Chong, Teik Heng <[email protected]>; Zamri, Muhammad Hazim Izzat <[email protected]>; Tang, Sieu Mun <[email protected]>; Bin Meng <[email protected]>
Subject: RE: [PATCH v1 1/1] arch:arm: Agilex5 enablement

Hi,

Quoted 45 lines

-----Original Message-----
From: Lim, Jit Loon <[email protected]>
Sent: Tuesday, February 20, 2024 10:36 PM
To: [email protected]
Cc: Jagan Teki <[email protected]>; Marek <[email protected]>; Simon <[email protected]>; Chee, Tien Fong <[email protected]>; Hea, Kok Kiang <[email protected]>; Maniyam, Dinesh <[email protected]>; Ng, Boon Khai <[email protected]>; Yuslaimi, Alif Zakuan <[email protected]>; Chong, Teik Heng <[email protected]>; Zamri, Muhammad Hazim Izzat <[email protected]>; Lim, Jit Loon <[email protected]>; Tang, Sieu Mun <[email protected]>; Bin Meng <[email protected]>
Subject: [PATCH v1 1/1] arch:arm: Agilex5 enablement

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.

---
 arch/arm/Kconfig                              |   9 +-
 arch/arm/dts/Makefile                         |  32 +----
 .../arm/dts/socfpga_agilex5_socdk-u-boot.dtsi |  11 +-
 arch/arm/dts/socfpga_agilex5_socdk.dts        |  67 +---------
 arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi    |   2 +-
 arch/arm/mach-socfpga/Kconfig                 | 125 +++++-------------
 arch/arm/mach-socfpga/Makefile                |  99 +-------------
 arch/arm/mach-socfpga/board.c                 |   2 -
 .../include/mach/base_addr_soc64.h            |  16 +--
 board/intel/agilex5-socdk/MAINTAINERS         |   2 +
 board/intel/agilex5-socdk/Makefile            |   2 +-
 board/intel/agilex5-socdk/socfpga.c           |   2 +-
 configs/socfpga_agilex5_defconfig             |  33 -----
 include/configs/socfpga_agilex5_socdk.h       |   2 +-
 include/configs/socfpga_soc64_common.h        |  40 +-----
 15 files changed, 63 insertions(+), 381 deletions(-)
arch/arm/Kconfig index renamed from arch/arm/Kconfig +0 -0

43d5ad346f..c8d91669da 100644

arch/arm/Kconfig +0 -0
@@ -28,7 +28,7 @@ config COUNTER_FREQUENCY
 			ROCKCHIP_RK3288 || ROCKCHIP_RK322X ||
Quoted 2 lines

ROCKCHIP_RK3036
default 25000000 if ARCH_LX2160A || ARCH_LX2162A ||

ARCH_LS1088A

arch/arm/Kconfig config COUNTER_FREQUENCY · line 31

Quoted 2 lines
arch/arm/Kconfig +0 -1
 	default 100000000 if ARCH_ZYNQMP
-	default 400000000 if ARCH_SOCFPGA && ARM64

This patch is not based on latest U-Boot main branch
https://source.denx.de/u-boot/u-boot.git, no such code in current main branch.

arch/arm/Kconfig config COUNTER_FREQUENCY · line 34

Quoted 5 lines
arch/arm/Kconfig +1 -0
+	default 200000000 if ARCH_SOCFPGA && ARM64 &&

TARGET_SOCFPGA_AGILEX5

arch/arm/Kconfig +0 -0
 	default 0
 	help
 	  For platforms with ARMv8-A and ARMv7-A which features a system

@@

arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1091

Quoted 5 lines

-1088,14 +1088,14 @@ config ARCH_SNAPDRAGON

arch/arm/Kconfig +0 -1
 	select SPMI
 	imply CMD_DM
 
-config ARCH_SOCFPGA

Why remove this?

arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1091

Quoted 2 lines
arch/arm/Kconfig +1 -1
-	bool "Altera SOCFPGA family"
+bool "Altera SOCFPGA family"

Why to change this?

Quoted 13 lines
arch/arm/Kconfig +0 -0
 	select ARCH_EARLY_INIT_R
 	select ARCH_MISC_INIT if !TARGET_SOCFPGA_ARRIA10
 	select ARM64 if TARGET_SOCFPGA_SOC64
 	select CPU_V7A if TARGET_SOCFPGA_GEN5 ||

TARGET_SOCFPGA_ARRIA10

arch/arm/Kconfig +1 -0
 	select DM
 	select DM_SERIAL
+	select GICV2
 	select GPIO_EXTRA_HEADER
 	select ENABLE_ARM_SOC_BOOT0_HOOK if

TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10

arch/arm/Kconfig +0 -0
 	select OF_CONTROL

arch/arm/Kconfig config ARCH_SOCFPGA · line 1112

Quoted 5 lines
arch/arm/Kconfig +1 -1
@@ -1109,7 +1109,7 @@ config ARCH_SOCFPGA
 	select SPL_SOCFPGA_SEC_REG if TARGET_SOCFPGA_SOC64
 	select SPL_SERIAL
 	select SPL_SYSRESET
-	select SPL_WATCHDOG
+	select SPL_WATCHDOG if !TARGET_SOCFPGA_AGILEX5

This can be removed, watchdog is supported in Agilex5

Quoted 4 lines
arch/arm/Kconfig +0 -0
 	select SUPPORT_SPL
 	select SYS_NS16550
 	select SYS_THUMB_BUILD if TARGET_SOCFPGA_GEN5 ||

TARGET_SOCFPGA_ARRIA10 @@ -1123,6 +1123,7 @@ config

ARCH_SOCFPGA

arch/arm/dts/Makefile dtb-$(CONFIG_TARGET_AM3517_EVM) +=

Quoted 12 lines
arch/arm/Kconfig +1 -0
 	imply DM_SPI
 	imply DM_SPI_FLASH
 	imply FAT_WRITE
+	imply MTD
 	imply SPL
 	imply SPL_DM
 	imply SPL_DM_SPI
arch/arm/dts/Makefile index renamed from arch/arm/dts/Makefile +0 -0

90d933a9ae..646f4feaf7 100644

arch/arm/dts/Makefile +0 -0
@@ -543,37 +543,7 @@ dtb-$(CONFIG_TARGET_AM3517_EVM) +=

am3517-

Quoted 25 lines

evm.dtb
dtb-$(CONFIG_TARGET_THUNDERX_88XX) += thunderx-88xx.dtb

dtb-$(CONFIG_ARCH_SOCFPGA) += \

arch/arm/dts/Makefile +0 -21
-	socfpga_agilex_n6010.dtb			\
-	socfpga_agilex_socdk.dtb			\
-	socfpga_agilex_socdk_nand.dtb                   \
-	socfpga_agilex_socdk_qspi.dtb			\
-	socfpga_agilex5_socdk.dtb			\
-	socfpga_agilex5_emu.dtb			\
-	socfpga_agilex7m_socdk.dtb			\
-	socfpga_agilex7m_socdk_nand.dtb			\
-	socfpga_arria5_secu1.dtb			\
-	socfpga_arria5_socdk.dtb			\
-	socfpga_arria10_chameleonv3_270_2.dtb		\
-	socfpga_arria10_chameleonv3_270_3.dtb		\
-	socfpga_arria10_chameleonv3_480_2.dtb		\
-	socfpga_arria10_socdk_nand.dtb			\
-	socfpga_arria10_socdk_qspi.dtb			\
-	socfpga_arria10_socdk_sdmmc.dtb			\
-	socfpga_cyclone5_mcvevk.dtb			\
-	socfpga_cyclone5_is1.dtb			\
-	socfpga_cyclone5_socdk.dtb			\
-	socfpga_cyclone5_dbm_soc1.dtb			\
-	socfpga_cyclone5_de0_nano_soc.dtb		\

arch/arm/dts/Makefile dtb-$(CONFIG_TARGET_AM3517_EVM) += am3517-evm.dtb · line 576

Quoted 10 lines
arch/arm/dts/Makefile +0 -10
-	socfpga_cyclone5_de1_soc.dtb			\
-	socfpga_cyclone5_de10_nano.dtb			\
-	socfpga_cyclone5_sockit.dtb			\
-	socfpga_cyclone5_socrates.dtb			\
-	socfpga_cyclone5_sr1500.dtb			\
-	socfpga_cyclone5_vining_fpga.dtb		\
-	socfpga_n5x_socdk.dtb				\
-	socfpga_stratix10_socdk.dtb			\
-	socfpga_stratix10_socdk_nand.dtb                \
-	socfpga_stratix10_socdk_qspi.dtb

Why remove these?

Quoted 11 lines
arch/arm/dts/Makefile +1 -0
+	socfpga_agilex5_socdk.dtb
 
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-evm.dtb
	\

dra72-evm-revc.dtb dra71-evm.dtb dra76-evm.dtb diff --git
a/arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi b/arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi
index 5da93576c2..28e1c140c2 100755

arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi line 6

Quoted 6 lines
arch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi +1 -1
@@ -2,7 +2,7 @@
 /*
  * U-Boot additions
  *
- * Copyright (C) 2022-2023 Intel Corporation <www.intel.com>
+ * Copyright (C) 2024 Intel Corporation <www.intel.com>
  */

You are not using U-Boot main branch as the base.
Please rebase the patch on U-Boot main branch, I will review in next version.

Quoted 2 lines

[...]

Yes. This issue happens due to Git auto-merge.

Quoted 2 lines

Regards,
Tien Fong