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