diff -drupN a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms --- a/arch/arm64/Kconfig.platforms 2018-08-06 17:23:04.000000000 +0300 +++ b/arch/arm64/Kconfig.platforms 2022-06-12 05:28:14.000000000 +0300 @@ -1,3 +1,4 @@ + menu "Platform selection" config ARCH_SUNXI @@ -10,6 +11,217 @@ config ARCH_SUNXI help This enables support for Allwinner sunxi based SoCs like the A64. +if ARCH_SUNXI +choice + prompt "Select the architecture of SoC" + default ARCH_SUN50I + help + Select the architecture for SoC + sunxi + `-- sun50i ----- Cortex-A53 based Family SoCs + + config ARCH_SUN50I + bool "Allwinner SUN50I" +endchoice + +# Select the wafer with sun50i + +if ARCH_SUN50I +choice + prompt "Select the wafer with arch sun50i" + default ARCH_SUN50IW1 + help + Select the wafer with arch sun50i + +config ARCH_SUN50IW1 + bool "Allwinner SUN50IW1 SoCs" + help + Support for Allwinner SUN50IW1 SoC family + +config ARCH_SUN50IW2 + bool "Allwinner SUN50IW2 SoCs" + help + Support for Allwinner SUN50IW2 SoC family + +config ARCH_SUN50IW3 + bool "Allwinner SUN50IW3 SoCs" + help + Support for Allwinner SUN50IW3 SoC family + +config ARCH_SUN50IW6 + bool "Allwinner SUN50IW6 SoCs" + help + Support for Allwinner SUN50IW6 SoC family + +config ARCH_SUN50IW8 + bool "Allwinner SUN50IW8 SoCs" + help + Support for Allwinner SUN50IW8 SoC family + +config ARCH_SUN50IW9 + bool "Allwinner SUN50IW9 SoCs" + help + Support for Allwinner SUN50IW9 SoC family + +config ARCH_SUN50IW10 + bool "Allwinner SUN50IW10 SoCs" + help + Support for Allwinner SUN50IW10 SoC family + +config ARCH_SUN50IW11 + bool "Allwinner SUN50IW11 SoCs" + help + Support for Allwinner SUN50IW11 SoC family + +config ARCH_SUN50IW5T + bool "Allwinner SUN50IW5T SoCs" + help + Support for Allwinner SUN50IW5T SoC family +endchoice +endif + +# Select the SoC with specific arch and wafer + +if ARCH_SUN50IW1 +choice + prompt "Select the SoC with wafer ARCH_SUN50IW1" + default ARCH_SUN50IW1P1 + help + Select the SoC with wafer ARCH_SUN50IW1 + +config ARCH_SUN50IW1P1 + bool "Allwinner SUN50IW1P1" + select SUNXI_SMC +endchoice +endif + +if ARCH_SUN50IW2 +choice + prompt "Select the SoC with wafer ARCH_SUN50IW2" + default ARCH_SUN50IW2P1 + help + Select the SoC with wafer ARCH_SUN50IW2 + +config ARCH_SUN50IW2P1 + bool "Allwinner SUN50IW2P1" + select HAVE_UNSTABLE_SCHED_CLOCK + select SUNXI_SMC +endchoice +endif + +if ARCH_SUN50IW3 +choice + prompt "Select the SoC with wafer ARCH_SUN50IW3" + default ARCH_SUN50IW3P1 + help + Select the SoC with wafer ARCH_SUN50IW3 + +config ARCH_SUN50IW3P1 + bool "Allwinner SUN50IW3P1" + select SUNXI_SMC +endchoice +endif + +if ARCH_SUN50IW6 +choice + prompt "Select the SoC with wafer ARCH_SUN50IW6" + default ARCH_SUN50IW6P1 + help + Select the SoC with wafer ARCH_SUN50IW6 + +config ARCH_SUN50IW6P1 + bool "Allwinner SUN50IW6P1" + select SUNXI_SMC + select ARCH_SUPPORTS_MSI +endchoice +endif + +if ARCH_SUN50IW8 +choice + prompt "Select the SoC with wafer ARCH_SUN50IW8" + default ARCH_SUN50IW8P1 + help + Select the SoC with wafer ARCH_SUN50IW8 + +config ARCH_SUN50IW8P1 + bool "Allwinner SUN50IW8P1" +# Will not use smc in FPGA stage +# select SUNXI_SMC +endchoice +endif + +if ARCH_SUN50IW9 +choice + prompt "Select the SoC with wafer ARCH_SUN50IW9" + default ARCH_SUN50IW9P1 + help + Select the SoC with wafer ARCH_SUN50IW9 + +config ARCH_SUN50IW9P1 + bool "Allwinner SUN50IW9P1" +# Will not use smc in FPGA stage +# select SUNXI_SMC +endchoice +endif + +if ARCH_SUN50IW10 +choice + prompt "Select the SoC with wafer ARCH_SUN50IW10" + default ARCH_SUN50IW10P1 + help + Select the SoC with wafer ARCH_SUN50IW10 + +config ARCH_SUN50IW10P1 + bool "Allwinner SUN50IW10P1" +# Will not use smc in FPGA stage +# select SUNXI_SMC +endchoice +endif + +if ARCH_SUN50IW11 +choice + prompt "Select the SoC with wafer ARCH_SUN50IW11" + default ARCH_SUN50IW11P1 + help + Select the SoC with wafer ARCH_SUN50IW11 + +config ARCH_SUN50IW11P1 + bool "Allwinner SUN50IW11P1" +# Will not use smc in FPGA stage +# select SUNXI_SMC +endchoice +endif + +# Select the board between FPGA and EVB + +choice + prompt "Allwinner development boards" + depends on ARCH_SUNXI + default FPGA_V4_PLATFORM + +config FPGA_V4_PLATFORM + bool "FPGAv4 board" + help + Support for Allwinner's FPGAv4 board + + config FPGA_V7_PLATFORM + bool "FPGAv7 board" + help + Support for Allwinner's FPGAv7 board + + config EVB_PLATFORM + bool "EVB board" + help + Support for Allwinner's EVB board +endchoice + +config SUNXI_SOC_NAME + string "The name of SUNXI SoC" + default "" + help + Used for /sysfs/.../sysinfo. + +endif # end of ARCH_SUNXI config ARCH_ALPINE bool "Annapurna Labs Alpine platform" select ALPINE_MSI if PCI @@ -230,4 +442,5 @@ config ARCH_ZYNQMP help This enables support for Xilinx ZynqMP Family + endmenu