blob: e941448b482b9bd63cfd9ed0d5f59d42b8a1cea1 [file] [log] [blame]
Lee Leahy93dd5f72016-01-26 10:06:42 -08001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2015-2016 Intel Corp.
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; version 2 of the License.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
15
16if BOARD_INTEL_GALILEO
17
18config BOARD_SPECIFIC_OPTIONS
19 def_bool y
20 select BOARD_ROMSIZE_KB_8192
Lee Leahye1654232016-09-28 14:10:06 -070021# select CREATE_BOARD_CHECKLIST
Lee Leahyca65bb72016-05-30 14:02:49 -070022 select ENABLE_BUILTIN_HSUART1
Lee Leahyf7c01aa2016-02-20 17:53:54 -080023 select HAVE_ACPI_TABLES
Lee Leahy93dd5f72016-01-26 10:06:42 -080024 select SOC_INTEL_QUARK
25
26config MAINBOARD_DIR
27 string
28 default intel/galileo
29
30config MAINBOARD_PART_NUMBER
31 string
32 default "Galileo"
33
34config MAINBOARD_VENDOR
35 string
36 default "Intel"
37
Lee Leahy274d20a2016-05-15 13:52:36 -070038config GALILEO_GEN2
39 bool "Board generation: GEN1 (n) or GEN2 (y)"
40 default y
41 help
42 The coreboot binary will configure only one generation of the Galileo
43 board since coreboot can not determine the board generation at
44 runtime. Select which generation of the Galileo that coreboot
45 should initialize.
46
Lee Leahye1654232016-09-28 14:10:06 -070047choice
48 prompt "FSP version"
Lee Leahy31f5c132016-09-28 17:28:00 -070049 default FSP_VERSION_2_0
Lee Leahye1654232016-09-28 14:10:06 -070050
51config FSP_VERSION_1_1
52 bool "FSP 1.1"
53 select CREATE_BOARD_CHECKLIST
Lee Leahy5e808cb2016-05-28 14:58:57 -070054 select PLATFORM_USES_FSP1_1
Lee Leahy77051e02016-07-25 07:18:13 -070055# select ADD_FSP_RAW_BIN
Lee Leahye1654232016-09-28 14:10:06 -070056 help
57 Use FSP 1_1 binary
58config FSP_VERSION_2_0
59 bool "FSP 2.0"
Lee Leahy77051e02016-07-25 07:18:13 -070060 select PLATFORM_USES_FSP2_0
Lee Leahyf26fc0f2016-07-25 10:14:07 -070061 select POSTCAR_STAGE
Lee Leahye1654232016-09-28 14:10:06 -070062 help
63 Use FSP 2.0 binary
64
65endchoice
66
67config FSP_VERSION
68 string
69 default "fsp1_1" if FSP_VERSION_1_1
70 default "fsp2_0" if FSP_VERSION_2_0
71
72choice
73 prompt "FSP binary type"
74 default FSP_BUILD_TYPE_DEBUG
75
76config FSP_BUILD_TYPE_DEBUG
77 bool "Debug"
78 help
79 Use the debug version of FSP
80config FSP_BUILD_TYPE_RELEASE
81 bool "Release"
82 help
83 Use the release version of FSP
84
85endchoice
86
87config FSP_BUILD_TYPE
88 string
89 default "DEBUG" if FSP_BUILD_TYPE_DEBUG
90 default "RELEASE" if FSP_BUILD_TYPE_RELEASE
91
92choice
93 prompt "FSP type"
94 depends on FSP_VERSION_2_0 || FSP_VERSION_1_1
95 default FSP_TYPE_1_1_PEI if FSP_VERSION_1_1
96 default FSP_TYPE_2_0_PEI if FSP_VERSION_2_0
97
98config FSP_TYPE_1_1
99 bool "MemInit subroutine"
100 depends on FSP_VERSION_1_1
101 help
102 FSP 1.1 implemented as subroutines, no EDK-II cores
103config FSP_TYPE_1_1_PEI
104 bool "SEC + PEI Core + MemInit PEIM"
105 depends on FSP_VERSION_1_1
106 help
107 FSP 1.1 implemented using SEC and PEI core
108config FSP_TYPE_2_0
109 bool "MemInit subroutine"
110 depends on FSP_VERSION_2_0
111 help
112 FSP 2.0 implemented as subroutines, no EDK-II cores
113config FSP_TYPE_2_0_PEI
114 bool "SEC + PEI Core + MemInit PEIM"
115 depends on FSP_VERSION_2_0
116 help
117 FSP 2.0 implemented using SEC and PEI core
118
119endchoice
120
121config FSP_TYPE
122 string
123 default "Fsp1_1" if FSP_TYPE_1_1
124 default "Fsp1_1Pei" if FSP_TYPE_1_1_PEI
125 default "Fsp2_0" if FSP_TYPE_2_0
126 default "Fsp2_0Pei" if FSP_TYPE_2_0_PEI
127
128config FSP_DEBUG_ALL
129 bool "Enable all FSP debug support"
130 depends on FSP_VERSION_2_0 || FSP_VERSION_1_1
131 default y
132# Enable display and verification for coreboot build tests
133 select BOOTBLOCK_CONSOLE
134 select DISPLAY_HOBS
135 select DISPLAY_MTRRS
136 select DISPLAY_SMM_MEMORY_MAP
137 select DISPLAY_UPD_DATA
138 select DISPLAY_ESRAM_LAYOUT if FSP_VERSION_2_0
139 select DISPLAY_FSP_CALLS_AND_STATUS if FSP_VERSION_2_0
140 select DISPLAY_FSP_HEADER if FSP_VERSION_2_0
141 select POSTCAR_CONSOLE if FSP_VERSION_2_0
142 select VERIFY_HOBS if FSP_VERSION_2_0
143 select DISPLAY_FSP_ENTRY_POINTS if FSP_VERSION_1_1
144 help
145 Turn on debug support to display HOBS, MTRRS, SMM_MEMORY_MAP, UPD_DATA
146 also turn on FSP 2.0 debug support for ESRAM_LAYOUT,
147 FSP_CALLS_AND_STATUS, FSP_HEADER, POSTCAR_CONSOLE and VERIFY_HOBS
148 or FSP 1.1 DISPLAY_FSP_ENTRY_POINTS
Lee Leahy5e808cb2016-05-28 14:58:57 -0700149
Lee Leahy93dd5f72016-01-26 10:06:42 -0800150endif # BOARD_INTEL_QUARK