Skip to content
Snippets Groups Projects
Commit 7865f4b0 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Marek Vasut
Browse files

ARM: socfpga: move board select into mach-socfpga/Kconfig


Switch to a more standard way of board select; put the SoC select
into arch/arm/Kconfig and move the board select menu under
arch/arm/mach-socfpga/Kconfig.

Also, consolidate SYS_BOARD, SYS_VENDOR, SYS_SOC, SYS_CONFIG_NAME.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent a02a669c
No related branches found
No related tags found
No related merge requests found
......@@ -619,16 +619,8 @@ config TARGET_CM_FX6
select DM_SERIAL
select DM_GPIO
config TARGET_SOCFPGA_ARRIA5
bool "Support socfpga_arria5"
select CPU_V7
select SUPPORT_SPL
select DM
select DM_SPI_FLASH
select DM_SPI
config TARGET_SOCFPGA_CYCLONE5
bool "Support socfpga_cyclone5"
config ARCH_SOCFPGA
bool "Altera SOCFPGA family"
select CPU_V7
select SUPPORT_SPL
select DM
......@@ -841,6 +833,8 @@ source "arch/arm/cpu/armv7/rmobile/Kconfig"
source "arch/arm/cpu/armv7/s5pc1xx/Kconfig"
source "arch/arm/mach-socfpga/Kconfig"
source "arch/arm/mach-tegra/Kconfig"
source "arch/arm/mach-uniphier/Kconfig"
......@@ -863,7 +857,6 @@ source "board/Marvell/aspenite/Kconfig"
source "board/Marvell/db-88f6820-gp/Kconfig"
source "board/Marvell/db-mv784mp-gp/Kconfig"
source "board/Marvell/gplugd/Kconfig"
source "board/altera/socfpga/Kconfig"
source "board/armadeus/apf27/Kconfig"
source "board/armltd/vexpress/Kconfig"
source "board/armltd/vexpress64/Kconfig"
......
if TARGET_SOCFPGA_CYCLONE5
if ARCH_SOCFPGA
config SYS_BOARD
default "socfpga"
config SYS_VENDOR
default "altera"
choice
prompt "Altera SOCFPGA board select"
config SYS_SOC
default "socfpga"
config TARGET_SOCFPGA_ARRIA5
bool "Altera SOCFPGA Arria V"
config SYS_CONFIG_NAME
default "socfpga_cyclone5"
endif
config TARGET_SOCFPGA_CYCLONE5
bool "Altera SOCFPGA Cyclone V"
if TARGET_SOCFPGA_ARRIA5
endchoice
config SYS_BOARD
default "socfpga"
......@@ -26,6 +21,7 @@ config SYS_SOC
default "socfpga"
config SYS_CONFIG_NAME
default "socfpga_arria5"
default "socfpga_arria5" if TARGET_SOCFPGA_ARRIA5
default "socfpga_cyclone5" if TARGET_SOCFPGA_CYCLONE5
endif
CONFIG_SPL=y
CONFIG_ARM=y
CONFIG_ARCH_SOCFPGA=y
CONFIG_TARGET_SOCFPGA_ARRIA5=y
CONFIG_OF_CONTROL=y
CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria5_socdk"
CONFIG_SPL=y
CONFIG_ARM=y
CONFIG_ARCH_SOCFPGA=y
CONFIG_TARGET_SOCFPGA_CYCLONE5=y
CONFIG_OF_CONTROL=y
CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socdk"
......
CONFIG_SPL=y
CONFIG_ARM=y
CONFIG_ARCH_SOCFPGA=y
CONFIG_TARGET_SOCFPGA_CYCLONE5=y
CONFIG_OF_CONTROL=y
CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socrates"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment