Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | |
| 3 | config BOARD_GOOGLE_BASEBOARD_SKYRIM |
| 4 | def_bool n |
| 5 | |
| 6 | if BOARD_GOOGLE_BASEBOARD_SKYRIM |
| 7 | |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 8 | config BOARD_SPECIFIC_OPTIONS |
| 9 | def_bool y |
Tim Van Patten | 71d60ce | 2023-07-31 12:17:43 -0600 | [diff] [blame] | 10 | select ACPI_S1_NOT_SUPPORTED |
Jon Murphy | 4b2e04a | 2022-02-17 14:54:46 -0700 | [diff] [blame] | 11 | select AMD_SOC_CONSOLE_UART |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 12 | select BOARD_ROMSIZE_KB_16384 |
Martin Roth | c7a1084 | 2023-02-08 14:28:19 -0700 | [diff] [blame] | 13 | select DISABLE_KEYBOARD_RESET_PIN |
Martin Roth | f411db3 | 2023-02-08 12:10:15 -0700 | [diff] [blame] | 14 | select DISABLE_SPI_FLASH_ROM_SHARING |
Ian Feng | c6d6c88 | 2022-04-14 17:02:35 +0800 | [diff] [blame] | 15 | select DRIVERS_GENERIC_GPIO_KEYS |
Ian Feng | 2c89d08a | 2022-04-22 16:29:05 +0800 | [diff] [blame] | 16 | select DRIVERS_GENERIC_MAX98357A |
Fred Reitberger | 7627e07 | 2022-06-27 10:26:34 -0400 | [diff] [blame] | 17 | select DRIVERS_ACPI_THERMAL_ZONE |
Jon Murphy | 410b7cb | 2022-02-17 20:21:37 -0700 | [diff] [blame] | 18 | select DRIVERS_I2C_GENERIC |
| 19 | select DRIVERS_I2C_HID |
Ian Feng | 2c89d08a | 2022-04-22 16:29:05 +0800 | [diff] [blame] | 20 | select DRIVERS_I2C_NAU8825 |
Karthikeyan Ramasubramanian | d52adc4 | 2022-05-02 13:30:57 -0600 | [diff] [blame] | 21 | select DRIVERS_USB_HUB |
Moises Garcia | e046062 | 2022-06-21 15:05:08 -0700 | [diff] [blame] | 22 | select DRIVERS_UART_ACPI |
JasonNien | 4a0e5e4 | 2022-12-13 13:35:53 -0600 | [diff] [blame] | 23 | select DRIVERS_PCIE_RTD3_DEVICE |
Robert Zieba | 247d034 | 2022-07-11 11:01:33 -0600 | [diff] [blame] | 24 | select DRIVERS_PCIE_GENERIC |
Jon Murphy | cbf0f98 | 2022-02-16 06:47:46 -0700 | [diff] [blame] | 25 | select EC_GOOGLE_CHROMEEC |
| 26 | select EC_GOOGLE_CHROMEEC_ESPI |
Amanda Huang | a688241 | 2022-05-16 14:10:35 +0800 | [diff] [blame] | 27 | select EC_GOOGLE_CHROMEEC_SKUID |
| 28 | select EC_GOOGLE_CHROMEEC_BOARDID |
Jon Murphy | f79cc51 | 2022-02-17 16:15:45 -0700 | [diff] [blame] | 29 | select ELOG |
| 30 | select ELOG_GSMI |
Jon Murphy | eab1827 | 2022-02-17 14:52:01 -0700 | [diff] [blame] | 31 | select FW_CONFIG |
Ian Feng | 2c89d08a | 2022-04-22 16:29:05 +0800 | [diff] [blame] | 32 | select FW_CONFIG_SOURCE_CHROMEEC_CBI |
Amanda Huang | 001b059 | 2022-11-01 13:59:46 +0800 | [diff] [blame] | 33 | select GOOGLE_SMBIOS_MAINBOARD_VERSION |
Karthikeyan Ramasubramanian | 63c1f7b | 2023-02-23 15:59:24 -0700 | [diff] [blame] | 34 | select HAS_RECOVERY_MRC_CACHE |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 35 | select I2C_TPM |
Jon Murphy | af025d6 | 2022-02-16 06:44:53 -0700 | [diff] [blame] | 36 | select MAINBOARD_HAS_CHROMEOS |
Jon Murphy | 0bc013b | 2022-02-17 21:05:19 -0700 | [diff] [blame] | 37 | select MAINBOARD_HAS_TPM2 |
Martin Roth | cba09c8 | 2023-01-04 18:54:28 -0700 | [diff] [blame] | 38 | select MB_COMPRESS_RAMSTAGE_LZ4 |
Jon Murphy | 4f73242 | 2022-08-05 15:43:44 -0600 | [diff] [blame] | 39 | select SOC_AMD_MENDOCINO |
Jan Dabros | 3709186 | 2022-09-15 08:37:17 +0000 | [diff] [blame] | 40 | select SOC_AMD_COMMON_BLOCK_I2C3_TPM_SHARED_WITH_PSP |
Jon Murphy | ee67ddc | 2022-02-17 20:40:23 -0700 | [diff] [blame] | 41 | select SOC_AMD_COMMON_BLOCK_USE_ESPI |
Martin Roth | ced021a | 2023-02-08 12:04:33 -0700 | [diff] [blame] | 42 | select SYSTEM_TYPE_LAPTOP |
Jon Murphy | 5110c9d | 2022-05-25 11:08:42 -0600 | [diff] [blame] | 43 | select TPM_GOOGLE_TI50 |
Fred Reitberger | bec4121 | 2022-09-08 11:44:32 -0400 | [diff] [blame] | 44 | select PCIEXP_ASPM |
| 45 | select PCIEXP_CLK_PM |
| 46 | select PCIEXP_COMMON_CLOCK |
| 47 | select PCIEXP_L1_SUB_STATE |
Zheng Bao | 6bc0698 | 2023-02-14 13:26:31 +0800 | [diff] [blame^] | 48 | select AMD_FWM_POSITION_C20000_DEFAULT |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 49 | |
| 50 | config DEVICETREE |
| 51 | default "variants/baseboard/devicetree.cb" |
| 52 | |
Jon Murphy | 0bc013b | 2022-02-17 21:05:19 -0700 | [diff] [blame] | 53 | config DRIVER_TPM_I2C_BUS |
| 54 | hex |
| 55 | default 0x03 |
| 56 | |
| 57 | config DRIVER_TPM_I2C_ADDR |
| 58 | hex |
| 59 | default 0x50 |
| 60 | |
Grzegorz Bernacki | a0bd3e9 | 2023-05-29 11:53:38 +0000 | [diff] [blame] | 61 | config GSC_IRQ_GPIO |
| 62 | int |
| 63 | default 18 |
| 64 | |
Martin Roth | 411b4fc | 2023-01-16 17:25:26 -0700 | [diff] [blame] | 65 | config AMDFW_CONFIG_FILE |
| 66 | string |
| 67 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/amdfw.cfg" |
| 68 | help |
| 69 | Custom firmware list excluding the fwTPM binary. |
| 70 | |
Martin Roth | e22d740 | 2023-03-08 15:50:27 -0700 | [diff] [blame] | 71 | config PSP_LOAD_MP2_FW |
| 72 | prompt "Load MP2 Firmware" |
| 73 | depends on CHROMEOS |
| 74 | default n |
| 75 | |
Jon Murphy | 49332fe | 2022-09-27 17:48:00 -0600 | [diff] [blame] | 76 | config HAVE_SPL_FILE |
| 77 | bool |
| 78 | default y |
| 79 | |
| 80 | config SPL_TABLE_FILE |
| 81 | string |
| 82 | depends on HAVE_SPL_FILE |
Karthikeyan Ramasubramanian | 1c3da3f | 2022-12-15 11:12:34 -0700 | [diff] [blame] | 83 | default "3rdparty/blobs/mainboard/google/skyrim/TypeId0x55_SplTableBl_MDN_CHROME_RO.sbin" |
| 84 | |
| 85 | config HAVE_SPL_RW_AB_FILE |
| 86 | bool |
| 87 | default y |
| 88 | |
| 89 | config SPL_RW_AB_TABLE_FILE |
| 90 | string |
| 91 | depends on HAVE_SPL_RW_AB_FILE |
Jon Murphy | 49332fe | 2022-09-27 17:48:00 -0600 | [diff] [blame] | 92 | default "3rdparty/blobs/mainboard/google/skyrim/TypeId0x55_SplTableBl_MDN_CHROME.sbin" |
| 93 | |
Martin Roth | 07a56e0 | 2023-02-08 15:18:59 -0700 | [diff] [blame] | 94 | config SOC_AMD_COMMON_BLOCK_PSP_FUSE_SPL |
Martin Roth | 07a56e0 | 2023-02-08 15:18:59 -0700 | [diff] [blame] | 95 | default y if BOARD_GOOGLE_WINTERHOLD |
Frank Wu | 90549f97 | 2023-03-22 10:12:38 +0800 | [diff] [blame] | 96 | default y if BOARD_GOOGLE_FROSTFLOW |
John Su | 533f1e7 | 2023-04-25 18:22:18 +0800 | [diff] [blame] | 97 | default y if BOARD_GOOGLE_MARKARTH |
Yunlong Jia | 829adab | 2023-08-15 08:00:12 +0000 | [diff] [blame] | 98 | default y if BOARD_GOOGLE_CRYSTALDRIFT |
Martin Roth | 07a56e0 | 2023-02-08 15:18:59 -0700 | [diff] [blame] | 99 | default n |
| 100 | |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 101 | config FMDFILE |
| 102 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" |
| 103 | |
| 104 | config MAINBOARD_DIR |
| 105 | default "google/skyrim" |
| 106 | |
| 107 | config MAINBOARD_FAMILY |
| 108 | string |
| 109 | default "Google_Skyrim" |
| 110 | |
| 111 | config MAINBOARD_PART_NUMBER |
| 112 | default "Skyrim" if BOARD_GOOGLE_SKYRIM |
Isaac Lee | a3214c6 | 2022-08-10 09:30:08 -0700 | [diff] [blame] | 113 | default "Winterhold" if BOARD_GOOGLE_WINTERHOLD |
Chao Gui | d171e7f | 2022-10-06 13:27:46 -0700 | [diff] [blame] | 114 | default "Frostflow" if BOARD_GOOGLE_FROSTFLOW |
Chao Gui | 42c6025 | 2022-11-11 10:44:12 -0800 | [diff] [blame] | 115 | default "Crystaldrift" if BOARD_GOOGLE_CRYSTALDRIFT |
Chao Gui | ca07e1c | 2022-12-31 07:01:14 -0800 | [diff] [blame] | 116 | default "Markarth" if BOARD_GOOGLE_MARKARTH |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 117 | |
Jon Murphy | 9e00571 | 2022-02-17 14:48:55 -0700 | [diff] [blame] | 118 | config OVERRIDE_DEVICETREE |
| 119 | string |
| 120 | default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" |
| 121 | |
| 122 | config VARIANT_DIR |
| 123 | string |
| 124 | default "skyrim" if BOARD_GOOGLE_SKYRIM |
Isaac Lee | a3214c6 | 2022-08-10 09:30:08 -0700 | [diff] [blame] | 125 | default "winterhold" if BOARD_GOOGLE_WINTERHOLD |
Chao Gui | d171e7f | 2022-10-06 13:27:46 -0700 | [diff] [blame] | 126 | default "frostflow" if BOARD_GOOGLE_FROSTFLOW |
Chao Gui | 42c6025 | 2022-11-11 10:44:12 -0800 | [diff] [blame] | 127 | default "crystaldrift" if BOARD_GOOGLE_CRYSTALDRIFT |
Chao Gui | ca07e1c | 2022-12-31 07:01:14 -0800 | [diff] [blame] | 128 | default "markarth" if BOARD_GOOGLE_MARKARTH |
Jon Murphy | 9e00571 | 2022-02-17 14:48:55 -0700 | [diff] [blame] | 129 | |
Martin Roth | dcd7ec2 | 2023-02-24 13:51:41 -0700 | [diff] [blame] | 130 | config USE_VARIANT_DXIO_DESCRIPTOR |
| 131 | bool |
Martin Roth | d471201 | 2023-03-03 16:38:25 -0700 | [diff] [blame] | 132 | default y if BOARD_GOOGLE_WINTERHOLD |
John Su | 294a2fd | 2023-03-30 16:03:39 +0800 | [diff] [blame] | 133 | default y if BOARD_GOOGLE_MARKARTH |
Martin Roth | d471201 | 2023-03-03 16:38:25 -0700 | [diff] [blame] | 134 | default n |
Martin Roth | dcd7ec2 | 2023-02-24 13:51:41 -0700 | [diff] [blame] | 135 | help |
| 136 | Enable this to allow a variant to override the dxio descriptor values |
| 137 | in port_descriptors.c |
| 138 | |
Jon Murphy | af025d6 | 2022-02-16 06:44:53 -0700 | [diff] [blame] | 139 | config VBOOT |
Matt DeVillier | 7fd9fed | 2022-09-29 15:40:33 -0500 | [diff] [blame] | 140 | select EC_GOOGLE_CHROMEEC_SWITCHES |
Jon Murphy | cbf0f98 | 2022-02-16 06:47:46 -0700 | [diff] [blame] | 141 | select VBOOT_LID_SWITCH |
Jon Murphy | af025d6 | 2022-02-16 06:44:53 -0700 | [diff] [blame] | 142 | select VBOOT_SEPARATE_VERSTAGE |
Karthikeyan Ramasubramanian | 77b2d45 | 2022-07-25 13:45:47 -0600 | [diff] [blame] | 143 | |
| 144 | config VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 145 | bool "Enable PSP_verstage" |
| 146 | default y if VBOOT |
Karthikeyan Ramasubramanian | d49c3f2 | 2022-08-25 17:05:23 -0600 | [diff] [blame] | 147 | select SEPARATE_SIGNED_PSPFW |
Karthikeyan Ramasubramanian | 77b2d45 | 2022-07-25 13:45:47 -0600 | [diff] [blame] | 148 | |
| 149 | config VBOOT_STARTS_IN_BOOTBLOCK |
| 150 | bool |
| 151 | default y if VBOOT && !VBOOT_STARTS_BEFORE_BOOTBLOCK |
Jon Murphy | af025d6 | 2022-02-16 06:44:53 -0700 | [diff] [blame] | 152 | |
Chris.Wang | 80b686d | 2022-04-19 23:21:19 +0800 | [diff] [blame] | 153 | if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig |
| 154 | config EFS_SPI_READ_MODE |
Karthikeyan Ramasubramanian | 5717ce6 | 2022-10-28 10:23:39 -0600 | [diff] [blame] | 155 | default 2 if BOARD_GOOGLE_SKYRIM # Dual IO (1-1-2) |
| 156 | default 4 # Dual IO (1-2-2) |
Chris.Wang | 80b686d | 2022-04-19 23:21:19 +0800 | [diff] [blame] | 157 | |
| 158 | config EFS_SPI_SPEED |
Martin Roth | c29340d | 2023-01-13 22:05:59 -0700 | [diff] [blame] | 159 | default 4 if BOARD_GOOGLE_WINTERHOLD |
Chris.Wang | 80b686d | 2022-04-19 23:21:19 +0800 | [diff] [blame] | 160 | default 0 # 66MHz |
| 161 | |
| 162 | config EFS_SPI_MICRON_FLAG |
| 163 | default 0 |
| 164 | |
| 165 | config NORMAL_READ_SPI_SPEED |
| 166 | default 1 # 33MHz |
| 167 | |
| 168 | config ALT_SPI_SPEED |
Martin Roth | c29340d | 2023-01-13 22:05:59 -0700 | [diff] [blame] | 169 | default 4 if BOARD_GOOGLE_WINTERHOLD |
Chris.Wang | 80b686d | 2022-04-19 23:21:19 +0800 | [diff] [blame] | 170 | default 0 # 66MHz |
| 171 | |
| 172 | endif # !EM100 |
| 173 | |
Karthikeyan Ramasubramanian | aea60bc | 2022-10-04 10:08:15 -0600 | [diff] [blame] | 174 | config OVERRIDE_EFS_SPI_SPEED |
| 175 | int |
| 176 | default 3 if EM100 |
| 177 | default 4 # 100MHz |
| 178 | help |
| 179 | Override EFS SPI Speed Configuration to be applied based on certain |
| 180 | board version. |
| 181 | |
| 182 | config OVERRIDE_EFS_SPI_SPEED_MIN_BOARD |
| 183 | hex |
| 184 | default 0x5 if BOARD_GOOGLE_SKYRIM |
Frank Wu | 0dbc917 | 2023-02-01 11:22:15 +0800 | [diff] [blame] | 185 | default 0x1 if BOARD_GOOGLE_FROSTFLOW |
John Su | 7479385 | 2023-02-07 16:56:26 +0800 | [diff] [blame] | 186 | default 0x1 if BOARD_GOOGLE_MARKARTH |
Yunlong Jia | b333c6a | 2023-06-20 05:13:10 +0000 | [diff] [blame] | 187 | default 0x1 if BOARD_GOOGLE_CRYSTALDRIFT |
Karthikeyan Ramasubramanian | aea60bc | 2022-10-04 10:08:15 -0600 | [diff] [blame] | 188 | default 0xffffffff |
| 189 | help |
| 190 | Minimum board version starting which the Override EFS SPI Speed |
| 191 | configuration has to be applied. |
| 192 | |
Zheng Bao | acd3788 | 2022-10-11 17:33:16 +0800 | [diff] [blame] | 193 | config CONSOLE_CBMEM_BUFFER_SIZE |
| 194 | hex |
| 195 | default 0x80000 |
| 196 | |
Martin Roth | b699d61 | 2022-11-16 12:20:06 -0700 | [diff] [blame] | 197 | config ENABLE_STB_SPILL_TO_DRAM |
| 198 | default y |
| 199 | help |
| 200 | Spill-to-DRAM is an STB feature that extends the buffer from using |
| 201 | just the small SRAM buffer to a much larger area reserved in main |
| 202 | memory. |
| 203 | |
Martin Roth | f339d5e | 2023-02-23 14:42:10 -0700 | [diff] [blame] | 204 | config CARDBUS_PLUGIN_SUPPORT |
| 205 | default n |
| 206 | |
Martin Roth | 627f4c5 | 2023-02-03 15:21:48 -0700 | [diff] [blame] | 207 | # Exclude support for SPI ROM types that won't be used on Skyrim platforms |
| 208 | config SPI_FLASH_DONT_INCLUDE_ALL_DRIVERS |
| 209 | default y |
| 210 | |
| 211 | # Gigadevice is used on Whiterun as an alternative to Winbond |
| 212 | config SPI_FLASH_GIGADEVICE |
| 213 | default y |
| 214 | |
| 215 | # XMC chips used on Markarth as an alternative to Winbond |
| 216 | # These chips identify as ST Micro (Manufacturer ID: 0x20) |
| 217 | config SPI_FLASH_STMICRO |
| 218 | default y |
| 219 | |
| 220 | # Winbond chips are used by all Skyrim devices as the primary flash chip |
| 221 | config SPI_FLASH_WINBOND |
| 222 | default y |
| 223 | |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 224 | endif # BOARD_GOOGLE_BASEBOARD_SKYRIM |