summaryrefslogtreecommitdiff
path: root/src/mainboard/google/zork/Kconfig
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2020-05-20 14:07:41 -0600
committerMartin Roth <martinroth@google.com>2020-05-27 23:18:12 +0000
commitb3c41329fdca84a251c183bbc2b0767978e9d96f (patch)
tree47003eae89ad4f6dd86edb52b1fe203d7e7b14b5 /src/mainboard/google/zork/Kconfig
parentfc9b8b916f7bc0c6ac1579b915937ed23ea3327a (diff)
mb/google/zork: Add Picasso based Zork mainboard and variants
This is a copy of the mb/google/zork directory from the chromiumos coreboot-zork branch. This was from commit 29308ac8606. See https://chromium.googlesource.com/chromiumos/third_party/coreboot/+/29308ac8606/src/mainboard/google/zork Changes: * Minor changes to make the board build. * Add bootblock.c. * Modify romstage.c * Removed the FSP_X configs from zork/Kconfig since they should be set in picasso/Kconfig. picasso/Kconfig doesn't currently define the binaries since they haven't been published. To get a working build a custom config that sets FSP_X_FILE is required. BUG=b:157140753 TEST=Build trembyle and boot to OS Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I3933fa54e3f603985a0818852a1c77d8e248484f Reviewed-on: https://review.coreboot.org/c/coreboot/+/41581 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/zork/Kconfig')
-rw-r--r--src/mainboard/google/zork/Kconfig135
1 files changed, 135 insertions, 0 deletions
diff --git a/src/mainboard/google/zork/Kconfig b/src/mainboard/google/zork/Kconfig
new file mode 100644
index 0000000000..343b30ba09
--- /dev/null
+++ b/src/mainboard/google/zork/Kconfig
@@ -0,0 +1,135 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+config BOARD_GOOGLE_BASEBOARD_TREMBYLE
+ def_bool n
+
+config BOARD_GOOGLE_BASEBOARD_DALBOZ
+ def_bool n
+
+if BOARD_GOOGLE_BASEBOARD_TREMBYLE || BOARD_GOOGLE_BASEBOARD_DALBOZ
+
+config BOARD_SPECIFIC_OPTIONS
+ def_bool y
+ select SOC_AMD_COMMON_BLOCK_USE_ESPI
+ select SOC_AMD_PICASSO
+ select VGA_BIOS
+ select BOARD_ROMSIZE_KB_16384
+ select DISABLE_SPI_FLASH_ROM_SHARING
+ select DRIVERS_I2C_GENERIC
+ select DRIVERS_I2C_HID
+ select EC_GOOGLE_CHROMEEC
+ select EC_GOOGLE_CHROMEEC_BOARDID
+ select EC_GOOGLE_CHROMEEC_ESPI
+ select EC_GOOGLE_CHROMEEC_I2C_TUNNEL
+ select EC_GOOGLE_CHROMEEC_SKUID
+ select HAVE_ACPI_TABLES
+ select GFXUMA
+ select GOOGLE_SMBIOS_MAINBOARD_VERSION
+ select MAINBOARD_HAS_CHROMEOS
+ select PICASSO_UART
+ select MAINBOARD_HAS_I2C_TPM_CR50
+ select MAINBOARD_HAS_TPM2
+ select PCIEXP_ASPM
+ select PCIEXP_CLK_PM
+ select PCIEXP_COMMON_CLOCK
+ select PCIEXP_L1_SUB_STATE
+ select HAVE_EM100_SUPPORT
+ select SYSTEM_TYPE_LAPTOP
+ select DRIVERS_GENERIC_MAX98357A
+ select HAVE_ACPI_RESUME
+ select DRIVERS_USB_ACPI
+
+config MAINBOARD_DIR
+ string
+ default google/zork
+
+config VARIANT_DIR
+ string
+ default "ezkinil" if BOARD_GOOGLE_EZKINIL
+ default "morphius" if BOARD_GOOGLE_MORPHIUS
+ default "trembyle" if BOARD_GOOGLE_TREMBYLE
+ default "dalboz" if BOARD_GOOGLE_DALBOZ
+ default "berknip" if BOARD_GOOGLE_BERKNIP
+
+config MAINBOARD_PART_NUMBER
+ string
+ default "Ezkinil" if BOARD_GOOGLE_EZKINIL
+ default "Morphius" if BOARD_GOOGLE_MORPHIUS
+ default "Trembyle" if BOARD_GOOGLE_TREMBYLE
+ default "Dalboz" if BOARD_GOOGLE_DALBOZ
+ default "Berknip" if BOARD_GOOGLE_BERKNIP
+
+config DEVICETREE
+ string
+ default "variants/baseboard/devicetree.cb"
+
+config OVERRIDE_DEVICETREE
+ string
+ default "variants/$(CONFIG_VARIANT_DIR)/overridetree.cb"
+
+config MAINBOARD_FAMILY
+ string
+ default "Google_Zork"
+
+config MAX_CPUS
+ int
+ default 8
+
+config IRQ_SLOT_COUNT
+ int
+ default 11
+
+config ONBOARD_VGA_IS_PRIMARY
+ bool
+ default y
+
+config VBOOT
+ select EC_GOOGLE_CHROMEEC_SWITCHES
+ select VBOOT_LID_SWITCH
+ select VBOOT_STARTS_IN_BOOTBLOCK
+ select VBOOT_SEPARATE_VERSTAGE
+
+config VBOOT_VBNV_OFFSET
+ hex
+ default 0x2A
+
+config CHROMEOS
+ # Use default libpayload config
+ select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE
+
+config AMD_FWM_POSITION_INDEX
+ int
+ default 2
+
+config DRIVER_TPM_I2C_BUS
+ hex
+ default 0x03
+
+config DRIVER_TPM_I2C_ADDR
+ hex
+ default 0x50
+
+config USE_OEM_BIN
+ bool "Add an oem.bin file"
+ help
+ Add an oem.bin file to identify the manufacturer in SMBIOS, overriding the
+ CONFIG_MAINBOARD_SMBIOS_MANUFACTURER value.
+
+config OEM_BIN_FILE
+ string "OEM ID table"
+ depends on USE_OEM_BIN
+ default ""
+
+config VARIANT_HAS_FW_CONFIG
+ bool
+ help
+ Honor FW_CONFIG in CBI.
+
+config VARIANT_BOARD_VER_FW_CONFIG_VALID
+ int
+ default 256
+ depends on VARIANT_HAS_FW_CONFIG
+ help
+ Which board version did FW_CONFIG become valid in CBI.
+
+endif # BOARD_GOOGLE_BASEBOARD_TREMBYLE || BOARD_GOOGLE_BASEBOARD_DALBOZ