payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / google / skyrim / Kconfig
blobcb1932f53d31f2fb2bf0dd4236942fccf55621f6
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 config BOARD_GOOGLE_BASEBOARD_SKYRIM
4         def_bool n
6 if BOARD_GOOGLE_BASEBOARD_SKYRIM
8 config AMD_FWM_POSITION_INDEX
9         int
10         default 3
11         help
12           TODO: might need to be adapted for better placement of files in cbfs
14 config BOARD_SPECIFIC_OPTIONS
15         def_bool y
16         select AMD_SOC_CONSOLE_UART
17         select BOARD_ROMSIZE_KB_16384
18         select DRIVERS_GENERIC_GPIO_KEYS
19         select DRIVERS_GENERIC_MAX98357A
20         select DRIVERS_ACPI_THERMAL_ZONE
21         select DRIVERS_I2C_GENERIC
22         select DRIVERS_I2C_HID
23         select DRIVERS_I2C_NAU8825
24         select DRIVERS_USB_HUB
25         select DRIVERS_UART_ACPI
26         select DRIVERS_PCIE_GENERIC
27         select EC_GOOGLE_CHROMEEC
28         select EC_GOOGLE_CHROMEEC_ESPI
29         select EC_GOOGLE_CHROMEEC_SKUID
30         select EC_GOOGLE_CHROMEEC_BOARDID
31         select ELOG
32         select ELOG_GSMI
33         select FW_CONFIG
34         select FW_CONFIG_SOURCE_CHROMEEC_CBI
35         select I2C_TPM
36         select MAINBOARD_HAS_CHROMEOS
37         select MAINBOARD_HAS_TPM2
38         select SOC_AMD_MENDOCINO
39         select SOC_AMD_COMMON_BLOCK_ACPI_DPTC if !BOARD_GOOGLE_WINTERHOLD && !BOARD_GOOGLE_MORTHAL
40         select SOC_AMD_COMMON_BLOCK_USE_ESPI
41         select TPM_GOOGLE_TI50
42         select PCIEXP_ASPM
43         select PCIEXP_CLK_PM
44         select PCIEXP_COMMON_CLOCK
45         select PCIEXP_L1_SUB_STATE
47 config DEVICETREE
48         default "variants/baseboard/devicetree.cb"
50 config DRIVER_TPM_I2C_BUS
51         hex
52         default 0x03
54 config DRIVER_TPM_I2C_ADDR
55         hex
56         default 0x50
58 config HAVE_SPL_FILE
59         bool
60         default y
62 config SPL_TABLE_FILE
63         string
64         depends on HAVE_SPL_FILE
65         default "3rdparty/blobs/mainboard/google/skyrim/TypeId0x55_SplTableBl_MDN_CHROME.sbin"
67 config FMDFILE
68         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd"
70 config MAINBOARD_DIR
71         default "google/skyrim"
73 config MAINBOARD_FAMILY
74         string
75         default "Google_Skyrim"
77 config MAINBOARD_PART_NUMBER
78         default "Skyrim" if BOARD_GOOGLE_SKYRIM
79         default "Winterhold" if BOARD_GOOGLE_WINTERHOLD
80         default "Morthal" if BOARD_GOOGLE_MORTHAL
81         default "Frostflow" if BOARD_GOOGLE_FROSTFLOW
83 config OVERRIDE_DEVICETREE
84         string
85         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
87 config VARIANT_DIR
88         string
89         default "skyrim" if BOARD_GOOGLE_SKYRIM
90         default "winterhold" if BOARD_GOOGLE_WINTERHOLD
91         default "morthal" if BOARD_GOOGLE_MORTHAL
92         default "frostflow" if BOARD_GOOGLE_FROSTFLOW
94 config VBOOT
95         select EC_GOOGLE_CHROMEEC_SWITCHES
96         select VBOOT_LID_SWITCH
97         select VBOOT_SEPARATE_VERSTAGE
99 config VBOOT_STARTS_BEFORE_BOOTBLOCK
100         bool "Enable PSP_verstage"
101         default y if VBOOT
102         select SEPARATE_SIGNED_PSPFW
104 config VBOOT_STARTS_IN_BOOTBLOCK
105         bool
106         default y if VBOOT && !VBOOT_STARTS_BEFORE_BOOTBLOCK
108 # TODO: Remove once CBFS verification on AMD has been fixed.
109 config VBOOT_GSCVD
110         bool
111         default n
113 if !EM100       # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
114 config EFS_SPI_READ_MODE
115         default 2          # Dual IO (1-1-2)
117 config EFS_SPI_SPEED
118         default 0       # 66MHz
120 config EFS_SPI_MICRON_FLAG
121         default 0
123 config NORMAL_READ_SPI_SPEED
124         default 1       # 33MHz
126 config ALT_SPI_SPEED
127         default 0       # 66MHz
129 endif # !EM100
131 config OVERRIDE_EFS_SPI_SPEED
132         int
133         default 3 if EM100
134         default 4       # 100MHz
135         help
136           Override EFS SPI Speed Configuration to be applied based on certain
137           board version.
139 config OVERRIDE_EFS_SPI_SPEED_MIN_BOARD
140         hex
141         default 0x5 if BOARD_GOOGLE_SKYRIM
142         default 0xffffffff
143         help
144           Minimum board version starting which the Override EFS SPI Speed
145           configuration has to be applied.
147 endif # BOARD_GOOGLE_BASEBOARD_SKYRIM