u-boot/board/cadence/xtfpga/Kconfig
Rasmus Villemoes 52ec7b7c89 treewide: drop redundant "type string" for SYS_SOC and friends
The Kconfig symbols SYS_ARCH, SYS_CPU, SYS_SOC, SYS_VENDOR and
SYS_BOARD are defined in arch/Kconfig as having type string, and most
board files simply amend those definition with suitable

  default "foo"

or

  default "foo" if BAR

stanzas. But some also include a redundant repetition of the type.

Homogenize the code base by removing those lines.

Generated by

  find arch/*/ board -name Kconfig | xargs perl -i -g -pe 's/(config SYS_(ARCH|CPU|SOC|VENDOR|BOARD)\n)\s*string\n/\1/gs'

with the trailing slash in arch/*/ ensuring that arch/Kconfig itself
is not found.

This does not change boards which add a prompt string, e.g.

  string "Board name"

because I think those change the semantics of the symbol into being
user-settable.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Tom Rini <trini@konsulko.com>
2024-09-10 13:14:59 -06:00

36 lines
644 B
Text

if TARGET_XTFPGA
choice
prompt "XTFPGA board type select"
config XTFPGA_LX60
bool "Support Avnet LX60"
config XTFPGA_LX110
bool "Support Avnet LX110"
config XTFPGA_LX200
bool "Support Avnet LX200"
config XTFPGA_ML605
bool "Support Xilinx ML605"
config XTFPGA_KC705
bool "Support Xilinx KC705"
endchoice
config SYS_BOARD
default "xtfpga"
config SYS_VENDOR
default "cadence"
config SYS_CONFIG_NAME
default "xtfpga"
config BOARD_SDRAM_SIZE
hex
default 0x04000000 if XTFPGA_LX60
default 0x03000000 if XTFPGA_LX110
default 0x06000000 if XTFPGA_LX200
default 0x18000000 if XTFPGA_ML605
default 0x38000000 if XTFPGA_KC705
endif