blob: 37db0c66f2b2322df210e319ae9ac069ddb8a53b [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Lee Leahy93dd5f72016-01-26 10:06:42 -08002
3if BOARD_INTEL_GALILEO
4
5config BOARD_SPECIFIC_OPTIONS
6 def_bool y
7 select BOARD_ROMSIZE_KB_8192
Lee Leahyca65bb72016-05-30 14:02:49 -07008 select ENABLE_BUILTIN_HSUART1
Lee Leahyf7c01aa2016-02-20 17:53:54 -08009 select HAVE_ACPI_TABLES
Lee Leahy93dd5f72016-01-26 10:06:42 -080010 select SOC_INTEL_QUARK
Philipp Deppenwiesec07f8fb2018-02-27 19:40:52 +010011 select MAINBOARD_HAS_I2C_TPM_ATMEL
12 select MAINBOARD_HAS_TPM2
Arthur Heymans06e33222019-01-16 02:57:30 +010013 select UDK_2015_BINDING
Arthur Heymans06e33222019-01-16 02:57:30 +010014
Lee Leahy93dd5f72016-01-26 10:06:42 -080015
16config MAINBOARD_DIR
17 string
Patrick Georgi0bb83462019-11-22 20:58:58 +010018 default "intel/galileo"
Lee Leahy93dd5f72016-01-26 10:06:42 -080019
20config MAINBOARD_PART_NUMBER
21 string
22 default "Galileo"
23
Lee Leahy274d20a2016-05-15 13:52:36 -070024config 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 Leahye1654232016-09-28 14:10:06 -070033choice
Lee Leahye1654232016-09-28 14:10:06 -070034 prompt "FSP binary type"
35 default FSP_BUILD_TYPE_DEBUG
36
37config FSP_BUILD_TYPE_DEBUG
38 bool "Debug"
39 help
40 Use the debug version of FSP
41config FSP_BUILD_TYPE_RELEASE
42 bool "Release"
43 help
44 Use the release version of FSP
45
46endchoice
47
48config FSP_BUILD_TYPE
49 string
50 default "DEBUG" if FSP_BUILD_TYPE_DEBUG
51 default "RELEASE" if FSP_BUILD_TYPE_RELEASE
52
53choice
54 prompt "FSP type"
Arthur Heymans06e33222019-01-16 02:57:30 +010055 default FSP_TYPE_2_0_PEI
Lee Leahye1654232016-09-28 14:10:06 -070056
Lee Leahye1654232016-09-28 14:10:06 -070057config FSP_TYPE_2_0
58 bool "MemInit subroutine"
Lee Leahye1654232016-09-28 14:10:06 -070059 help
60 FSP 2.0 implemented as subroutines, no EDK-II cores
61config FSP_TYPE_2_0_PEI
62 bool "SEC + PEI Core + MemInit PEIM"
Lee Leahye1654232016-09-28 14:10:06 -070063 help
64 FSP 2.0 implemented using SEC and PEI core
65
66endchoice
67
68config FSP_TYPE
69 string
Lee Leahye1654232016-09-28 14:10:06 -070070 default "Fsp2_0" if FSP_TYPE_2_0
71 default "Fsp2_0Pei" if FSP_TYPE_2_0_PEI
72
73config FSP_DEBUG_ALL
74 bool "Enable all FSP debug support"
Lee Leahye1654232016-09-28 14:10:06 -070075 default y
76# Enable display and verification for coreboot build tests
Lee Leahye1654232016-09-28 14:10:06 -070077 select DISPLAY_HOBS
78 select DISPLAY_MTRRS
Lee Leahye1654232016-09-28 14:10:06 -070079 select DISPLAY_UPD_DATA
Arthur Heymans06e33222019-01-16 02:57:30 +010080 select DISPLAY_ESRAM_LAYOUT
81 select DISPLAY_FSP_CALLS_AND_STATUS
82 select DISPLAY_FSP_HEADER
Arthur Heymans06e33222019-01-16 02:57:30 +010083 select VERIFY_HOBS
Lee Leahye1654232016-09-28 14:10:06 -070084 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 Leahy5e808cb2016-05-28 14:58:57 -070088
Lee Leahy28c3f232017-01-04 08:34:01 -080089config VBOOT_WITH_CRYPTO_SHIELD
90 bool "Verified boot using the Crypto Shield board"
91 default n
92 select COLLECT_TIMESTAMPS
Julius Werner58c39382017-02-13 17:53:29 -080093 select VBOOT_SEPARATE_VERSTAGE
Lee Leahy28c3f232017-01-04 08:34:01 -080094 select VBOOT
95 select VBOOT_STARTS_IN_BOOTBLOCK
Lee Leahy28c3f232017-01-04 08:34:01 -080096 select VBOOT_VBNV_CMOS
97 help
98 Perform a verified boot using the TPM on the Crypto Shield board.
99
100config 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
107config FMDFILE
Angel Ponsac44f872021-07-23 11:34:07 +0200108 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/vboot.fmd" if VBOOT
Lee Leahy28c3f232017-01-04 08:34:01 -0800109
Lee Leahy1ea7cce2017-04-07 12:07:46 -0700110config ENABLE_SD_TESTING
111 bool "Enable SD card testing"
112 default y
Lee Leahy48dbc662017-05-08 16:56:03 -0700113 select COMMONLIB_STORAGE_SD
Lee Leahy1ea7cce2017-04-07 12:07:46 -0700114 select SDHC_DEBUG
115 select STORAGE_LOG
116 select STORAGE_TEST
117
Lee Leahy93dd5f72016-01-26 10:06:42 -0800118endif # BOARD_INTEL_QUARK