Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Lee Leahy | 93dd5f7 | 2016-01-26 10:06:42 -0800 | [diff] [blame] | 2 | |
| 3 | if BOARD_INTEL_GALILEO |
| 4 | |
| 5 | config BOARD_SPECIFIC_OPTIONS |
| 6 | def_bool y |
| 7 | select BOARD_ROMSIZE_KB_8192 |
Lee Leahy | ca65bb7 | 2016-05-30 14:02:49 -0700 | [diff] [blame] | 8 | select ENABLE_BUILTIN_HSUART1 |
Lee Leahy | f7c01aa | 2016-02-20 17:53:54 -0800 | [diff] [blame] | 9 | select HAVE_ACPI_TABLES |
Lee Leahy | 93dd5f7 | 2016-01-26 10:06:42 -0800 | [diff] [blame] | 10 | select SOC_INTEL_QUARK |
Philipp Deppenwiese | c07f8fb | 2018-02-27 19:40:52 +0100 | [diff] [blame] | 11 | select MAINBOARD_HAS_I2C_TPM_ATMEL |
| 12 | select MAINBOARD_HAS_TPM2 |
Arthur Heymans | 06e3322 | 2019-01-16 02:57:30 +0100 | [diff] [blame] | 13 | select UDK_2015_BINDING |
Arthur Heymans | 06e3322 | 2019-01-16 02:57:30 +0100 | [diff] [blame] | 14 | |
Lee Leahy | 93dd5f7 | 2016-01-26 10:06:42 -0800 | [diff] [blame] | 15 | |
| 16 | config MAINBOARD_DIR |
| 17 | string |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 18 | default "intel/galileo" |
Lee Leahy | 93dd5f7 | 2016-01-26 10:06:42 -0800 | [diff] [blame] | 19 | |
| 20 | config MAINBOARD_PART_NUMBER |
| 21 | string |
| 22 | default "Galileo" |
| 23 | |
Lee Leahy | 274d20a | 2016-05-15 13:52:36 -0700 | [diff] [blame] | 24 | config GALILEO_GEN2 |
| 25 | bool "Board generation: GEN1 (n) or GEN2 (y)" |
| 26 | default y |
| 27 | help |
| 28 | The coreboot binary will configure only one generation of the Galileo |
| 29 | board since coreboot can not determine the board generation at |
| 30 | runtime. Select which generation of the Galileo that coreboot |
| 31 | should initialize. |
| 32 | |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 33 | choice |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 34 | prompt "FSP binary type" |
| 35 | default FSP_BUILD_TYPE_DEBUG |
| 36 | |
| 37 | config FSP_BUILD_TYPE_DEBUG |
| 38 | bool "Debug" |
| 39 | help |
| 40 | Use the debug version of FSP |
| 41 | config FSP_BUILD_TYPE_RELEASE |
| 42 | bool "Release" |
| 43 | help |
| 44 | Use the release version of FSP |
| 45 | |
| 46 | endchoice |
| 47 | |
| 48 | config FSP_BUILD_TYPE |
| 49 | string |
| 50 | default "DEBUG" if FSP_BUILD_TYPE_DEBUG |
| 51 | default "RELEASE" if FSP_BUILD_TYPE_RELEASE |
| 52 | |
| 53 | choice |
| 54 | prompt "FSP type" |
Arthur Heymans | 06e3322 | 2019-01-16 02:57:30 +0100 | [diff] [blame] | 55 | default FSP_TYPE_2_0_PEI |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 56 | |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 57 | config FSP_TYPE_2_0 |
| 58 | bool "MemInit subroutine" |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 59 | help |
| 60 | FSP 2.0 implemented as subroutines, no EDK-II cores |
| 61 | config FSP_TYPE_2_0_PEI |
| 62 | bool "SEC + PEI Core + MemInit PEIM" |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 63 | help |
| 64 | FSP 2.0 implemented using SEC and PEI core |
| 65 | |
| 66 | endchoice |
| 67 | |
| 68 | config FSP_TYPE |
| 69 | string |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 70 | default "Fsp2_0" if FSP_TYPE_2_0 |
| 71 | default "Fsp2_0Pei" if FSP_TYPE_2_0_PEI |
| 72 | |
| 73 | config FSP_DEBUG_ALL |
| 74 | bool "Enable all FSP debug support" |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 75 | default y |
| 76 | # Enable display and verification for coreboot build tests |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 77 | select DISPLAY_HOBS |
| 78 | select DISPLAY_MTRRS |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 79 | select DISPLAY_UPD_DATA |
Arthur Heymans | 06e3322 | 2019-01-16 02:57:30 +0100 | [diff] [blame] | 80 | select DISPLAY_ESRAM_LAYOUT |
| 81 | select DISPLAY_FSP_CALLS_AND_STATUS |
| 82 | select DISPLAY_FSP_HEADER |
Arthur Heymans | 06e3322 | 2019-01-16 02:57:30 +0100 | [diff] [blame] | 83 | select VERIFY_HOBS |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 84 | help |
| 85 | Turn on debug support to display HOBS, MTRRS, SMM_MEMORY_MAP, UPD_DATA |
| 86 | also turn on FSP 2.0 debug support for ESRAM_LAYOUT, |
| 87 | FSP_CALLS_AND_STATUS, FSP_HEADER, POSTCAR_CONSOLE and VERIFY_HOBS |
Lee Leahy | 5e808cb | 2016-05-28 14:58:57 -0700 | [diff] [blame] | 88 | |
Lee Leahy | 28c3f23 | 2017-01-04 08:34:01 -0800 | [diff] [blame] | 89 | config VBOOT_WITH_CRYPTO_SHIELD |
| 90 | bool "Verified boot using the Crypto Shield board" |
| 91 | default n |
| 92 | select COLLECT_TIMESTAMPS |
Julius Werner | 58c3938 | 2017-02-13 17:53:29 -0800 | [diff] [blame] | 93 | select VBOOT_SEPARATE_VERSTAGE |
Lee Leahy | 28c3f23 | 2017-01-04 08:34:01 -0800 | [diff] [blame] | 94 | select VBOOT |
| 95 | select VBOOT_STARTS_IN_BOOTBLOCK |
Lee Leahy | 28c3f23 | 2017-01-04 08:34:01 -0800 | [diff] [blame] | 96 | select VBOOT_VBNV_CMOS |
| 97 | help |
| 98 | Perform a verified boot using the TPM on the Crypto Shield board. |
| 99 | |
| 100 | config DRIVER_TPM_I2C_ADDR |
| 101 | hex "Address of the I2C TPM chip" |
| 102 | depends on VBOOT_WITH_CRYPTO_SHIELD |
| 103 | default 0x29 |
| 104 | help |
| 105 | I2C address of the TPM chip on the Crypto Shield board. |
| 106 | |
| 107 | config FMDFILE |
Angel Pons | ac44f87 | 2021-07-23 11:34:07 +0200 | [diff] [blame^] | 108 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot.fmd" if VBOOT |
Lee Leahy | 28c3f23 | 2017-01-04 08:34:01 -0800 | [diff] [blame] | 109 | |
Lee Leahy | 1ea7cce | 2017-04-07 12:07:46 -0700 | [diff] [blame] | 110 | config ENABLE_SD_TESTING |
| 111 | bool "Enable SD card testing" |
| 112 | default y |
Lee Leahy | 48dbc66 | 2017-05-08 16:56:03 -0700 | [diff] [blame] | 113 | select COMMONLIB_STORAGE_SD |
Lee Leahy | 1ea7cce | 2017-04-07 12:07:46 -0700 | [diff] [blame] | 114 | select SDHC_DEBUG |
| 115 | select STORAGE_LOG |
| 116 | select STORAGE_TEST |
| 117 | |
Lee Leahy | 93dd5f7 | 2016-01-26 10:06:42 -0800 | [diff] [blame] | 118 | endif # BOARD_INTEL_QUARK |