Lee Leahy | 93dd5f7 | 2016-01-26 10:06:42 -0800 | [diff] [blame] | 1 | ## |
| 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 | |
| 16 | if BOARD_INTEL_GALILEO |
| 17 | |
| 18 | config BOARD_SPECIFIC_OPTIONS |
| 19 | def_bool y |
| 20 | select BOARD_ROMSIZE_KB_8192 |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 21 | # select CREATE_BOARD_CHECKLIST |
Lee Leahy | ca65bb7 | 2016-05-30 14:02:49 -0700 | [diff] [blame] | 22 | select ENABLE_BUILTIN_HSUART1 |
Lee Leahy | f7c01aa | 2016-02-20 17:53:54 -0800 | [diff] [blame] | 23 | select HAVE_ACPI_TABLES |
Lee Leahy | 93dd5f7 | 2016-01-26 10:06:42 -0800 | [diff] [blame] | 24 | select SOC_INTEL_QUARK |
| 25 | |
| 26 | config MAINBOARD_DIR |
| 27 | string |
| 28 | default intel/galileo |
| 29 | |
| 30 | config MAINBOARD_PART_NUMBER |
| 31 | string |
| 32 | default "Galileo" |
| 33 | |
| 34 | config MAINBOARD_VENDOR |
| 35 | string |
| 36 | default "Intel" |
| 37 | |
Lee Leahy | 274d20a | 2016-05-15 13:52:36 -0700 | [diff] [blame] | 38 | config 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 Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 47 | choice |
| 48 | prompt "FSP version" |
Lee Leahy | 31f5c13 | 2016-09-28 17:28:00 -0700 | [diff] [blame] | 49 | default FSP_VERSION_2_0 |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 50 | |
| 51 | config FSP_VERSION_1_1 |
| 52 | bool "FSP 1.1" |
| 53 | select CREATE_BOARD_CHECKLIST |
Lee Leahy | 5e808cb | 2016-05-28 14:58:57 -0700 | [diff] [blame] | 54 | select PLATFORM_USES_FSP1_1 |
Lee Leahy | 77051e0 | 2016-07-25 07:18:13 -0700 | [diff] [blame] | 55 | # select ADD_FSP_RAW_BIN |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 56 | help |
| 57 | Use FSP 1_1 binary |
| 58 | config FSP_VERSION_2_0 |
| 59 | bool "FSP 2.0" |
Lee Leahy | 77051e0 | 2016-07-25 07:18:13 -0700 | [diff] [blame] | 60 | select PLATFORM_USES_FSP2_0 |
Lee Leahy | f26fc0f | 2016-07-25 10:14:07 -0700 | [diff] [blame] | 61 | select POSTCAR_STAGE |
Lee Leahy | e165423 | 2016-09-28 14:10:06 -0700 | [diff] [blame] | 62 | help |
| 63 | Use FSP 2.0 binary |
| 64 | |
| 65 | endchoice |
| 66 | |
| 67 | config FSP_VERSION |
| 68 | string |
| 69 | default "fsp1_1" if FSP_VERSION_1_1 |
| 70 | default "fsp2_0" if FSP_VERSION_2_0 |
| 71 | |
| 72 | choice |
| 73 | prompt "FSP binary type" |
| 74 | default FSP_BUILD_TYPE_DEBUG |
| 75 | |
| 76 | config FSP_BUILD_TYPE_DEBUG |
| 77 | bool "Debug" |
| 78 | help |
| 79 | Use the debug version of FSP |
| 80 | config FSP_BUILD_TYPE_RELEASE |
| 81 | bool "Release" |
| 82 | help |
| 83 | Use the release version of FSP |
| 84 | |
| 85 | endchoice |
| 86 | |
| 87 | config FSP_BUILD_TYPE |
| 88 | string |
| 89 | default "DEBUG" if FSP_BUILD_TYPE_DEBUG |
| 90 | default "RELEASE" if FSP_BUILD_TYPE_RELEASE |
| 91 | |
| 92 | choice |
| 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 | |
| 98 | config 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 |
| 103 | config 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 |
| 108 | config 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 |
| 113 | config 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 | |
| 119 | endchoice |
| 120 | |
| 121 | config 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 | |
| 128 | config 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 Leahy | 5e808cb | 2016-05-28 14:58:57 -0700 | [diff] [blame] | 149 | |
Lee Leahy | 93dd5f7 | 2016-01-26 10:06:42 -0800 | [diff] [blame] | 150 | endif # BOARD_INTEL_QUARK |