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 |
| 11 | help |
| 12 | TODO: might need to be adapted for better placement of files in cbfs |
| 13 | |
| 14 | config BOARD_SPECIFIC_OPTIONS |
| 15 | def_bool y |
Jon Murphy | 4b2e04a | 2022-02-17 14:54:46 -0700 | [diff] [blame] | 16 | select AMD_SOC_CONSOLE_UART |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 17 | select BOARD_ROMSIZE_KB_16384 |
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 |
Jon Murphy | 410b7cb | 2022-02-17 20:21:37 -0700 | [diff] [blame] | 20 | select DRIVERS_I2C_GENERIC |
| 21 | select DRIVERS_I2C_HID |
Ian Feng | 2c89d08a | 2022-04-22 16:29:05 +0800 | [diff] [blame] | 22 | select DRIVERS_I2C_NAU8825 |
Karthikeyan Ramasubramanian | d52adc4 | 2022-05-02 13:30:57 -0600 | [diff] [blame] | 23 | select DRIVERS_USB_HUB |
Jon Murphy | 9df0085 | 2022-02-17 22:42:57 -0700 | [diff] [blame] | 24 | select DRIVERS_WIFI_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 |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 33 | select I2C_TPM |
Jon Murphy | af025d6 | 2022-02-16 06:44:53 -0700 | [diff] [blame] | 34 | select MAINBOARD_HAS_CHROMEOS |
Jon Murphy | 0bc013b | 2022-02-17 21:05:19 -0700 | [diff] [blame] | 35 | select MAINBOARD_HAS_TPM2 |
Karthikeyan Ramasubramanian | 7738764 | 2022-03-25 10:28:15 -0600 | [diff] [blame] | 36 | select PSP_DISABLE_POSTCODES # TODO re-enable PSP postcodes later (b/227199049) |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 37 | select SOC_AMD_SABRINA |
Jon Murphy | ee67ddc | 2022-02-17 20:40:23 -0700 | [diff] [blame] | 38 | select SOC_AMD_COMMON_BLOCK_USE_ESPI |
Jon Murphy | 5110c9d | 2022-05-25 11:08:42 -0600 | [diff] [blame] | 39 | select TPM_GOOGLE_TI50 |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 40 | |
Jon Murphy | cbf0f98 | 2022-02-16 06:47:46 -0700 | [diff] [blame] | 41 | config CHROMEOS |
| 42 | select EC_GOOGLE_CHROMEEC_SWITCHES |
| 43 | |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 44 | config DEVICETREE |
| 45 | default "variants/baseboard/devicetree.cb" |
| 46 | |
Jon Murphy | 0bc013b | 2022-02-17 21:05:19 -0700 | [diff] [blame] | 47 | config DRIVER_TPM_I2C_BUS |
| 48 | hex |
| 49 | default 0x03 |
| 50 | |
| 51 | config DRIVER_TPM_I2C_ADDR |
| 52 | hex |
| 53 | default 0x50 |
| 54 | |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 55 | config FMDFILE |
| 56 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" |
| 57 | |
| 58 | config MAINBOARD_DIR |
| 59 | default "google/skyrim" |
| 60 | |
| 61 | config MAINBOARD_FAMILY |
| 62 | string |
| 63 | default "Google_Skyrim" |
| 64 | |
| 65 | config MAINBOARD_PART_NUMBER |
| 66 | default "Skyrim" if BOARD_GOOGLE_SKYRIM |
| 67 | |
Jon Murphy | 9e00571 | 2022-02-17 14:48:55 -0700 | [diff] [blame] | 68 | config OVERRIDE_DEVICETREE |
| 69 | string |
| 70 | default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" |
| 71 | |
| 72 | config VARIANT_DIR |
| 73 | string |
| 74 | default "skyrim" if BOARD_GOOGLE_SKYRIM |
| 75 | |
Jon Murphy | af025d6 | 2022-02-16 06:44:53 -0700 | [diff] [blame] | 76 | config VBOOT |
Jon Murphy | cbf0f98 | 2022-02-16 06:47:46 -0700 | [diff] [blame] | 77 | select VBOOT_LID_SWITCH |
Jon Murphy | af025d6 | 2022-02-16 06:44:53 -0700 | [diff] [blame] | 78 | select VBOOT_SEPARATE_VERSTAGE |
| 79 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 80 | |
Julius Werner | 5eda52a | 2022-05-19 14:37:21 -0700 | [diff] [blame^] | 81 | # TODO: Remove once CBFS verification on AMD has been fixed. |
| 82 | config VBOOT_GSCVD |
| 83 | bool |
| 84 | default n |
| 85 | |
Chris.Wang | 80b686d | 2022-04-19 23:21:19 +0800 | [diff] [blame] | 86 | if !EM100 # EM100 defaults in soc/amd/common/blocks/spi/Kconfig |
| 87 | config EFS_SPI_READ_MODE |
| 88 | default 2 # Dual IO (1-1-2) |
| 89 | |
| 90 | config EFS_SPI_SPEED |
| 91 | default 0 # 66MHz |
| 92 | |
| 93 | config EFS_SPI_MICRON_FLAG |
| 94 | default 0 |
| 95 | |
| 96 | config NORMAL_READ_SPI_SPEED |
| 97 | default 1 # 33MHz |
| 98 | |
| 99 | config ALT_SPI_SPEED |
| 100 | default 0 # 66MHz |
| 101 | |
| 102 | endif # !EM100 |
| 103 | |
Karthikeyan Ramasubramanian | a84d4f23 | 2022-02-02 10:10:03 -0700 | [diff] [blame] | 104 | endif # BOARD_GOOGLE_BASEBOARD_SKYRIM |