ee3d09b48e
Specify the type of the `VARIANT_DIR` Kconfig symbol once instead of doing so on each and every mainboard. Change-Id: Iea2f992a59e41e00fec3cdc9d6a13b5f3ab0a437 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56558 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
101 lines
2.4 KiB
Text
101 lines
2.4 KiB
Text
|
|
config BOARD_GOOGLE_BASEBOARD_REEF
|
|
def_bool n
|
|
select SOC_INTEL_APOLLOLAKE
|
|
select BOARD_ROMSIZE_KB_16384
|
|
select DRIVERS_GENERIC_MAX98357A
|
|
select DRIVERS_I2C_DA7219
|
|
select DRIVERS_I2C_GENERIC
|
|
select DRIVERS_I2C_HID
|
|
select EC_GOOGLE_CHROMEEC
|
|
select EC_GOOGLE_CHROMEEC_BOARDID
|
|
select EC_GOOGLE_CHROMEEC_LPC
|
|
select HAVE_ACPI_RESUME
|
|
select HAVE_ACPI_TABLES
|
|
select INTEL_GMA_HAVE_VBT
|
|
select INTEL_LPSS_UART_FOR_CONSOLE
|
|
select MAINBOARD_HAS_CHROMEOS
|
|
select MAINBOARD_HAS_I2C_TPM_CR50
|
|
select MAINBOARD_HAS_TPM2
|
|
select GOOGLE_SMBIOS_MAINBOARD_VERSION
|
|
select USE_SAR
|
|
select SAR_ENABLE
|
|
select DSAR_ENABLE
|
|
|
|
if BOARD_GOOGLE_BASEBOARD_REEF
|
|
|
|
config BASEBOARD_REEF_LAPTOP
|
|
def_bool n
|
|
select SYSTEM_TYPE_LAPTOP
|
|
|
|
config DRIVER_TPM_I2C_BUS
|
|
hex
|
|
default 0x2
|
|
|
|
config DRIVER_TPM_I2C_ADDR
|
|
hex
|
|
default 0x50
|
|
|
|
config TPM_TIS_ACPI_INTERRUPT
|
|
int
|
|
default 60 # GPE0_DW1_28
|
|
|
|
config VBOOT
|
|
select EC_GOOGLE_CHROMEEC_SWITCHES
|
|
select HAS_RECOVERY_MRC_CACHE
|
|
select VBOOT_LID_SWITCH if BASEBOARD_REEF_LAPTOP
|
|
|
|
config MAINBOARD_DIR
|
|
default "google/reef"
|
|
|
|
config VARIANT_DIR
|
|
default "reef" if BOARD_GOOGLE_REEF
|
|
default "pyro" if BOARD_GOOGLE_PYRO
|
|
default "sand" if BOARD_GOOGLE_SAND
|
|
default "snappy" if BOARD_GOOGLE_SNAPPY
|
|
default "nasher" if BOARD_GOOGLE_NASHER
|
|
default "coral" if BOARD_GOOGLE_CORAL
|
|
|
|
config DEVICETREE
|
|
default "variants/coral/devicetree.cb" if BOARD_GOOGLE_CORAL
|
|
default "variants/pyro/devicetree.cb" if BOARD_GOOGLE_PYRO
|
|
default "variants/sand/devicetree.cb" if BOARD_GOOGLE_SAND
|
|
default "variants/snappy/devicetree.cb" if BOARD_GOOGLE_SNAPPY
|
|
default "variants/baseboard/devicetree.cb"
|
|
|
|
config MAINBOARD_PART_NUMBER
|
|
default "Reef" if BOARD_GOOGLE_REEF
|
|
default "Pyro" if BOARD_GOOGLE_PYRO
|
|
default "Sand" if BOARD_GOOGLE_SAND
|
|
default "Snappy" if BOARD_GOOGLE_SNAPPY
|
|
default "Nasher" if BOARD_GOOGLE_NASHER
|
|
default "Coral" if BOARD_GOOGLE_CORAL
|
|
|
|
config MAINBOARD_FAMILY
|
|
string
|
|
default "Google_Coral" if BOARD_GOOGLE_CORAL
|
|
default "Google_Reef"
|
|
|
|
config UART_FOR_CONSOLE
|
|
int
|
|
default 2
|
|
|
|
config INCLUDE_NHLT_BLOBS
|
|
bool "Include blobs for audio."
|
|
select NHLT_DMIC_4CH_16B
|
|
select NHLT_DA7219
|
|
select NHLT_MAX98357
|
|
|
|
config PRERAM_CBMEM_CONSOLE_SIZE
|
|
hex
|
|
default 0xe00 if CHROMEOS
|
|
default 0xc00
|
|
|
|
config FMDFILE
|
|
default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/default.fmd" if !CHROMEOS
|
|
|
|
# Override the default behavior, since the data.vbt is the same for all variants
|
|
config INTEL_GMA_VBT_FILE
|
|
default "src/mainboard/\$(MAINBOARDDIR)/data.vbt"
|
|
|
|
endif # BOARD_GOOGLE_REEF
|