soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / mainboard / google / guybrush / Kconfig
blob92a5e00d90468f185f0f6dd54daac790aacb51be
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 config BOARD_GOOGLE_BASEBOARD_GUYBRUSH
4         def_bool n
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
25         select ELOG
26         select ELOG_GSMI
27         select FW_CONFIG
28         select FW_CONFIG_SOURCE_CHROMEEC_CBI
29         select GOOGLE_SMBIOS_MAINBOARD_VERSION
30         select HAVE_EM100_SUPPORT
31         select HAVE_SPD_IN_CBFS
32         select I2C_TPM
33         select MAINBOARD_HAS_CHROMEOS
34         select MAINBOARD_HAS_TPM2
35         select PCIEXP_ASPM
36         select PCIEXP_CLK_PM
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
60 config VBOOT
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"
67         default y if VBOOT
69 config VBOOT_STARTS_IN_BOOTBLOCK
70         bool
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
77         hex
78         default 0x2A
80 config FMDFILE
81         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd"
83 config MAINBOARD_DIR
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
92         hex
93         default 0x03
95 config DRIVER_TPM_I2C_ADDR
96         hex
97         default 0x50
99 config GSC_IRQ_GPIO
100         int
101         default 3 if BOARD_GOOGLE_GUYBRUSH
102         default 85
104 config AMDFW_CONFIG_FILE
105         string
106         default "src/mainboard/google/guybrush/variants/baseboard/amdfw.cfg"
108 config PERFORM_SPL_FUSING
109         bool
110         default y
112 config SPL_TABLE_FILE
113         string
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)
120 config EFS_SPI_SPEED
121         default 0       # 66MHz
123 config EFS_SPI_MICRON_FLAG
124         default 0
126 config NORMAL_READ_SPI_SPEED
127         default 1       # 33MHz
129 config ALT_SPI_SPEED
130         default 0       # 66MHz
132 endif # !EM100
134 config OVERRIDE_EFS_SPI_SPEED
135         int
136         default 3 if EM100
137         default 4       # 100MHz
138         help
139           Override EFS SPI Speed Configuration to be applied based on certain
140           board version.
142 config OVERRIDE_EFS_SPI_SPEED_MIN_BOARD
143         hex
144         default 0x3 if BOARD_GOOGLE_DEWATT
145         default 0x4 if BOARD_GOOGLE_GUYBRUSH
146         default 0x2 if BOARD_GOOGLE_NIPPERKIN
147         default 0xffffffff
148         help
149           Minimum board version starting which the Override EFS SPI Speed
150           configuration has to be applied.
152 config VARIANT_DIR
153         default "dewatt" if BOARD_GOOGLE_DEWATT
154         default "guybrush" if BOARD_GOOGLE_GUYBRUSH
155         default "nipperkin" if BOARD_GOOGLE_NIPPERKIN
157 config DEVICETREE
158         default "variants/baseboard/devicetree.cb"
160 config OVERRIDE_DEVICETREE
161         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
163 config MAINBOARD_FAMILY
164         string
165         default "Google_Guybrush"
167 endif # BOARD_GOOGLE_BASEBOARD_GUYBRUSH