1 # SPDX-License-Identifier: GPL-2.0-or-later
3 config BOARD_GOOGLE_BASEBOARD_GUYBRUSH
5 select AMD_FWM_POSITION_C20000_DEFAULT
6 select AMD_SOC_CONSOLE_UART
7 select BOARD_ROMSIZE_KB_16384
8 select CONSOLE_CBMEM_DUMP_TO_UART if !CONSOLE_SERIAL
9 select DEBUG_SMI if !CONSOLE_SERIAL # TODO(b/217968734): Always enable
10 select DISABLE_KEYBOARD_RESET_PIN
11 select DISABLE_SPI_FLASH_ROM_SHARING
12 select DRIVERS_ACPI_THERMAL_ZONE
13 select DRIVERS_AMD_I2S_MACHINE_DEV
14 select DRIVERS_GENERIC_GPIO_KEYS
15 select DRIVERS_GENERIC_MAX98357A
16 select DRIVERS_I2C_GENERIC
17 select DRIVERS_I2C_HID
18 select DRIVERS_PCIE_RTD3_DEVICE
19 select DRIVERS_UART_ACPI
20 select DRIVERS_PCIE_GENERIC
21 select EC_GOOGLE_CHROMEEC
22 select EC_GOOGLE_CHROMEEC_BOARDID
23 select EC_GOOGLE_CHROMEEC_ESPI
24 select EC_GOOGLE_CHROMEEC_SKUID
28 select FW_CONFIG_SOURCE_CHROMEEC_CBI
29 select GOOGLE_SMBIOS_MAINBOARD_VERSION
30 select HAVE_EM100_SUPPORT
31 select HAVE_SPD_IN_CBFS
33 select MAINBOARD_HAS_CHROMEOS
34 select MAINBOARD_HAS_TPM2
37 select PCIEXP_COMMON_CLOCK
38 select PCIEXP_L1_SUB_STATE
39 select PSP_DISABLE_POSTCODES if !VBOOT_STARTS_BEFORE_BOOTBLOCK
40 select PSP_S0I3_RESUME_VERSTAGE if VBOOT_STARTS_BEFORE_BOOTBLOCK
41 select SOC_AMD_CEZANNE
42 select SOC_AMD_COMMON_BLOCK_GRAPHICS_ATIF
43 select SOC_AMD_COMMON_BLOCK_I2C3_TPM_SHARED_WITH_PSP
44 select SOC_AMD_COMMON_BLOCK_USE_ESPI
45 select SYSTEM_TYPE_LAPTOP
46 select TPM_GOOGLE_CR50
48 config BOARD_GOOGLE_DEWATT
49 select BOARD_GOOGLE_BASEBOARD_GUYBRUSH
51 config BOARD_GOOGLE_GUYBRUSH
52 select BOARD_GOOGLE_BASEBOARD_GUYBRUSH
54 config BOARD_GOOGLE_NIPPERKIN
55 select BOARD_GOOGLE_BASEBOARD_GUYBRUSH
56 select DRIVERS_GFX_GENERIC
58 if BOARD_GOOGLE_BASEBOARD_GUYBRUSH
61 select EC_GOOGLE_CHROMEEC_SWITCHES
62 select VBOOT_LID_SWITCH
63 select VBOOT_SEPARATE_VERSTAGE
65 config VBOOT_STARTS_BEFORE_BOOTBLOCK
66 bool "Enable PSP_verstage"
69 config VBOOT_STARTS_IN_BOOTBLOCK
71 default y if VBOOT && !VBOOT_STARTS_BEFORE_BOOTBLOCK
73 config VBOOT_STARTS_IN_BOOTBLOCK
74 select NO_EARLY_BOOTBLOCK_POSTCODES
76 config VBOOT_VBNV_OFFSET
81 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd"
84 default "google/guybrush"
86 config MAINBOARD_PART_NUMBER
87 default "Dewatt" if BOARD_GOOGLE_DEWATT
88 default "Guybrush" if BOARD_GOOGLE_GUYBRUSH
89 default "Nipperkin" if BOARD_GOOGLE_NIPPERKIN
91 config DRIVER_TPM_I2C_BUS
95 config DRIVER_TPM_I2C_ADDR
101 default 3 if BOARD_GOOGLE_GUYBRUSH
104 config AMDFW_CONFIG_FILE
106 default "src/mainboard/google/guybrush/variants/baseboard/amdfw.cfg"
108 config PERFORM_SPL_FUSING
112 config SPL_TABLE_FILE
114 default "3rdparty/blobs/mainboard/google/guybrush/TypeId0x55_SplTable_Prod_CZN_Chrome.sbin"
116 if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
117 config EFS_SPI_READ_MODE
118 default 4 # Dual IO (1-2-2)
123 config EFS_SPI_MICRON_FLAG
126 config NORMAL_READ_SPI_SPEED
134 config OVERRIDE_EFS_SPI_SPEED
139 Override EFS SPI Speed Configuration to be applied based on certain
142 config OVERRIDE_EFS_SPI_SPEED_MIN_BOARD
144 default 0x3 if BOARD_GOOGLE_DEWATT
145 default 0x4 if BOARD_GOOGLE_GUYBRUSH
146 default 0x2 if BOARD_GOOGLE_NIPPERKIN
149 Minimum board version starting which the Override EFS SPI Speed
150 configuration has to be applied.
153 default "dewatt" if BOARD_GOOGLE_DEWATT
154 default "guybrush" if BOARD_GOOGLE_GUYBRUSH
155 default "nipperkin" if BOARD_GOOGLE_NIPPERKIN
158 default "variants/baseboard/devicetree.cb"
160 config OVERRIDE_DEVICETREE
161 default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
163 config MAINBOARD_FAMILY
165 default "Google_Guybrush"
167 endif # BOARD_GOOGLE_BASEBOARD_GUYBRUSH