[RESEND v2 01/22] arm: socfpga: Move Stratix10 and Agilex to use TARGET_SOCFPGA_SOC64

Tan, Ley Foon ley.foon.tan at intel.com
Fri Nov 13 04:41:37 CET 2020



> -----Original Message-----
> From: Lim, Elly Siew Chin <elly.siew.chin.lim at intel.com>
> Sent: Tuesday, November 10, 2020 2:44 PM
> To: u-boot at lists.denx.de
> Cc: Marek Vasut <marex at denx.de>; Tan, Ley Foon
> <ley.foon.tan at intel.com>; See, Chin Liang <chin.liang.see at intel.com>;
> Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>; Chee, Tien Fong
> <tien.fong.chee at intel.com>; Westergreen, Dalon
> <dalon.westergreen at intel.com>; Simon Glass <sjg at chromium.org>; Gan,
> Yau Wai <yau.wai.gan at intel.com>; Lim, Elly Siew Chin
> <elly.siew.chin.lim at intel.com>
> Subject: [RESEND v2 01/22] arm: socfpga: Move Stratix10 and Agilex to use
> TARGET_SOCFPGA_SOC64
> 
> Create common macro TARGET_SOCFPGA_SOC64 for Stratix10 and Agilex.
> 
> Signed-off-by: Siew Chin Lim <elly.siew.chin.lim at intel.com>
> ---
>  arch/arm/Kconfig                                    | 6 +++---
>  arch/arm/mach-socfpga/Kconfig                       | 5 +++++
>  arch/arm/mach-socfpga/include/mach/reset_manager.h  | 3 +--
> arch/arm/mach-socfpga/include/mach/system_manager.h | 3 +--
>  drivers/ddr/altera/Kconfig                          | 6 +++---
>  drivers/fpga/Kconfig                                | 2 +-
>  drivers/sysreset/Kconfig                            | 2 +-
>  7 files changed, 15 insertions(+), 12 deletions(-)
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index
> b2f7fcbd6e..663ea07341 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -974,7 +974,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
> @@ -986,7 +986,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
> @@ -995,7 +995,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
> diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-
> socfpga/Kconfig index 7fdb52dd83..4d061a9d0d 100644
> --- a/arch/arm/mach-socfpga/Kconfig
> +++ b/arch/arm/mach-socfpga/Kconfig
> @@ -31,6 +31,7 @@ config SYS_TEXT_BASE
> 
>  config TARGET_SOCFPGA_AGILEX
>  	bool
> +	select TARGET_SOCFPGA_SOC64
Sort by alphabetical order. 

>  	select ARMV8_MULTIENTRY
>  	select ARMV8_SET_SMPEN
>  	select CLK
> @@ -75,8 +76,12 @@ 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 TARGET_SOCFPGA_SOC64
Sort by alphabetical order.

>  	select ARMV8_MULTIENTRY
>  	select ARMV8_SET_SMPEN
>  	select FPGA_INTEL_SDM_MAILBOX

Regards
Ley Foon


More information about the U-Boot mailing list