mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-02 09:30:43 +09:00
96a739b460
Rework the board SYS_BOARD, SYS_VENDOR and SYS_CONFIG_NAME setup by moving the board Kconfig into the mach-meson Kconfig to make it easier to add new boards for a SoC architecture and add a custom config header or custom board handler for a platform. This drops the board CONFIGs and the duplicate boards configs headers in favor of a single meson64.h config header. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
69 lines
1.3 KiB
Plaintext
69 lines
1.3 KiB
Plaintext
if ARCH_MESON
|
|
|
|
config MESON64_COMMON
|
|
bool
|
|
select ARM64
|
|
select CLK
|
|
select DM
|
|
select DM_SERIAL
|
|
imply CMD_DM
|
|
|
|
choice
|
|
prompt "Platform select"
|
|
default MESON_GXBB
|
|
|
|
config MESON_GXBB
|
|
bool "GXBB"
|
|
select MESON64_COMMON
|
|
help
|
|
Select this if your SoC is an S905
|
|
|
|
config MESON_GXL
|
|
bool "GXL"
|
|
select MESON64_COMMON
|
|
help
|
|
Select this if your SoC is an S905X/D or S805X
|
|
|
|
config MESON_GXM
|
|
bool "GXM"
|
|
select MESON64_COMMON
|
|
help
|
|
Select this if your SoC is an S912
|
|
|
|
endchoice
|
|
|
|
config SYS_SOC
|
|
default "meson"
|
|
|
|
config SYS_MALLOC_F_LEN
|
|
default 0x1000
|
|
|
|
config SYS_VENDOR
|
|
string "Vendor name"
|
|
default "amlogic"
|
|
help
|
|
This option contains information about board name.
|
|
Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> will
|
|
be used.
|
|
|
|
config SYS_BOARD
|
|
string "Board name"
|
|
default "odroid-c2" if MESON_GXBB
|
|
default "p212" if MESON_GXL
|
|
default "q200" if MESON_GXM
|
|
default ""
|
|
help
|
|
This option contains information about board name.
|
|
Based on this option board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> will
|
|
be used.
|
|
|
|
config SYS_CONFIG_NAME
|
|
string "Board configuration name"
|
|
default "meson64"
|
|
help
|
|
This option contains information about board configuration name.
|
|
Based on this option include/configs/<CONFIG_SYS_CONFIG_NAME>.h header
|
|
will be used for board configuration.
|
|
|
|
endif
|