mb/amb/birman*/gpio: remove configuration for VDD_MEM_VID[0,1]
[coreboot2.git] / src / mainboard / google / skyrim / Kconfig
blobdc28fbca72318e3f4c2112411624de5adcb64334
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 config BOARD_GOOGLE_BASEBOARD_SKYRIM
4         def_bool n
6 config BOARD_GOOGLE_CRYSTALDRIFT
7         select BOARD_GOOGLE_BASEBOARD_SKYRIM
9 config BOARD_GOOGLE_FROSTFLOW
10         select BOARD_GOOGLE_BASEBOARD_SKYRIM
11         select DRIVERS_GENESYSLOGIC_GL9755
12         select FEATURE_TABLET_MODE_DPTC
13         select SOC_AMD_COMMON_BLOCK_ACPI_DPTC
15 config BOARD_GOOGLE_MARKARTH
16         select BOARD_GOOGLE_BASEBOARD_SKYRIM
17         select SOC_AMD_COMMON_BLOCK_ACPI_DPTC
19 config BOARD_GOOGLE_SKYRIM
20         select BOARD_GOOGLE_BASEBOARD_SKYRIM
21         select SOC_AMD_COMMON_BLOCK_ACPI_DPTC
23 config BOARD_GOOGLE_WINTERHOLD
24         select BOARD_GOOGLE_BASEBOARD_SKYRIM
25         select SOC_AMD_COMMON_BLOCK_ACPI_DPTC
26         select FEATURE_DYNAMIC_DPTC
28 if BOARD_GOOGLE_BASEBOARD_SKYRIM
30 config BOARD_SPECIFIC_OPTIONS
31         def_bool y
32         select ACPI_S1_NOT_SUPPORTED
33         select AMD_FWM_POSITION_C20000_DEFAULT
34         select AMD_SOC_CONSOLE_UART
35         select BOARD_ROMSIZE_KB_16384
36         select DISABLE_KEYBOARD_RESET_PIN
37         select DISABLE_SPI_FLASH_ROM_SHARING
38         select DRIVERS_GENERIC_GPIO_KEYS
39         select DRIVERS_GENERIC_MAX98357A
40         select DRIVERS_ACPI_THERMAL_ZONE
41         select DRIVERS_I2C_GENERIC
42         select DRIVERS_I2C_HID
43         select DRIVERS_I2C_NAU8825
44         select DRIVERS_USB_HUB
45         select DRIVERS_UART_ACPI
46         select DRIVERS_PCIE_GENERIC
47         select DRIVERS_PCIE_RTD3_DEVICE
48         select EC_GOOGLE_CHROMEEC
49         select EC_GOOGLE_CHROMEEC_BOARDID
50         select EC_GOOGLE_CHROMEEC_ESPI
51         select EC_GOOGLE_CHROMEEC_SKUID
52         select ELOG
53         select ELOG_GSMI
54         select FW_CONFIG
55         select FW_CONFIG_SOURCE_CHROMEEC_CBI
56         select GOOGLE_SMBIOS_MAINBOARD_VERSION
57         select HAS_RECOVERY_MRC_CACHE
58         select I2C_TPM
59         select MAINBOARD_HAS_CHROMEOS
60         select MAINBOARD_HAS_TPM2
61         select MB_COMPRESS_RAMSTAGE_LZ4
62         select PCIEXP_ASPM
63         select PCIEXP_CLK_PM
64         select PCIEXP_COMMON_CLOCK
65         select PCIEXP_L1_SUB_STATE
66         select SOC_AMD_MENDOCINO
67         select SOC_AMD_COMMON_BLOCK_I2C3_TPM_SHARED_WITH_PSP
68         select SOC_AMD_COMMON_BLOCK_USE_ESPI
69         select SOC_AMD_GFX_CACHE_VBIOS_IN_FMAP if CHROMEOS && RUN_FSP_GOP
70         select SYSTEM_TYPE_LAPTOP
71         select TPM_GOOGLE_TI50
73 config DEVICETREE
74         default "variants/baseboard/devicetree.cb"
76 config DRIVER_TPM_I2C_BUS
77         hex
78         default 0x03
80 config DRIVER_TPM_I2C_ADDR
81         hex
82         default 0x50
84 config GSC_IRQ_GPIO
85         int
86         default 18
88 config AMDFW_CONFIG_FILE
89         string
90         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/amdfw.cfg"
91         help
92           Custom firmware list excluding the fwTPM binary.
94 config PSP_LOAD_MP2_FW
95         prompt "Load MP2 Firmware"
96         depends on CHROMEOS
97         default y
99 config SPL_TABLE_FILE
100         string
101         default "3rdparty/blobs/mainboard/google/skyrim/TypeId0x55_SplTableBl_MDN_CHROME_RO.sbin"
103 config HAVE_SPL_RW_AB_FILE
104         bool
105         default y
107 config SPL_RW_AB_TABLE_FILE
108         string
109         default "3rdparty/blobs/mainboard/google/skyrim/TypeId0x55_SplTableBl_MDN_CHROME.sbin"
111 config PERFORM_SPL_FUSING
112         default n if BOARD_GOOGLE_SKYRIM
113         default y
115 config FMDFILE
116         default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd"
118 config MAINBOARD_DIR
119         default "google/skyrim"
121 config MAINBOARD_FAMILY
122         string
123         default "Google_Skyrim"
125 config MAINBOARD_PART_NUMBER
126         default "Crystaldrift" if BOARD_GOOGLE_CRYSTALDRIFT
127         default "Frostflow" if BOARD_GOOGLE_FROSTFLOW
128         default "Markarth" if BOARD_GOOGLE_MARKARTH
129         default "Skyrim" if BOARD_GOOGLE_SKYRIM
130         default "Winterhold" if BOARD_GOOGLE_WINTERHOLD
132 config OVERRIDE_DEVICETREE
133         string
134         default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
136 config VARIANT_DIR
137         string
138         default "crystaldrift" if BOARD_GOOGLE_CRYSTALDRIFT
139         default "frostflow" if BOARD_GOOGLE_FROSTFLOW
140         default "markarth" if BOARD_GOOGLE_MARKARTH
141         default "skyrim" if BOARD_GOOGLE_SKYRIM
142         default "winterhold" if BOARD_GOOGLE_WINTERHOLD
144 config USE_SELECTIVE_GOP_INIT
145         default y if CHROMEOS && RUN_FSP_GOP && BOARD_GOOGLE_SKYRIM
147 config VBOOT
148         select EC_GOOGLE_CHROMEEC_SWITCHES
149         select VBOOT_LID_SWITCH
150         select VBOOT_SEPARATE_VERSTAGE
152 config VBOOT_STARTS_BEFORE_BOOTBLOCK
153         bool "Enable PSP_verstage"
154         default y if VBOOT
155         select SEPARATE_SIGNED_PSPFW
157 config VBOOT_STARTS_IN_BOOTBLOCK
158         bool
159         default y if VBOOT && !VBOOT_STARTS_BEFORE_BOOTBLOCK
161 if !EM100       # EM100 defaults in soc/amd/common/blocks/spi/Kconfig
162 config EFS_SPI_READ_MODE
163         default 2 if BOARD_GOOGLE_SKYRIM          # Dual IO (1-1-2)
164         default 4                                 # Dual IO (1-2-2)
166 config EFS_SPI_SPEED
167         default 4 if BOARD_GOOGLE_WINTERHOLD
168         default 0       # 66MHz
170 config EFS_SPI_MICRON_FLAG
171         default 0
173 config NORMAL_READ_SPI_SPEED
174         default 1       # 33MHz
176 config ALT_SPI_SPEED
177         default 4 if BOARD_GOOGLE_WINTERHOLD
178         default 0       # 66MHz
180 endif # !EM100
182 config OVERRIDE_EFS_SPI_SPEED
183         int
184         default 3 if EM100
185         default 4       # 100MHz
186         help
187           Override EFS SPI Speed Configuration to be applied based on certain
188           board version.
190 config OVERRIDE_EFS_SPI_SPEED_MIN_BOARD
191         hex
192         default 0x1 if BOARD_GOOGLE_CRYSTALDRIFT
193         default 0x1 if BOARD_GOOGLE_FROSTFLOW
194         default 0x1 if BOARD_GOOGLE_MARKARTH
195         default 0x5 if BOARD_GOOGLE_SKYRIM
196         default 0xffffffff
197         help
198           Minimum board version starting which the Override EFS SPI Speed
199           configuration has to be applied.
201 config CONSOLE_CBMEM_BUFFER_SIZE
202         hex
203         default 0x80000
205 config ENABLE_STB_SPILL_TO_DRAM
206         default y
207         help
208           Spill-to-DRAM is an STB feature that extends the buffer from using
209           just the small SRAM buffer to a much larger area reserved in main
210           memory.
212 config CARDBUS_PLUGIN_SUPPORT
213         default n
215 # Exclude support for SPI ROM types that won't be used on Skyrim platforms
216 config SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS
217         default y
219 # Gigadevice is used on Whiterun as an alternative to Winbond
220 config SPI_FLASH_GIGADEVICE
221         default y
223 # XMC chips used on Markarth as an alternative to Winbond
224 # These chips identify as ST Micro (Manufacturer ID: 0x20)
225 config SPI_FLASH_STMICRO
226         default y
228 # Winbond chips are used by all Skyrim devices as the primary flash chip
229 config SPI_FLASH_WINBOND
230         default y
232 endif # BOARD_GOOGLE_BASEBOARD_SKYRIM