The virtualized developer switch was invented five years ago and has been used on every vboot system ever since. We shouldn't need to specify it again and again for every new board. This patch flips the Kconfig logic around and replaces CONFIG_VIRTUAL_DEV_SWITCH with CONFIG_PHYSICAL_DEV_SWITCH, so that only a few ancient boards need to set it and it fits better with CONFIG_PHYSICAL_REC_SWITCH. (Also set the latter for Lumpy which seems to have been omitted incorrectly, and hide it from menuconfig since it's a hardware parameter that shouldn't be configurable.) Since almost all our developer switches are virtual, it doesn't make sense for every board to pass a non-existent or non-functional developer mode switch in the coreboot tables, so let's get rid of that. It's also dangerously confusing for many boards to define a get_developer_mode() function that reads an actual pin (often from a debug header) which will not be honored by coreboot because CONFIG_PHYSICAL_DEV_SWITCH isn't set. Therefore, this patch removes all those non-functional instances of that function. In the future, either the board has a physical dev switch and must define it, or it doesn't and must not. In a similar sense (and since I'm touching so many board configs anyway), it's annoying that we have to keep selecting EC_SOFTWARE_SYNC. Instead, it should just be assumed by default whenever a Chrome EC is present in the system. This way, it can also still be overridden by menuconfig. CQ-DEPEND=CL:459701 Change-Id: If9cbaa7df530580a97f00ef238e3d9a8a86a4a7f Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/18980 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
85 lines
2.1 KiB
Plaintext
85 lines
2.1 KiB
Plaintext
|
|
config BOARD_GOOGLE_BASEBOARD_AURON
|
|
def_bool n
|
|
select SOC_INTEL_BROADWELL
|
|
select BOARD_ROMSIZE_KB_8192
|
|
select EC_GOOGLE_CHROMEEC
|
|
select HAVE_ACPI_TABLES
|
|
select HAVE_OPTION_TABLE
|
|
select HAVE_ACPI_RESUME
|
|
select HAVE_SMI_HANDLER
|
|
select MAINBOARD_HAS_CHROMEOS
|
|
select MAINBOARD_HAS_LPC_TPM
|
|
select INTEL_INT15
|
|
|
|
if BOARD_GOOGLE_BASEBOARD_AURON
|
|
|
|
config CHROMEOS
|
|
select CHROMEOS_RAMOOPS_DYNAMIC
|
|
select EC_GOOGLE_CHROMEEC_SWITCHES
|
|
select LID_SWITCH
|
|
select VBOOT_VBNV_CMOS
|
|
|
|
config MAINBOARD_DIR
|
|
string
|
|
default google/auron
|
|
|
|
config VARIANT_DIR
|
|
string
|
|
default "auron_paine" if BOARD_GOOGLE_AURON_PAINE
|
|
default "auron_yuna" if BOARD_GOOGLE_AURON_YUNA
|
|
default "gandof" if BOARD_GOOGLE_GANDOF
|
|
default "lulu" if BOARD_GOOGLE_LULU
|
|
default "samus" if BOARD_GOOGLE_SAMUS
|
|
|
|
config MAINBOARD_PART_NUMBER
|
|
string
|
|
default "Auron_Paine" if BOARD_GOOGLE_AURON_PAINE
|
|
default "Auron_Yuna" if BOARD_GOOGLE_AURON_YUNA
|
|
default "Gandof" if BOARD_GOOGLE_GANDOF
|
|
default "Lulu" if BOARD_GOOGLE_LULU
|
|
default "Samus" if BOARD_GOOGLE_SAMUS
|
|
|
|
config GBB_HWID
|
|
string
|
|
depends on CHROMEOS
|
|
default "PAINE TEST A-A 8843" if BOARD_GOOGLE_AURON_PAINE
|
|
default "YUNA TEST A-A 3347" if BOARD_GOOGLE_AURON_YUNA
|
|
default "GANDOF TEST A-A 7705" if BOARD_GOOGLE_GANDOF
|
|
default "LULU TEST A-A 7705" if BOARD_GOOGLE_LULU
|
|
default "SAMUS TEST 8028" if BOARD_GOOGLE_SAMUS
|
|
|
|
config DEVICETREE
|
|
string
|
|
default "variants/auron_paine/devicetree.cb" if BOARD_GOOGLE_AURON_PAINE
|
|
default "variants/auron_yuna/devicetree.cb" if BOARD_GOOGLE_AURON_YUNA
|
|
default "variants/gandof/devicetree.cb" if BOARD_GOOGLE_GANDOF
|
|
default "variants/lulu/devicetree.cb" if BOARD_GOOGLE_LULU
|
|
default "variants/samus/devicetree.cb" if BOARD_GOOGLE_SAMUS
|
|
|
|
config EC_GOOGLE_CHROMEEC_BOARDNAME
|
|
string
|
|
default "auron" if BOARD_GOOGLE_AURON_PAINE
|
|
default "auron" if BOARD_GOOGLE_AURON_YUNA
|
|
default "" if BOARD_GOOGLE_GANDOF
|
|
default "" if BOARD_GOOGLE_LULU
|
|
default "samus" if BOARD_GOOGLE_SAMUS
|
|
|
|
config MAX_CPUS
|
|
int
|
|
default 8
|
|
|
|
config VGA_BIOS_FILE
|
|
string
|
|
default "pci8086,0406.rom"
|
|
|
|
config HAVE_IFD_BIN
|
|
bool
|
|
default n
|
|
|
|
config HAVE_ME_BIN
|
|
bool
|
|
default n
|
|
|
|
endif
|