]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm: socfpga: Move Stratix10 and Agilex to use TARGET_SOCFPGA_SOC64
authorSiew Chin Lim <elly.siew.chin.lim@intel.com>
Mon, 1 Mar 2021 12:04:10 +0000 (20:04 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Mon, 8 Mar 2021 02:59:10 +0000 (10:59 +0800)
Create common macro TARGET_SOCFPGA_SOC64 for Stratix10 and Agilex.

Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
arch/arm/Kconfig
arch/arm/mach-socfpga/Kconfig
arch/arm/mach-socfpga/include/mach/reset_manager.h
arch/arm/mach-socfpga/include/mach/system_manager.h
drivers/ddr/altera/Kconfig
drivers/fpga/Kconfig
drivers/sysreset/Kconfig

index d51abbeaf0d12d44a4001a1fba203c4c37f5cfdf..3307f2b3fc5de321cba3f2dfde1739ebe9b37d62 100644 (file)
@@ -970,7 +970,7 @@ config ARCH_SOCFPGA
        bool "Altera SOCFPGA family"
        select ARCH_EARLY_INIT_R
        select ARCH_MISC_INIT if !TARGET_SOCFPGA_ARRIA10
-       select ARM64 if TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
+       select ARM64 if TARGET_SOCFPGA_SOC64
        select CPU_V7A if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
        select DM
        select DM_SERIAL
@@ -982,7 +982,7 @@ config ARCH_SOCFPGA
        select SPL_LIBGENERIC_SUPPORT
        select SPL_NAND_SUPPORT if SPL_NAND_DENALI
        select SPL_OF_CONTROL
-       select SPL_SEPARATE_BSS if TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
+       select SPL_SEPARATE_BSS if TARGET_SOCFPGA_SOC64
        select SPL_SERIAL_SUPPORT
        select SPL_SYSRESET
        select SPL_WATCHDOG_SUPPORT
@@ -991,7 +991,7 @@ config ARCH_SOCFPGA
        select SYS_THUMB_BUILD if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
        select SYSRESET
        select SYSRESET_SOCFPGA if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
-       select SYSRESET_SOCFPGA_SOC64 if TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
+       select SYSRESET_SOCFPGA_SOC64 if TARGET_SOCFPGA_SOC64
        imply CMD_DM
        imply CMD_MTDPARTS
        imply CRC32_VERIFY
index 4d4ff16337f7360402366516d5a3c8e208b217f4..9b1abdaabdfd339e070646fbf71f879ff71c5b01 100644 (file)
@@ -38,6 +38,7 @@ config TARGET_SOCFPGA_AGILEX
        select FPGA_INTEL_SDM_MAILBOX
        select NCORE_CACHE
        select SPL_CLK if SPL
+       select TARGET_SOCFPGA_SOC64
 
 config TARGET_SOCFPGA_ARRIA5
        bool
@@ -75,12 +76,16 @@ config TARGET_SOCFPGA_GEN5
        imply SPL_SYS_MALLOC_SIMPLE
        imply SPL_USE_TINY_PRINTF
 
+config TARGET_SOCFPGA_SOC64
+       bool
+
 config TARGET_SOCFPGA_STRATIX10
        bool
        select ARMV8_MULTIENTRY
        select ARMV8_SET_SMPEN
        select BINMAN if SPL_ATF
        select FPGA_INTEL_SDM_MAILBOX
+       select TARGET_SOCFPGA_SOC64
 
 choice
        prompt "Altera SOCFPGA board select"
index 7844ad14cb66c3b60fc88efc2b12c9e70ccf54ef..8c25325e45b2d571d05e07304c3f4f84b7ae4eb9 100644 (file)
@@ -43,8 +43,7 @@ void socfpga_per_reset_all(void);
 #include <asm/arch/reset_manager_gen5.h>
 #elif defined(CONFIG_TARGET_SOCFPGA_ARRIA10)
 #include <asm/arch/reset_manager_arria10.h>
-#elif defined(CONFIG_TARGET_SOCFPGA_STRATIX10) || \
-       defined(CONFIG_TARGET_SOCFPGA_AGILEX)
+#elif defined(CONFIG_TARGET_SOCFPGA_SOC64)
 #include <asm/arch/reset_manager_soc64.h>
 #endif
 
index f8169547172749af9639d8a156d9928698680ed1..5603eaa3d024deb119a9a669ed22d7a5d65fcd45 100644 (file)
@@ -8,8 +8,7 @@
 
 phys_addr_t socfpga_get_sysmgr_addr(void);
 
-#if defined(CONFIG_TARGET_SOCFPGA_STRATIX10) || \
-       defined(CONFIG_TARGET_SOCFPGA_AGILEX)
+#if defined(CONFIG_TARGET_SOCFPGA_SOC64)
 #include <asm/arch/system_manager_soc64.h>
 #else
 #define SYSMGR_ROMCODEGRP_CTRL_WARMRSTCFGPINMUX        BIT(0)
index 8f590dc5f611a36b88488ec3e1f3a9f097e322dd..4660d20deff0a8fef2eab8c53374924668c12570 100644 (file)
@@ -1,8 +1,8 @@
 config SPL_ALTERA_SDRAM
        bool "SoCFPGA DDR SDRAM driver in SPL"
        depends on SPL
-       depends on TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10 || TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
-       select RAM if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
-       select SPL_RAM if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
+       depends on TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10 || TARGET_SOCFPGA_SOC64
+       select RAM if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_SOC64
+       select SPL_RAM if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_SOC64
        help
          Enable DDR SDRAM controller for the SoCFPGA devices.
index 425b52a9266215ce7b72fb75e6d0c6245d12ee1e..dc0b3dd31b7d1d95371ef3afd72c28d48f5fb0d2 100644 (file)
@@ -33,7 +33,7 @@ config FPGA_CYCLON2
 
 config FPGA_INTEL_SDM_MAILBOX
        bool "Enable Intel FPGA Full Reconfiguration SDM Mailbox driver"
-       depends on TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX
+       depends on TARGET_SOCFPGA_SOC64
        select FPGA_ALTERA
        help
          Say Y here to enable the Intel FPGA Full Reconfig SDM Mailbox driver
index 968dfa483190855f64eb0d9593c6a1f4671f74a3..ac77ffbc8bed414a312fd688ef39a4f9400f8ad8 100644 (file)
@@ -94,7 +94,7 @@ config SYSRESET_SOCFPGA
 
 config SYSRESET_SOCFPGA_SOC64
        bool "Enable support for Intel SOCFPGA SoC64 family (Stratix10/Agilex)"
-       depends on ARCH_SOCFPGA && (TARGET_SOCFPGA_STRATIX10 || TARGET_SOCFPGA_AGILEX)
+       depends on ARCH_SOCFPGA && TARGET_SOCFPGA_SOC64
        help
          This enables the system reset driver support for Intel SOCFPGA
          SoC64 SoCs.