| 1 |
## SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
config MISSING_BOARD_RESET |
| 4 |
bool |
| 5 |
help |
| 6 |
Selected by boards that don't provide a do_board_reset() |
| 7 |
implementation. This activates a stub that logs the missing |
| 8 |
board reset and halts execution. |
| 9 |
|
| 10 |
config ROMSTAGE_ADA |
| 11 |
bool |
| 12 |
help |
| 13 |
Selected by features that use Ada code in romstage. |
| 14 |
|
| 15 |
config RAMSTAGE_ADA |
| 16 |
bool |
| 17 |
help |
| 18 |
Selected by features that use Ada code in ramstage. |
| 19 |
|
| 20 |
config RAMSTAGE_LIBHWBASE |
| 21 |
bool |
| 22 |
select RAMSTAGE_ADA |
| 23 |
help |
| 24 |
Selected by features that require `libhwbase` in ramstage. |
| 25 |
|
| 26 |
config ROMSTAGE_LIBHWBASE |
| 27 |
bool |
| 28 |
select ROMSTAGE_ADA |
| 29 |
help |
| 30 |
Selected by features that require `libhwbase` in romstage. |
| 31 |
|
| 32 |
config FLATTENED_DEVICE_TREE |
| 33 |
bool |
| 34 |
help |
| 35 |
Selected by features that require to parse and manipulate a flattened |
| 36 |
devicetree in ramstage. |
| 37 |
|
| 38 |
config HAVE_SPD_IN_CBFS |
| 39 |
bool |
| 40 |
help |
| 41 |
If enabled, add support for adding spd.hex files in cbfs as spd.bin |
| 42 |
and locating it runtime to load SPD. |
| 43 |
|
| 44 |
config DIMM_MAX |
| 45 |
int |
| 46 |
default 4 |
| 47 |
help |
| 48 |
Total number of memory DIMM slots available on motherboard. |
| 49 |
It is multiplication of number of channel to number of DIMMs per |
| 50 |
channel |
| 51 |
|
| 52 |
config MAX_SOCKET |
| 53 |
int |
| 54 |
default 1 |
| 55 |
|
| 56 |
config DIMM_SPD_SIZE |
| 57 |
int |
| 58 |
default 256 |
| 59 |
help |
| 60 |
Total SPD size that will be used for DIMM. |
| 61 |
Ex: DDR3 256, DDR4 512. |
| 62 |
|
| 63 |
config SPD_READ_BY_WORD |
| 64 |
bool |
| 65 |
|
| 66 |
config SPD_CACHE_IN_FMAP |
| 67 |
bool |
| 68 |
default n |
| 69 |
help |
| 70 |
Enables capability to cache DIMM SPDs in a dedicated FMAP region |
| 71 |
to speed loading of SPD data. Currently requires board-level |
| 72 |
romstage implementation to read/write/utilize cached SPD data. |
| 73 |
When the default FMAP is used, will create a region named RW_SPD_CACHE |
| 74 |
to store the cached SPD data. |
| 75 |
|
| 76 |
config SPD_CACHE_FMAP_NAME |
| 77 |
string |
| 78 |
depends on SPD_CACHE_IN_FMAP |
| 79 |
default "RW_SPD_CACHE" |
| 80 |
help |
| 81 |
Name of the FMAP region created in the default FMAP to cache SPD data. |
| 82 |
|
| 83 |
if RAMSTAGE_LIBHWBASE && !ROMSTAGE_LIBHWBASE |
| 84 |
|
| 85 |
config HWBASE_DYNAMIC_MMIO |
| 86 |
def_bool y |
| 87 |
|
| 88 |
endif |
| 89 |
|
| 90 |
if ROMSTAGE_LIBHWBASE |
| 91 |
|
| 92 |
config HWBASE_STATIC_MMIO |
| 93 |
def_bool y |
| 94 |
|
| 95 |
endif |
| 96 |
|
| 97 |
if RAMSTAGE_LIBHWBASE || ROMSTAGE_LIBHWBASE |
| 98 |
|
| 99 |
config HWBASE_DEFAULT_MMCONF |
| 100 |
hex |
| 101 |
default ECAM_MMCONF_BASE_ADDRESS |
| 102 |
|
| 103 |
config HWBASE_DIRECT_PCIDEV |
| 104 |
def_bool y |
| 105 |
|
| 106 |
endif |
| 107 |
|
| 108 |
config NO_FMAP_CACHE |
| 109 |
bool |
| 110 |
help |
| 111 |
If your platform really doesn't want to use an FMAP cache (e.g. due to |
| 112 |
space constraints), you can select this to disable warnings and save |
| 113 |
a bit more code. |
| 114 |
|
| 115 |
config ESPI_DEBUG |
| 116 |
bool |
| 117 |
help |
| 118 |
This option enables eSPI library helper functions for displaying debug |
| 119 |
information. |
| 120 |
|
| 121 |
config NO_CBFS_MCACHE |
| 122 |
bool |
| 123 |
help |
| 124 |
Disables the CBFS metadata cache. This means that your platform does |
| 125 |
not need to provide a CBFS_MCACHE section in memlayout and can save |
| 126 |
the associated CAR/SRAM size. In that case every single CBFS file |
| 127 |
lookup must re-read the same CBFS directory entries from flash to find |
| 128 |
the respective file. |
| 129 |
|
| 130 |
config CBFS_CACHE_ALIGN |
| 131 |
int |
| 132 |
default 8 |
| 133 |
help |
| 134 |
Sets the alignment of the buffers returned by the cbfs_cache. |
| 135 |
|
| 136 |
config CBFS_PRELOAD |
| 137 |
bool |
| 138 |
depends on COOP_MULTITASKING |
| 139 |
help |
| 140 |
When enabled it will be possible to preload CBFS files into the |
| 141 |
cbfs_cache. This helps reduce boot time by loading the files |
| 142 |
in the background before they are actually required. This feature |
| 143 |
depends on the read-only boot_device having a DMA controller to |
| 144 |
perform the background transfer. |
| 145 |
|
| 146 |
config DECOMPRESS_OFAST |
| 147 |
bool |
| 148 |
depends on COMPILER_GCC |
| 149 |
default y |
| 150 |
help |
| 151 |
Compile the decompressing function in -Ofast instead of standard -Os |
| 152 |
|
| 153 |
config PROBE_RAM |
| 154 |
def_bool y if VENDOR_EMULATION |
| 155 |
help |
| 156 |
When enabled it will be possible to detect usable RAM using probe_ram |
| 157 |
function. |
| 158 |
|
| 159 |
menu "Boot Logo Configuration" |
| 160 |
|
| 161 |
config BMP_LOGO |
| 162 |
bool "Enable logo" |
| 163 |
default n |
| 164 |
help |
| 165 |
Uses the FSP to display the boot logo. This method supports a |
| 166 |
BMP file only. The uncompressed size can be up to 1 MB. The logo can |
| 167 |
be compressed based on either `BMP_LOGO_COMPRESS_*` configs (default LZMA). |
| 168 |
|
| 169 |
config HAVE_CUSTOM_BMP_LOGO |
| 170 |
def_bool n |
| 171 |
depends on BMP_LOGO |
| 172 |
|
| 173 |
config HAVE_BMP_LOGO_COMPRESS_LZMA |
| 174 |
bool |
| 175 |
depends on BMP_LOGO |
| 176 |
default y |
| 177 |
|
| 178 |
choice |
| 179 |
prompt "BMP Logo compression" |
| 180 |
depends on BMP_LOGO |
| 181 |
default BMP_LOGO_COMPRESS_LZMA if HAVE_BMP_LOGO_COMPRESS_LZMA |
| 182 |
default BMP_LOGO_COMPRESS_LZ4 |
| 183 |
|
| 184 |
config BMP_LOGO_COMPRESS_LZMA |
| 185 |
bool "Use LZMA compression for BMP logo" |
| 186 |
help |
| 187 |
This option enables the use of LZMA compression for the BMP logo. |
| 188 |
LZMA is a lossless compression algorithm that can significantly reduce |
| 189 |
the size of the logo, without sacrificing quality. |
| 190 |
|
| 191 |
If this option is not enabled, the BMP logo will be uncompressed. |
| 192 |
|
| 193 |
config BMP_LOGO_COMPRESS_LZ4 |
| 194 |
bool "Compress BMP logo using LZ4" |
| 195 |
help |
| 196 |
This option enables compression of the BMP logo using the LZ4 algorithm. |
| 197 |
Although the size reduction is not as efficient as LZMA compression, however, |
| 198 |
it can also make the boot process slightly faster compared to the LZMA. |
| 199 |
|
| 200 |
endchoice |
| 201 |
|
| 202 |
config BMP_LOGO_FILE_NAME |
| 203 |
string "Logo file" |
| 204 |
depends on BMP_LOGO |
| 205 |
default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/logo.bmp" |
| 206 |
|
| 207 |
config HAVE_ESOL_SUPPORT_FOR_LOW_BATTERY_INDICATOR |
| 208 |
bool |
| 209 |
depends on FSP_UGOP_EARLY_SIGN_OF_LIFE || MAINBOARD_HAS_EARLY_LIBGFXINIT |
| 210 |
help |
| 211 |
Enable low-battery indicator support in eSOL. |
| 212 |
|
| 213 |
This option should be selected if the eSOL feature (using either libgfxinit or FSP uGOP) |
| 214 |
supports displaying a low-battery indicator. |
| 215 |
|
| 216 |
Platforms selecting `MAINBOARD_HAS_EARLY_LIBGFXINIT` can default enable this option. |
| 217 |
|
| 218 |
For platforms using FSP uGOP, this option should only be enabled if uGOP has implemented |
| 219 |
the necessary low-battery handling. This allows platforms to control low-battery |
| 220 |
indicator support based on uGOP readiness. |
| 221 |
|
| 222 |
config PLATFORM_HAS_LOW_BATTERY_INDICATOR |
| 223 |
bool "Display low battery indicator" |
| 224 |
depends on BMP_LOGO |
| 225 |
help |
| 226 |
If enabled, this option displays a low battery indicator screen. This screen can be |
| 227 |
used to warn the user that the battery is low and that they should plug in the device. |
| 228 |
|
| 229 |
This option requires that the system have a display and that the BMP_LOGO option is |
| 230 |
enabled. |
| 231 |
|
| 232 |
if PLATFORM_HAS_LOW_BATTERY_INDICATOR |
| 233 |
|
| 234 |
config PLATFORM_LOW_BATTERY_SHUTDOWN_DELAY_SEC |
| 235 |
int |
| 236 |
default 5 |
| 237 |
help |
| 238 |
Delay, in seconds, before system shutdown due to low battery. |
| 239 |
This delay allows the user to observe the low-battery indicator. |
| 240 |
The default value of 5 seconds aligns with standard user experience (UX) practices. |
| 241 |
Platforms may override this value based on specific product requirements. |
| 242 |
|
| 243 |
config PLATFORM_HAS_EARLY_LOW_BATTERY_INDICATOR |
| 244 |
bool "Display low battery indicator in romstage" |
| 245 |
depends on HAVE_ESOL_SUPPORT_FOR_LOW_BATTERY_INDICATOR |
| 246 |
help |
| 247 |
If enabled, this option displays a low battery indicator during romstage (before memory |
| 248 |
is available) in text mode in the firmware and defer the firmware update. This screen |
| 249 |
can be used to warn the user that the battery is low and that they should plug in the |
| 250 |
device. |
| 251 |
|
| 252 |
config PLATFORM_LOW_BATTERY_INDICATOR_LOGO_PATH |
| 253 |
string "Path to low battery logo file" |
| 254 |
default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/low_battery.bmp" |
| 255 |
endif |
| 256 |
|
| 257 |
config SPLASH_SCREEN_FOOTER |
| 258 |
bool "Enable custom footer on firmware splash screen" |
| 259 |
depends on BMP_LOGO |
| 260 |
help |
| 261 |
Enable this option to display a custom footer image or logo on the |
| 262 |
firmware splash screen during the boot process. This provides an |
| 263 |
additional branding opportunity for device manufacturers, allowing |
| 264 |
them to display a logo or other graphic at the bottom of the |
| 265 |
splash screen, complementing the main OEM splash image. |
| 266 |
|
| 267 |
config SPLASH_SCREEN_FOOTER_LOGO_PATH |
| 268 |
string "Path to splash screen footer logo file" |
| 269 |
depends on SPLASH_SCREEN_FOOTER |
| 270 |
default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/logo.bmp" |
| 271 |
|
| 272 |
endmenu |
| 273 |
|
| 274 |
config HAVE_EARLY_POWEROFF_SUPPORT |
| 275 |
bool |
| 276 |
help |
| 277 |
Enable platform-specific early power off support. |
| 278 |
|
| 279 |
This option should be selected if the platform requires special handling |
| 280 |
to power off the system before memory initialization. This is often |
| 281 |
necessary on Intel platforms, as directly powering off before memory |
| 282 |
initialization is typically not supported by the chipset. |
| 283 |
|
| 284 |
Selecting this option indicates that the platform implements the |
| 285 |
`platform_do_early_poweroff()` function, which performs the |
| 286 |
necessary hardware operations to initiate an early power off sequence. |
| 287 |
This might involve configuring hardware registers, sending commands to |
| 288 |
power management controllers, or other platform-specific operations. |