026e4dc3ff
The CBFS size is really mainboard specific, since it really depends on size of the chip on the mainboard, so it makes sense to have it in the mainboard menu along with the ROM-chip size. - Move the CBFS_SIZE definition up in src/kconfig - Move the Mainboard Menu markers out of src/mainboard/kconfig into src/Kconfig so CBFS_SIZE can live in the mainboard menu. - Add a long list setting default values to do what the chipset directories were previously defaulting the values to. This will be trimmed down in a following patch that creates a common set of IFD routines. (Who knew that kconfig supported line wrapping?) - Update the help text. Change-Id: I2b9eb5a6f7d543f57d9f3b9d0aa44a5462e8b718 Signed-off-by: Martin Roth <gaumless@gmail.com> Reviewed-on: http://review.coreboot.org/10610 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
147 lines
4.2 KiB
Text
147 lines
4.2 KiB
Text
choice
|
|
prompt "Mainboard vendor"
|
|
default VENDOR_EMULATION
|
|
|
|
source "src/mainboard/*/Kconfig.name"
|
|
|
|
endchoice
|
|
|
|
source "src/mainboard/*/Kconfig"
|
|
|
|
config BOARD_ROMSIZE_KB_64
|
|
bool
|
|
config BOARD_ROMSIZE_KB_128
|
|
bool
|
|
config BOARD_ROMSIZE_KB_256
|
|
bool
|
|
config BOARD_ROMSIZE_KB_512
|
|
bool
|
|
config BOARD_ROMSIZE_KB_1024
|
|
bool
|
|
config BOARD_ROMSIZE_KB_2048
|
|
bool
|
|
config BOARD_ROMSIZE_KB_4096
|
|
bool
|
|
config BOARD_ROMSIZE_KB_8192
|
|
bool
|
|
config BOARD_ROMSIZE_KB_12288
|
|
bool
|
|
config BOARD_ROMSIZE_KB_16384
|
|
bool
|
|
|
|
# TODO: No help text possible for choice fields?
|
|
choice
|
|
prompt "ROM chip size"
|
|
default COREBOOT_ROMSIZE_KB_64 if BOARD_ROMSIZE_KB_64
|
|
default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
|
|
default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
|
|
default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
|
|
default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
|
|
default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
|
|
default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
|
|
default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
|
|
default COREBOOT_ROMSIZE_KB_12288 if BOARD_ROMSIZE_KB_12288
|
|
default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
|
|
help
|
|
Select the size of the ROM chip you intend to flash coreboot on.
|
|
|
|
The build system will take care of creating a coreboot.rom file
|
|
of the matching size.
|
|
|
|
config COREBOOT_ROMSIZE_KB_64
|
|
bool "64 KB"
|
|
help
|
|
Choose this option if you have a 64 KB ROM chip.
|
|
|
|
config COREBOOT_ROMSIZE_KB_128
|
|
bool "128 KB"
|
|
help
|
|
Choose this option if you have a 128 KB ROM chip.
|
|
|
|
config COREBOOT_ROMSIZE_KB_256
|
|
bool "256 KB"
|
|
help
|
|
Choose this option if you have a 256 KB ROM chip.
|
|
|
|
config COREBOOT_ROMSIZE_KB_512
|
|
bool "512 KB"
|
|
help
|
|
Choose this option if you have a 512 KB ROM chip.
|
|
|
|
config COREBOOT_ROMSIZE_KB_1024
|
|
bool "1024 KB (1 MB)"
|
|
help
|
|
Choose this option if you have a 1024 KB (1 MB) ROM chip.
|
|
|
|
config COREBOOT_ROMSIZE_KB_2048
|
|
bool "2048 KB (2 MB)"
|
|
help
|
|
Choose this option if you have a 2048 KB (2 MB) ROM chip.
|
|
|
|
config COREBOOT_ROMSIZE_KB_4096
|
|
bool "4096 KB (4 MB)"
|
|
help
|
|
Choose this option if you have a 4096 KB (4 MB) ROM chip.
|
|
|
|
config COREBOOT_ROMSIZE_KB_8192
|
|
bool "8192 KB (8 MB)"
|
|
help
|
|
Choose this option if you have a 8192 KB (8 MB) ROM chip.
|
|
|
|
config COREBOOT_ROMSIZE_KB_12288
|
|
bool "12288 KB (12 MB)"
|
|
help
|
|
Choose this option if you have a 12288 KB (12 MB) ROM chip.
|
|
|
|
config COREBOOT_ROMSIZE_KB_16384
|
|
bool "16384 KB (16 MB)"
|
|
help
|
|
Choose this option if you have a 16384 KB (16 MB) ROM chip.
|
|
|
|
endchoice
|
|
|
|
# Map the config names to an integer (KB).
|
|
config COREBOOT_ROMSIZE_KB
|
|
int
|
|
default 64 if COREBOOT_ROMSIZE_KB_64
|
|
default 128 if COREBOOT_ROMSIZE_KB_128
|
|
default 256 if COREBOOT_ROMSIZE_KB_256
|
|
default 512 if COREBOOT_ROMSIZE_KB_512
|
|
default 1024 if COREBOOT_ROMSIZE_KB_1024
|
|
default 2048 if COREBOOT_ROMSIZE_KB_2048
|
|
default 4096 if COREBOOT_ROMSIZE_KB_4096
|
|
default 8192 if COREBOOT_ROMSIZE_KB_8192
|
|
default 12288 if COREBOOT_ROMSIZE_KB_12288
|
|
default 16384 if COREBOOT_ROMSIZE_KB_16384
|
|
|
|
# Map the config names to a hex value (bytes).
|
|
config ROM_SIZE
|
|
hex
|
|
default 0x10000 if COREBOOT_ROMSIZE_KB_64
|
|
default 0x20000 if COREBOOT_ROMSIZE_KB_128
|
|
default 0x40000 if COREBOOT_ROMSIZE_KB_256
|
|
default 0x80000 if COREBOOT_ROMSIZE_KB_512
|
|
default 0x100000 if COREBOOT_ROMSIZE_KB_1024
|
|
default 0x200000 if COREBOOT_ROMSIZE_KB_2048
|
|
default 0x400000 if COREBOOT_ROMSIZE_KB_4096
|
|
default 0x800000 if COREBOOT_ROMSIZE_KB_8192
|
|
default 0xc00000 if COREBOOT_ROMSIZE_KB_12288
|
|
default 0x1000000 if COREBOOT_ROMSIZE_KB_16384
|
|
|
|
config ENABLE_POWER_BUTTON
|
|
bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL
|
|
default y if POWER_BUTTON_DEFAULT_ENABLE
|
|
default n if POWER_BUTTON_DEFAULT_DISABLE
|
|
help
|
|
The selected mainboard can optionally have the power button tied
|
|
to ground with a jumper so that the button appears to be
|
|
constantly depressed. If this option is enabled and the jumper is
|
|
installed then the board will turn on, but turn off again after a
|
|
short timeout, usually 4 seconds.
|
|
|
|
Select Y here if you have removed the jumper and want to use an
|
|
actual power button. Select N if you have the jumper installed.
|
|
|
|
config ENABLE_POWER_BUTTON
|
|
def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
|
|
def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE
|