zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1 | /* $NoKeywords:$ */ |
| 2 | /** |
| 3 | * @file |
| 4 | * |
| 5 | * Install of build options for a combination of package type, processor, and features. |
| 6 | * |
| 7 | * This file generates the defaults tables for the all platform solution |
| 8 | * combinations. The documented build options are imported from a user |
| 9 | * controlled file for processing. |
| 10 | * |
| 11 | * @xrefitem bom "File Content Label" "Release Content" |
| 12 | * @e project: AGESA |
| 13 | * @e sub-project: Core |
| 14 | * @e \$Revision: 65065 $ @e \$Date: 2012-02-07 01:26:53 -0600 (Tue, 07 Feb 2012) $ |
| 15 | */ |
| 16 | /***************************************************************************** |
| 17 | * |
Siyuan Wang | 641f00c | 2013-06-08 11:50:55 +0800 | [diff] [blame] | 18 | * Copyright (c) 2008 - 2012, Advanced Micro Devices, Inc. |
| 19 | * All rights reserved. |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 20 | * |
Siyuan Wang | 641f00c | 2013-06-08 11:50:55 +0800 | [diff] [blame] | 21 | * Redistribution and use in source and binary forms, with or without |
| 22 | * modification, are permitted provided that the following conditions are met: |
| 23 | * * Redistributions of source code must retain the above copyright |
| 24 | * notice, this list of conditions and the following disclaimer. |
| 25 | * * Redistributions in binary form must reproduce the above copyright |
| 26 | * notice, this list of conditions and the following disclaimer in the |
| 27 | * documentation and/or other materials provided with the distribution. |
| 28 | * * Neither the name of Advanced Micro Devices, Inc. nor the names of |
| 29 | * its contributors may be used to endorse or promote products derived |
| 30 | * from this software without specific prior written permission. |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 31 | * |
Siyuan Wang | 641f00c | 2013-06-08 11:50:55 +0800 | [diff] [blame] | 32 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 33 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 34 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 35 | * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY |
| 36 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 37 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 38 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 39 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 40 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 41 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 42 | * |
| 43 | ***************************************************************************/ |
| 44 | |
| 45 | /***************************************************************************** |
| 46 | * |
| 47 | * Start processing the user options: First, set default settings |
| 48 | * |
| 49 | ****************************************************************************/ |
| 50 | |
Arthur Heymans | 8d3640d | 2022-05-16 12:27:36 +0200 | [diff] [blame^] | 51 | CONST AMD_MODULE_HEADER mCpuModuleID = { |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 52 | //ModuleHeaderSignature |
| 53 | // Remove 'DOM$' as temp solution before update BinUtil.exe , |
| 54 | Int32FromChar ('0', '0', '0', '0'), |
| 55 | //ModuleIdentifier[8] |
| 56 | AGESA_ID, |
| 57 | //ModuleVersion[12] |
| 58 | AGESA_VERSION_STRING, |
| 59 | //ModuleDispatcher |
| 60 | NULL,//(VOID *)(UINT64)((MODULE_ENTRY)AmdAgesaDispatcher), |
| 61 | //NextBlock |
| 62 | NULL |
| 63 | }; |
| 64 | |
Angel Pons | 7ee8e7f | 2020-05-21 15:24:42 +0200 | [diff] [blame] | 65 | /* The default fixed MTRR values to be set after memory initialization */ |
| 66 | static const AP_MTRR_SETTINGS ROMDATA TrinityApMtrrSettingsList[] = |
| 67 | { |
| 68 | { AMD_AP_MTRR_FIX64k_00000, 0x1E1E1E1E1E1E1E1E }, |
| 69 | { AMD_AP_MTRR_FIX16k_80000, 0x1E1E1E1E1E1E1E1E }, |
| 70 | { AMD_AP_MTRR_FIX16k_A0000, 0x0000000000000000 }, |
| 71 | { AMD_AP_MTRR_FIX4k_C0000, 0x0000000000000000 }, |
| 72 | { AMD_AP_MTRR_FIX4k_C8000, 0x0000000000000000 }, |
| 73 | { AMD_AP_MTRR_FIX4k_D0000, 0x0000000000000000 }, |
| 74 | { AMD_AP_MTRR_FIX4k_D8000, 0x0000000000000000 }, |
| 75 | { AMD_AP_MTRR_FIX4k_E0000, 0x1818181818181818 }, |
| 76 | { AMD_AP_MTRR_FIX4k_E8000, 0x1818181818181818 }, |
| 77 | { AMD_AP_MTRR_FIX4k_F0000, 0x1818181818181818 }, |
| 78 | { AMD_AP_MTRR_FIX4k_F8000, 0x1818181818181818 }, |
| 79 | { CPU_LIST_TERMINAL }, |
| 80 | }; |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 81 | |
| 82 | /* Process solution defined socket / family installations |
| 83 | * |
| 84 | * As part of the release package for each image, define the options below to select the |
| 85 | * AGESA processor support included in that image. |
| 86 | */ |
| 87 | |
| 88 | /* Default sockets to off */ |
| 89 | #define OPTION_G34_SOCKET_SUPPORT FALSE |
| 90 | #define OPTION_C32_SOCKET_SUPPORT FALSE |
| 91 | #define OPTION_S1G3_SOCKET_SUPPORT FALSE |
| 92 | #define OPTION_S1G4_SOCKET_SUPPORT FALSE |
| 93 | #define OPTION_ASB2_SOCKET_SUPPORT FALSE |
| 94 | #define OPTION_FS1_SOCKET_SUPPORT FALSE |
| 95 | #define OPTION_FM1_SOCKET_SUPPORT FALSE |
| 96 | #define OPTION_FM2_SOCKET_SUPPORT FALSE |
| 97 | #define OPTION_FP1_SOCKET_SUPPORT FALSE |
| 98 | #define OPTION_FP2_SOCKET_SUPPORT FALSE |
| 99 | #define OPTION_FT1_SOCKET_SUPPORT FALSE |
| 100 | #define OPTION_AM3_SOCKET_SUPPORT FALSE |
| 101 | |
| 102 | /* Default families to off */ |
| 103 | #define OPTION_FAMILY10H FALSE |
| 104 | #define OPTION_FAMILY12H FALSE |
| 105 | #define OPTION_FAMILY14H FALSE |
| 106 | #define OPTION_FAMILY15H FALSE |
| 107 | #define OPTION_FAMILY15H_MODEL_0x FALSE |
| 108 | #define OPTION_FAMILY15H_MODEL_1x FALSE |
| 109 | |
| 110 | |
| 111 | /* Enable the appropriate socket support */ |
| 112 | #ifdef INSTALL_G34_SOCKET_SUPPORT |
| 113 | #if INSTALL_G34_SOCKET_SUPPORT == TRUE |
| 114 | #undef OPTION_G34_SOCKET_SUPPORT |
| 115 | #define OPTION_G34_SOCKET_SUPPORT TRUE |
| 116 | #endif |
| 117 | #endif |
| 118 | |
| 119 | #ifdef INSTALL_C32_SOCKET_SUPPORT |
| 120 | #if INSTALL_C32_SOCKET_SUPPORT == TRUE |
| 121 | #undef OPTION_C32_SOCKET_SUPPORT |
| 122 | #define OPTION_C32_SOCKET_SUPPORT TRUE |
| 123 | #endif |
| 124 | #endif |
| 125 | |
| 126 | #ifdef INSTALL_S1G3_SOCKET_SUPPORT |
| 127 | #if INSTALL_S1G3_SOCKET_SUPPORT == TRUE |
| 128 | #undef OPTION_S1G3_SOCKET_SUPPORT |
| 129 | #define OPTION_S1G3_SOCKET_SUPPORT TRUE |
| 130 | #endif |
| 131 | #endif |
| 132 | |
| 133 | #ifdef INSTALL_S1G4_SOCKET_SUPPORT |
| 134 | #if INSTALL_S1G4_SOCKET_SUPPORT == TRUE |
| 135 | #undef OPTION_S1G4_SOCKET_SUPPORT |
| 136 | #define OPTION_S1G4_SOCKET_SUPPORT TRUE |
| 137 | #endif |
| 138 | #endif |
| 139 | |
| 140 | #ifdef INSTALL_ASB2_SOCKET_SUPPORT |
| 141 | #if INSTALL_ASB2_SOCKET_SUPPORT == TRUE |
| 142 | #undef OPTION_ASB2_SOCKET_SUPPORT |
| 143 | #define OPTION_ASB2_SOCKET_SUPPORT TRUE |
| 144 | #endif |
| 145 | #endif |
| 146 | |
| 147 | #ifdef INSTALL_FS1_SOCKET_SUPPORT |
| 148 | #if INSTALL_FS1_SOCKET_SUPPORT == TRUE |
| 149 | #undef OPTION_FS1_SOCKET_SUPPORT |
| 150 | #define OPTION_FS1_SOCKET_SUPPORT TRUE |
| 151 | #endif |
| 152 | #endif |
| 153 | |
| 154 | |
| 155 | #ifdef INSTALL_FM1_SOCKET_SUPPORT |
| 156 | #if INSTALL_FM1_SOCKET_SUPPORT == TRUE |
| 157 | #undef OPTION_FM1_SOCKET_SUPPORT |
| 158 | #define OPTION_FM1_SOCKET_SUPPORT TRUE |
| 159 | #endif |
| 160 | #endif |
| 161 | |
| 162 | #ifdef INSTALL_FM2_SOCKET_SUPPORT |
| 163 | #if INSTALL_FM2_SOCKET_SUPPORT == TRUE |
| 164 | #undef OPTION_FM2_SOCKET_SUPPORT |
| 165 | #define OPTION_FM2_SOCKET_SUPPORT TRUE |
| 166 | #endif |
| 167 | #endif |
| 168 | |
| 169 | |
| 170 | #ifdef INSTALL_FP1_SOCKET_SUPPORT |
| 171 | #if INSTALL_FP1_SOCKET_SUPPORT == TRUE |
| 172 | #undef OPTION_FP1_SOCKET_SUPPORT |
| 173 | #define OPTION_FP1_SOCKET_SUPPORT TRUE |
| 174 | #endif |
| 175 | #endif |
| 176 | |
| 177 | #ifdef INSTALL_FP2_SOCKET_SUPPORT |
| 178 | #if INSTALL_FP2_SOCKET_SUPPORT == TRUE |
| 179 | #undef OPTION_FP2_SOCKET_SUPPORT |
| 180 | #define OPTION_FP2_SOCKET_SUPPORT TRUE |
| 181 | #endif |
| 182 | #endif |
| 183 | |
| 184 | #ifdef INSTALL_FT1_SOCKET_SUPPORT |
| 185 | #if INSTALL_FT1_SOCKET_SUPPORT == TRUE |
| 186 | #undef OPTION_FT1_SOCKET_SUPPORT |
| 187 | #define OPTION_FT1_SOCKET_SUPPORT TRUE |
| 188 | #endif |
| 189 | #endif |
| 190 | |
| 191 | |
| 192 | #ifdef INSTALL_AM3_SOCKET_SUPPORT |
| 193 | #if INSTALL_AM3_SOCKET_SUPPORT == TRUE |
| 194 | #undef OPTION_AM3_SOCKET_SUPPORT |
| 195 | #define OPTION_AM3_SOCKET_SUPPORT TRUE |
| 196 | #endif |
| 197 | #endif |
| 198 | |
| 199 | |
| 200 | /* Enable the appropriate family support */ |
| 201 | // F10 is supported in G34, C32, S1g4, ASB2, S1g3, & AM3 |
| 202 | #ifdef INSTALL_FAMILY_10_SUPPORT |
| 203 | #if INSTALL_FAMILY_10_SUPPORT == TRUE |
| 204 | #undef OPTION_FAMILY10H |
| 205 | #define OPTION_FAMILY10H TRUE |
| 206 | #endif |
| 207 | #endif |
| 208 | |
| 209 | // F12 is supported in FP1, FS1, & FM1 |
| 210 | #ifdef INSTALL_FAMILY_12_SUPPORT |
| 211 | #if INSTALL_FAMILY_12_SUPPORT == TRUE |
| 212 | #undef OPTION_FAMILY12H |
| 213 | #define OPTION_FAMILY12H TRUE |
| 214 | #endif |
| 215 | #endif |
| 216 | |
| 217 | #ifdef INSTALL_FAMILY_14_SUPPORT |
| 218 | #if INSTALL_FAMILY_14_SUPPORT == TRUE |
| 219 | #undef OPTION_FAMILY14H |
| 220 | #define OPTION_FAMILY14H TRUE |
| 221 | #endif |
| 222 | #endif |
| 223 | |
| 224 | // F15_0x is supported in G34, C32, & AM3 |
| 225 | #ifdef INSTALL_FAMILY_15_MODEL_0x_SUPPORT |
| 226 | #if INSTALL_FAMILY_15_MODEL_0x_SUPPORT == TRUE |
| 227 | #undef OPTION_FAMILY15H |
| 228 | #define OPTION_FAMILY15H TRUE |
| 229 | #undef OPTION_FAMILY15H_MODEL_0x |
| 230 | #define OPTION_FAMILY15H_MODEL_0x TRUE |
| 231 | #endif |
| 232 | #endif |
| 233 | |
| 234 | // F15_1x is supported in FS1r2, FM2, & FP2 |
| 235 | #ifdef INSTALL_FAMILY_15_MODEL_1x_SUPPORT |
| 236 | #if INSTALL_FAMILY_15_MODEL_1x_SUPPORT == TRUE |
| 237 | #undef OPTION_FAMILY15H |
| 238 | #define OPTION_FAMILY15H TRUE |
| 239 | #undef OPTION_FAMILY15H_MODEL_1x |
| 240 | #define OPTION_FAMILY15H_MODEL_1x TRUE |
| 241 | #endif |
| 242 | #endif |
| 243 | |
| 244 | |
| 245 | /* Turn off families not required by socket designations */ |
| 246 | #if (OPTION_FAMILY10H == TRUE) |
| 247 | #if (OPTION_G34_SOCKET_SUPPORT == FALSE) && (OPTION_C32_SOCKET_SUPPORT == FALSE) && (OPTION_S1G3_SOCKET_SUPPORT == FALSE) && (OPTION_S1G4_SOCKET_SUPPORT == FALSE) && (OPTION_ASB2_SOCKET_SUPPORT == FALSE) && (OPTION_AM3_SOCKET_SUPPORT == FALSE) |
| 248 | #undef OPTION_FAMILY10H |
| 249 | #define OPTION_FAMILY10H FALSE |
| 250 | #endif |
| 251 | #endif |
| 252 | |
| 253 | #if (OPTION_FAMILY12H == TRUE) |
| 254 | #if (OPTION_FS1_SOCKET_SUPPORT == FALSE) && (OPTION_FM1_SOCKET_SUPPORT == FALSE) && (OPTION_FP1_SOCKET_SUPPORT == FALSE) |
| 255 | #undef OPTION_FAMILY12H |
| 256 | #define OPTION_FAMILY12H FALSE |
| 257 | #endif |
| 258 | #endif |
| 259 | |
| 260 | #if (OPTION_FAMILY14H == TRUE) |
| 261 | #if (OPTION_FT1_SOCKET_SUPPORT == FALSE) |
| 262 | #undef OPTION_FAMILY14H |
| 263 | #define OPTION_FAMILY14H FALSE |
| 264 | #endif |
| 265 | #endif |
| 266 | |
| 267 | #if (OPTION_FAMILY15H_MODEL_0x == TRUE) |
| 268 | #if (OPTION_G34_SOCKET_SUPPORT == FALSE) && (OPTION_C32_SOCKET_SUPPORT == FALSE) && (OPTION_AM3_SOCKET_SUPPORT == FALSE) |
| 269 | #undef OPTION_FAMILY15H_MODEL_0x |
| 270 | #define OPTION_FAMILY15H_MODEL_0x FALSE |
| 271 | #endif |
| 272 | #endif |
| 273 | |
| 274 | #if (OPTION_FAMILY15H_MODEL_1x == TRUE) |
| 275 | #if (OPTION_FS1_SOCKET_SUPPORT == FALSE) && (OPTION_FM2_SOCKET_SUPPORT == FALSE) && (OPTION_FP2_SOCKET_SUPPORT == FALSE) |
| 276 | #undef OPTION_FAMILY15H_MODEL_1x |
| 277 | #define OPTION_FAMILY15H_MODEL_1x FALSE |
| 278 | #endif |
| 279 | #endif |
| 280 | |
| 281 | |
| 282 | #if (OPTION_FAMILY15H_MODEL_0x == FALSE) && (OPTION_FAMILY15H_MODEL_1x == FALSE) |
| 283 | #undef OPTION_FAMILY15H |
| 284 | #define OPTION_FAMILY15H FALSE |
| 285 | #endif |
| 286 | |
| 287 | |
| 288 | /* Check for invalid combinations of socket/family */ |
| 289 | #if (OPTION_G34_SOCKET_SUPPORT == TRUE) |
| 290 | #if (OPTION_FAMILY10H == FALSE) && (OPTION_FAMILY15H_MODEL_0x == FALSE) |
| 291 | #error No G34 supported families included in the build |
| 292 | #endif |
| 293 | #endif |
| 294 | |
| 295 | #if (OPTION_C32_SOCKET_SUPPORT == TRUE) |
| 296 | #if (OPTION_FAMILY10H == FALSE) && (OPTION_FAMILY15H_MODEL_0x == FALSE) |
| 297 | #error No C32 supported families included in the build |
| 298 | #endif |
| 299 | #endif |
| 300 | |
| 301 | #if (OPTION_S1G3_SOCKET_SUPPORT == TRUE) |
| 302 | #if (OPTION_FAMILY10H == FALSE) |
| 303 | #error No S1G3 supported families included in the build |
| 304 | #endif |
| 305 | #endif |
| 306 | |
| 307 | #if (OPTION_S1G4_SOCKET_SUPPORT == TRUE) |
| 308 | #if (OPTION_FAMILY10H == FALSE) |
| 309 | #error No S1G4 supported families included in the build |
| 310 | #endif |
| 311 | #endif |
| 312 | |
| 313 | #if (OPTION_ASB2_SOCKET_SUPPORT == TRUE) |
| 314 | #if (OPTION_FAMILY10H == FALSE) |
| 315 | #error No ASB2 supported families included in the build |
| 316 | #endif |
| 317 | #endif |
| 318 | |
| 319 | #if (OPTION_FS1_SOCKET_SUPPORT == TRUE) |
| 320 | #if (OPTION_FAMILY12H == FALSE) && (OPTION_FAMILY15H_MODEL_1x == FALSE) |
| 321 | #error No FS1 supported families included in the build |
| 322 | #endif |
| 323 | #endif |
| 324 | |
| 325 | |
| 326 | #if (OPTION_FM1_SOCKET_SUPPORT == TRUE) |
| 327 | #if (OPTION_FAMILY12H == FALSE) |
| 328 | #error No FM1 supported families included in the build |
| 329 | #endif |
| 330 | #endif |
| 331 | |
| 332 | #if (OPTION_FM2_SOCKET_SUPPORT == TRUE) |
| 333 | #if (OPTION_FAMILY15H_MODEL_1x == FALSE) |
| 334 | #error No FM2 supported families included in the build |
| 335 | #endif |
| 336 | #endif |
| 337 | |
| 338 | |
| 339 | #if (OPTION_FP1_SOCKET_SUPPORT == TRUE) |
| 340 | #if (OPTION_FAMILY12H == FALSE) |
| 341 | #error No FP1 supported families included in the build |
| 342 | #endif |
| 343 | #endif |
| 344 | |
| 345 | #if (OPTION_FP2_SOCKET_SUPPORT == TRUE) |
| 346 | #if (OPTION_FAMILY15H_MODEL_1x == FALSE) |
| 347 | #error No FP2 supported families included in the build |
| 348 | #endif |
| 349 | #endif |
| 350 | |
| 351 | #if (OPTION_FT1_SOCKET_SUPPORT == TRUE) |
| 352 | #if (OPTION_FAMILY14H == FALSE) |
| 353 | #error No FT1 supported families included in the build |
| 354 | #endif |
| 355 | #endif |
| 356 | |
| 357 | |
| 358 | #if (OPTION_AM3_SOCKET_SUPPORT == TRUE) |
| 359 | #if (OPTION_FAMILY10H == FALSE) && (OPTION_FAMILY15H_MODEL_0x == FALSE) |
| 360 | #error No AM3 supported families included in the build |
| 361 | #endif |
| 362 | #endif |
| 363 | |
| 364 | |
| 365 | /* Process AGESA private data |
| 366 | * |
| 367 | * Turn on appropriate CPU models and memory controllers, |
| 368 | * as well as some other memory controls. |
| 369 | */ |
| 370 | |
| 371 | /* Default all models to off */ |
| 372 | #define OPTION_FAMILY10H_BL FALSE |
| 373 | #define OPTION_FAMILY10H_DA FALSE |
| 374 | #define OPTION_FAMILY10H_HY FALSE |
| 375 | #define OPTION_FAMILY10H_PH FALSE |
| 376 | #define OPTION_FAMILY10H_RB FALSE |
| 377 | #define OPTION_FAMILY12H_LN FALSE |
| 378 | #define OPTION_FAMILY14H_ON FALSE |
| 379 | #define OPTION_FAMILY15H_OR FALSE |
| 380 | #define OPTION_FAMILY15H_TN FALSE |
| 381 | #define OPTION_FAMILY15H_UNKNOWN FALSE |
| 382 | |
| 383 | /* Default all memory controllers to off */ |
| 384 | #define OPTION_MEMCTLR_DR FALSE |
| 385 | #define OPTION_MEMCTLR_HY FALSE |
| 386 | #define OPTION_MEMCTLR_OR FALSE |
| 387 | #define OPTION_MEMCTLR_C32 FALSE |
| 388 | #define OPTION_MEMCTLR_DA FALSE |
| 389 | #define OPTION_MEMCTLR_LN FALSE |
| 390 | #define OPTION_MEMCTLR_ON FALSE |
| 391 | #define OPTION_MEMCTLR_Ni FALSE |
| 392 | #define OPTION_MEMCTLR_PH FALSE |
| 393 | #define OPTION_MEMCTLR_RB FALSE |
| 394 | #define OPTION_MEMCTLR_TN FALSE |
| 395 | |
| 396 | /* Default all memory controls to off */ |
| 397 | #define OPTION_HW_WRITE_LEV_TRAINING FALSE |
| 398 | #define OPTION_SW_WRITE_LEV_TRAINING FALSE |
| 399 | #define OPTION_CONTINOUS_PATTERN_GENERATION FALSE |
| 400 | #define OPTION_HW_DQS_REC_EN_TRAINING FALSE |
| 401 | #define OPTION_NON_OPT_SW_DQS_REC_EN_TRAINING FALSE |
| 402 | #define OPTION_OPT_SW_DQS_REC_EN_TRAINING FALSE |
| 403 | #define OPTION_NON_OPT_SW_RD_WR_POS_TRAINING FALSE |
| 404 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING FALSE |
| 405 | #define OPTION_MAX_RD_LAT_TRAINING FALSE |
| 406 | #define OPTION_HW_DRAM_INIT FALSE |
| 407 | #define OPTION_SW_DRAM_INIT FALSE |
| 408 | #define OPTION_S3_MEM_SUPPORT FALSE |
| 409 | #define OPTION_ADDR_TO_CS_TRANSLATOR FALSE |
| 410 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING FALSE |
| 411 | #define OPTION_PRE_MEM_INIT FALSE |
| 412 | #define OPTION_POST_MEM_INIT FALSE |
| 413 | |
| 414 | /* Defaults for public user options */ |
| 415 | #define OPTION_UDIMMS FALSE |
| 416 | #define OPTION_RDIMMS FALSE |
| 417 | #define OPTION_SODIMMS FALSE |
| 418 | #define OPTION_LRDIMMS FALSE |
| 419 | #define OPTION_DDR2 FALSE |
| 420 | #define OPTION_DDR3 FALSE |
| 421 | #define OPTION_ECC FALSE |
| 422 | #define OPTION_BANK_INTERLEAVE FALSE |
| 423 | #define OPTION_DCT_INTERLEAVE FALSE |
| 424 | #define OPTION_NODE_INTERLEAVE FALSE |
| 425 | #define OPTION_PARALLEL_TRAINING FALSE |
| 426 | #define OPTION_ONLINE_SPARE FALSE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 427 | #define OPTION_ONLINE_SPARE_CAPABLE FALSE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 428 | #define OPTION_MEM_RESTORE FALSE |
| 429 | #define OPTION_DIMM_EXCLUDE FALSE |
| 430 | |
| 431 | /* Default all CPU controls to off */ |
| 432 | #define OPTION_MULTISOCKET FALSE |
| 433 | #define OPTION_SRAT FALSE |
| 434 | #define OPTION_SLIT FALSE |
| 435 | #define OPTION_HT_ASSIST FALSE |
| 436 | #define OPTION_ATM_MODE FALSE |
| 437 | #define OPTION_CPU_CORELEVLING FALSE |
| 438 | #define OPTION_MSG_BASED_C1E FALSE |
| 439 | #define OPTION_CPU_CFOH FALSE |
| 440 | #define OPTION_C6_STATE FALSE |
| 441 | #define OPTION_IO_CSTATE FALSE |
| 442 | #define OPTION_CPB FALSE |
| 443 | #define OPTION_CPU_LOW_PWR_PSTATE_FOR_PROCHOT FALSE |
| 444 | #define OPTION_CPU_PSTATE_HPC_MODE FALSE |
| 445 | #define OPTION_CPU_APM FALSE |
| 446 | #define OPTION_CPU_PSI FALSE |
| 447 | #define OPTION_CPU_HTC FALSE |
| 448 | #define OPTION_S3SCRIPT FALSE |
| 449 | #define OPTION_GFX_RECOVERY FALSE |
| 450 | |
| 451 | /* Default FCH controls to off */ |
| 452 | #define FCH_SUPPORT FALSE |
| 453 | |
| 454 | /* Enable all private controls based on socket/family enables */ |
| 455 | #if (OPTION_G34_SOCKET_SUPPORT == TRUE) |
| 456 | #if (OPTION_FAMILY10H == TRUE) |
| 457 | #undef OPTION_FAMILY10H_HY |
| 458 | #define OPTION_FAMILY10H_HY TRUE |
| 459 | #undef OPTION_MEMCTLR_HY |
| 460 | #define OPTION_MEMCTLR_HY TRUE |
| 461 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 462 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 463 | #undef OPTION_OPT_SW_DQS_REC_EN_TRAINING |
| 464 | #define OPTION_OPT_SW_DQS_REC_EN_TRAINING TRUE |
| 465 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 466 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 467 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 468 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 469 | #undef OPTION_SW_DRAM_INIT |
| 470 | #define OPTION_SW_DRAM_INIT TRUE |
| 471 | #undef OPTION_S3_MEM_SUPPORT |
| 472 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 473 | #undef OPTION_MULTISOCKET |
| 474 | #define OPTION_MULTISOCKET TRUE |
| 475 | #undef OPTION_SRAT |
| 476 | #define OPTION_SRAT TRUE |
| 477 | #undef OPTION_SLIT |
| 478 | #define OPTION_SLIT TRUE |
| 479 | #undef OPTION_HT_ASSIST |
| 480 | #define OPTION_HT_ASSIST TRUE |
| 481 | #undef OPTION_CPU_CORELEVLING |
| 482 | #define OPTION_CPU_CORELEVLING TRUE |
| 483 | #undef OPTION_MSG_BASED_C1E |
| 484 | #define OPTION_MSG_BASED_C1E TRUE |
| 485 | #undef OPTION_CPU_CFOH |
| 486 | #define OPTION_CPU_CFOH TRUE |
| 487 | #undef OPTION_UDIMMS |
| 488 | #define OPTION_UDIMMS TRUE |
| 489 | #undef OPTION_RDIMMS |
| 490 | #define OPTION_RDIMMS TRUE |
| 491 | #undef OPTION_SODIMMS |
| 492 | #define OPTION_SODIMMS TRUE |
| 493 | #undef OPTION_DDR3 |
| 494 | #define OPTION_DDR3 TRUE |
| 495 | #undef OPTION_ECC |
| 496 | #define OPTION_ECC TRUE |
| 497 | #undef OPTION_BANK_INTERLEAVE |
| 498 | #define OPTION_BANK_INTERLEAVE TRUE |
| 499 | #undef OPTION_DCT_INTERLEAVE |
| 500 | #define OPTION_DCT_INTERLEAVE TRUE |
| 501 | #undef OPTION_NODE_INTERLEAVE |
| 502 | #define OPTION_NODE_INTERLEAVE TRUE |
| 503 | #undef OPTION_PARALLEL_TRAINING |
| 504 | #define OPTION_PARALLEL_TRAINING TRUE |
| 505 | #undef OPTION_MEM_RESTORE |
| 506 | #define OPTION_MEM_RESTORE TRUE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 507 | #undef OPTION_ONLINE_SPARE_CAPABLE |
| 508 | #define OPTION_ONLINE_SPARE_CAPABLE TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 509 | #undef OPTION_DIMM_EXCLUDE |
| 510 | #define OPTION_DIMM_EXCLUDE TRUE |
| 511 | #endif |
| 512 | #if (OPTION_FAMILY15H_MODEL_0x == TRUE) |
| 513 | #undef OPTION_FAMILY15H_OR |
| 514 | #define OPTION_FAMILY15H_OR TRUE |
| 515 | #undef OPTION_FAMILY15H_UNKNOWN |
| 516 | #define OPTION_FAMILY15H_UNKNOWN TRUE |
| 517 | #undef OPTION_MEMCTLR_OR |
| 518 | #define OPTION_MEMCTLR_OR TRUE |
| 519 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 520 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 521 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 522 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 523 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 524 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 525 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 526 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING TRUE |
| 527 | #undef OPTION_OPT_SW_DQS_REC_EN_TRAINING |
| 528 | #define OPTION_OPT_SW_DQS_REC_EN_TRAINING TRUE |
| 529 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 530 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 531 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 532 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 533 | #undef OPTION_SW_DRAM_INIT |
| 534 | #define OPTION_SW_DRAM_INIT TRUE |
| 535 | #undef OPTION_S3_MEM_SUPPORT |
| 536 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 537 | #undef OPTION_MULTISOCKET |
| 538 | #define OPTION_MULTISOCKET TRUE |
| 539 | #undef OPTION_C6_STATE |
| 540 | #define OPTION_C6_STATE TRUE |
| 541 | #undef OPTION_IO_CSTATE |
| 542 | #define OPTION_IO_CSTATE TRUE |
| 543 | #undef OPTION_CPB |
| 544 | #define OPTION_CPB TRUE |
| 545 | #undef OPTION_CPU_LOW_PWR_PSTATE_FOR_PROCHOT |
| 546 | #define OPTION_CPU_LOW_PWR_PSTATE_FOR_PROCHOT TRUE |
| 547 | #undef OPTION_CPU_APM |
| 548 | #define OPTION_CPU_APM TRUE |
| 549 | #undef OPTION_SRAT |
| 550 | #define OPTION_SRAT TRUE |
| 551 | #undef OPTION_SLIT |
| 552 | #define OPTION_SLIT TRUE |
| 553 | #undef OPTION_HT_ASSIST |
| 554 | #define OPTION_HT_ASSIST TRUE |
| 555 | #undef OPTION_ATM_MODE |
| 556 | #define OPTION_ATM_MODE TRUE |
| 557 | #undef OPTION_CPU_CORELEVLING |
| 558 | #define OPTION_CPU_CORELEVLING TRUE |
| 559 | #undef OPTION_MSG_BASED_C1E |
| 560 | #define OPTION_MSG_BASED_C1E TRUE |
| 561 | #undef OPTION_CPU_CFOH |
| 562 | #define OPTION_CPU_CFOH TRUE |
| 563 | #undef OPTION_UDIMMS |
| 564 | #define OPTION_UDIMMS TRUE |
| 565 | #undef OPTION_RDIMMS |
| 566 | #define OPTION_RDIMMS TRUE |
| 567 | #undef OPTION_SODIMMS |
| 568 | #define OPTION_SODIMMS TRUE |
| 569 | #undef OPTION_LRDIMMS |
| 570 | #define OPTION_LRDIMMS TRUE |
| 571 | #undef OPTION_DDR3 |
| 572 | #define OPTION_DDR3 TRUE |
| 573 | #undef OPTION_ECC |
| 574 | #define OPTION_ECC TRUE |
| 575 | #undef OPTION_BANK_INTERLEAVE |
| 576 | #define OPTION_BANK_INTERLEAVE TRUE |
| 577 | #undef OPTION_DCT_INTERLEAVE |
| 578 | #define OPTION_DCT_INTERLEAVE TRUE |
| 579 | #undef OPTION_NODE_INTERLEAVE |
| 580 | #define OPTION_NODE_INTERLEAVE TRUE |
| 581 | #undef OPTION_MEM_RESTORE |
| 582 | #define OPTION_MEM_RESTORE TRUE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 583 | #undef OPTION_ONLINE_SPARE_CAPABLE |
| 584 | #define OPTION_ONLINE_SPARE_CAPABLE TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 585 | #undef OPTION_DIMM_EXCLUDE |
| 586 | #define OPTION_DIMM_EXCLUDE TRUE |
| 587 | #endif |
| 588 | #endif |
| 589 | |
| 590 | #if (OPTION_C32_SOCKET_SUPPORT == TRUE) |
| 591 | #if (OPTION_FAMILY10H == TRUE) |
| 592 | #undef OPTION_FAMILY10H_HY |
| 593 | #define OPTION_FAMILY10H_HY TRUE |
| 594 | #undef OPTION_MEMCTLR_C32 |
| 595 | #define OPTION_MEMCTLR_C32 TRUE |
| 596 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 597 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 598 | #undef OPTION_OPT_SW_DQS_REC_EN_TRAINING |
| 599 | #define OPTION_OPT_SW_DQS_REC_EN_TRAINING TRUE |
| 600 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 601 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 602 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 603 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 604 | #undef OPTION_SW_DRAM_INIT |
| 605 | #define OPTION_SW_DRAM_INIT TRUE |
| 606 | #undef OPTION_S3_MEM_SUPPORT |
| 607 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 608 | #undef OPTION_ADDR_TO_CS_TRANSLATOR |
| 609 | #define OPTION_ADDR_TO_CS_TRANSLATOR FALSE |
| 610 | #undef OPTION_MULTISOCKET |
| 611 | #define OPTION_MULTISOCKET TRUE |
| 612 | #undef OPTION_SRAT |
| 613 | #define OPTION_SRAT TRUE |
| 614 | #undef OPTION_SLIT |
| 615 | #define OPTION_SLIT TRUE |
| 616 | #undef OPTION_HT_ASSIST |
| 617 | #define OPTION_HT_ASSIST TRUE |
| 618 | #undef OPTION_CPU_CORELEVLING |
| 619 | #define OPTION_CPU_CORELEVLING TRUE |
| 620 | #undef OPTION_MSG_BASED_C1E |
| 621 | #define OPTION_MSG_BASED_C1E TRUE |
| 622 | #undef OPTION_CPU_CFOH |
| 623 | #define OPTION_CPU_CFOH TRUE |
| 624 | #undef OPTION_UDIMMS |
| 625 | #define OPTION_UDIMMS TRUE |
| 626 | #undef OPTION_RDIMMS |
| 627 | #define OPTION_RDIMMS TRUE |
| 628 | #undef OPTION_SODIMMS |
| 629 | #define OPTION_SODIMMS TRUE |
| 630 | #undef OPTION_DDR3 |
| 631 | #define OPTION_DDR3 TRUE |
| 632 | #undef OPTION_ECC |
| 633 | #define OPTION_ECC TRUE |
| 634 | #undef OPTION_BANK_INTERLEAVE |
| 635 | #define OPTION_BANK_INTERLEAVE TRUE |
| 636 | #undef OPTION_DCT_INTERLEAVE |
| 637 | #define OPTION_DCT_INTERLEAVE TRUE |
| 638 | #undef OPTION_NODE_INTERLEAVE |
| 639 | #define OPTION_NODE_INTERLEAVE TRUE |
| 640 | #undef OPTION_PARALLEL_TRAINING |
| 641 | #define OPTION_PARALLEL_TRAINING TRUE |
| 642 | #undef OPTION_MEM_RESTORE |
| 643 | #define OPTION_MEM_RESTORE TRUE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 644 | #undef OPTION_ONLINE_SPARE_CAPABLE |
| 645 | #define OPTION_ONLINE_SPARE_CAPABLE TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 646 | #undef OPTION_DIMM_EXCLUDE |
| 647 | #define OPTION_DIMM_EXCLUDE TRUE |
| 648 | #endif |
| 649 | #if (OPTION_FAMILY15H_MODEL_0x == TRUE) |
| 650 | #undef OPTION_FAMILY15H_OR |
| 651 | #define OPTION_FAMILY15H_OR TRUE |
| 652 | #undef OPTION_FAMILY15H_UNKNOWN |
| 653 | #define OPTION_FAMILY15H_UNKNOWN TRUE |
| 654 | #undef OPTION_MEMCTLR_OR |
| 655 | #define OPTION_MEMCTLR_OR TRUE |
| 656 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 657 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 658 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 659 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 660 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 661 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 662 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 663 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING TRUE |
| 664 | #undef OPTION_OPT_SW_DQS_REC_EN_TRAINING |
| 665 | #define OPTION_OPT_SW_DQS_REC_EN_TRAINING TRUE |
| 666 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 667 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 668 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 669 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 670 | #undef OPTION_SW_DRAM_INIT |
| 671 | #define OPTION_SW_DRAM_INIT TRUE |
| 672 | #undef OPTION_S3_MEM_SUPPORT |
| 673 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 674 | #undef OPTION_ADDR_TO_CS_TRANSLATOR |
| 675 | #define OPTION_ADDR_TO_CS_TRANSLATOR TRUE |
| 676 | #undef OPTION_MULTISOCKET |
| 677 | #define OPTION_MULTISOCKET TRUE |
| 678 | #undef OPTION_C6_STATE |
| 679 | #define OPTION_C6_STATE TRUE |
| 680 | #undef OPTION_IO_CSTATE |
| 681 | #define OPTION_IO_CSTATE TRUE |
| 682 | #undef OPTION_CPB |
| 683 | #define OPTION_CPB TRUE |
| 684 | #undef OPTION_CPU_LOW_PWR_PSTATE_FOR_PROCHOT |
| 685 | #define OPTION_CPU_LOW_PWR_PSTATE_FOR_PROCHOT TRUE |
| 686 | #undef OPTION_CPU_APM |
| 687 | #define OPTION_CPU_APM TRUE |
| 688 | #undef OPTION_SRAT |
| 689 | #define OPTION_SRAT TRUE |
| 690 | #undef OPTION_SLIT |
| 691 | #define OPTION_SLIT TRUE |
| 692 | #undef OPTION_HT_ASSIST |
| 693 | #define OPTION_HT_ASSIST TRUE |
| 694 | #undef OPTION_ATM_MODE |
| 695 | #define OPTION_ATM_MODE TRUE |
| 696 | #undef OPTION_CPU_CORELEVLING |
| 697 | #define OPTION_CPU_CORELEVLING TRUE |
| 698 | #undef OPTION_MSG_BASED_C1E |
| 699 | #define OPTION_MSG_BASED_C1E TRUE |
| 700 | #undef OPTION_CPU_CFOH |
| 701 | #define OPTION_CPU_CFOH TRUE |
| 702 | #undef OPTION_UDIMMS |
| 703 | #define OPTION_UDIMMS TRUE |
| 704 | #undef OPTION_RDIMMS |
| 705 | #define OPTION_RDIMMS TRUE |
| 706 | #undef OPTION_SODIMMS |
| 707 | #define OPTION_SODIMMS TRUE |
| 708 | #undef OPTION_LRDIMMS |
| 709 | #define OPTION_LRDIMMS TRUE |
| 710 | #undef OPTION_DDR3 |
| 711 | #define OPTION_DDR3 TRUE |
| 712 | #undef OPTION_ECC |
| 713 | #define OPTION_ECC TRUE |
| 714 | #undef OPTION_BANK_INTERLEAVE |
| 715 | #define OPTION_BANK_INTERLEAVE TRUE |
| 716 | #undef OPTION_DCT_INTERLEAVE |
| 717 | #define OPTION_DCT_INTERLEAVE TRUE |
| 718 | #undef OPTION_NODE_INTERLEAVE |
| 719 | #define OPTION_NODE_INTERLEAVE TRUE |
| 720 | #undef OPTION_MEM_RESTORE |
| 721 | #define OPTION_MEM_RESTORE TRUE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 722 | #undef OPTION_ONLINE_SPARE_CAPABLE |
| 723 | #define OPTION_ONLINE_SPARE_CAPABLE TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 724 | #undef OPTION_DIMM_EXCLUDE |
| 725 | #define OPTION_DIMM_EXCLUDE TRUE |
| 726 | #endif |
| 727 | #endif |
| 728 | |
| 729 | #if (OPTION_S1G3_SOCKET_SUPPORT == TRUE) |
| 730 | #if (OPTION_FAMILY10H == TRUE) |
| 731 | #undef OPTION_FAMILY10H_BL |
| 732 | #define OPTION_FAMILY10H_BL TRUE |
| 733 | #undef OPTION_FAMILY10H_DA |
| 734 | #define OPTION_FAMILY10H_DA TRUE |
| 735 | #undef OPTION_MEMCTLR_DA |
| 736 | #define OPTION_MEMCTLR_DA TRUE |
| 737 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 738 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 739 | #undef OPTION_OPT_SW_DQS_REC_EN_TRAINING |
| 740 | #define OPTION_OPT_SW_DQS_REC_EN_TRAINING TRUE |
| 741 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 742 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 743 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 744 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 745 | #undef OPTION_SW_DRAM_INIT |
| 746 | #define OPTION_SW_DRAM_INIT TRUE |
| 747 | #undef OPTION_S3_MEM_SUPPORT |
| 748 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 749 | #undef OPTION_CPU_CORELEVLING |
| 750 | #define OPTION_CPU_CORELEVLING TRUE |
| 751 | #undef OPTION_CPU_CFOH |
| 752 | #define OPTION_CPU_CFOH TRUE |
| 753 | #undef OPTION_UDIMMS |
| 754 | #define OPTION_UDIMMS TRUE |
| 755 | #undef OPTION_SODIMMS |
| 756 | #define OPTION_SODIMMS TRUE |
| 757 | #undef OPTION_DDR3 |
| 758 | #define OPTION_DDR3 TRUE |
| 759 | #undef OPTION_ECC |
| 760 | #define OPTION_ECC TRUE |
| 761 | #undef OPTION_BANK_INTERLEAVE |
| 762 | #define OPTION_BANK_INTERLEAVE TRUE |
| 763 | #undef OPTION_DCT_INTERLEAVE |
| 764 | #define OPTION_DCT_INTERLEAVE TRUE |
| 765 | #undef OPTION_NODE_INTERLEAVE |
| 766 | #define OPTION_NODE_INTERLEAVE TRUE |
| 767 | #undef OPTION_PARALLEL_TRAINING |
| 768 | #define OPTION_PARALLEL_TRAINING TRUE |
| 769 | #undef OPTION_MEM_RESTORE |
| 770 | #define OPTION_MEM_RESTORE TRUE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 771 | #undef OPTION_ONLINE_SPARE_CAPABLE |
| 772 | #define OPTION_ONLINE_SPARE_CAPABLE TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 773 | #undef OPTION_DIMM_EXCLUDE |
| 774 | #define OPTION_DIMM_EXCLUDE TRUE |
| 775 | #endif |
| 776 | #endif |
| 777 | |
| 778 | #if (OPTION_S1G4_SOCKET_SUPPORT == TRUE) |
| 779 | #if (OPTION_FAMILY10H == TRUE) |
| 780 | #undef OPTION_FAMILY10H_BL |
| 781 | #define OPTION_FAMILY10H_BL TRUE |
| 782 | #undef OPTION_FAMILY10H_DA |
| 783 | #define OPTION_FAMILY10H_DA TRUE |
| 784 | #undef OPTION_MEMCTLR_DA |
| 785 | #define OPTION_MEMCTLR_DA TRUE |
| 786 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 787 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 788 | #undef OPTION_OPT_SW_DQS_REC_EN_TRAINING |
| 789 | #define OPTION_OPT_SW_DQS_REC_EN_TRAINING TRUE |
| 790 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 791 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 792 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 793 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 794 | #undef OPTION_SW_DRAM_INIT |
| 795 | #define OPTION_SW_DRAM_INIT TRUE |
| 796 | #undef OPTION_S3_MEM_SUPPORT |
| 797 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 798 | #undef OPTION_CPU_CORELEVLING |
| 799 | #define OPTION_CPU_CORELEVLING TRUE |
| 800 | #undef OPTION_CPU_CFOH |
| 801 | #define OPTION_CPU_CFOH TRUE |
| 802 | #undef OPTION_UDIMMS |
| 803 | #define OPTION_UDIMMS TRUE |
| 804 | #undef OPTION_SODIMMS |
| 805 | #define OPTION_SODIMMS TRUE |
| 806 | #undef OPTION_DDR3 |
| 807 | #define OPTION_DDR3 TRUE |
| 808 | #undef OPTION_ECC |
| 809 | #define OPTION_ECC TRUE |
| 810 | #undef OPTION_BANK_INTERLEAVE |
| 811 | #define OPTION_BANK_INTERLEAVE TRUE |
| 812 | #undef OPTION_DCT_INTERLEAVE |
| 813 | #define OPTION_DCT_INTERLEAVE TRUE |
| 814 | #undef OPTION_NODE_INTERLEAVE |
| 815 | #define OPTION_NODE_INTERLEAVE TRUE |
| 816 | #undef OPTION_MEM_RESTORE |
| 817 | #define OPTION_MEM_RESTORE TRUE |
| 818 | #undef OPTION_DIMM_EXCLUDE |
| 819 | #define OPTION_DIMM_EXCLUDE TRUE |
| 820 | #endif |
| 821 | #endif |
| 822 | |
| 823 | #if (OPTION_ASB2_SOCKET_SUPPORT == TRUE) |
| 824 | #if (OPTION_FAMILY10H == TRUE) |
| 825 | #undef OPTION_FAMILY10H_BL |
| 826 | #define OPTION_FAMILY10H_BL TRUE |
| 827 | #undef OPTION_FAMILY10H_DA |
| 828 | #define OPTION_FAMILY10H_DA TRUE |
| 829 | #undef OPTION_MEMCTLR_Ni |
| 830 | #define OPTION_MEMCTLR_Ni TRUE |
| 831 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 832 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 833 | #undef OPTION_OPT_SW_DQS_REC_EN_TRAINING |
| 834 | #define OPTION_OPT_SW_DQS_REC_EN_TRAINING TRUE |
| 835 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 836 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 837 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 838 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 839 | #undef OPTION_SW_DRAM_INIT |
| 840 | #define OPTION_SW_DRAM_INIT TRUE |
| 841 | #undef OPTION_S3_MEM_SUPPORT |
| 842 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 843 | #undef OPTION_CPU_CORELEVLING |
| 844 | #define OPTION_CPU_CORELEVLING TRUE |
| 845 | #undef OPTION_CPU_CFOH |
| 846 | #define OPTION_CPU_CFOH TRUE |
| 847 | #undef OPTION_UDIMMS |
| 848 | #define OPTION_UDIMMS TRUE |
| 849 | #undef OPTION_SODIMMS |
| 850 | #define OPTION_SODIMMS TRUE |
| 851 | #undef OPTION_DDR3 |
| 852 | #define OPTION_DDR3 TRUE |
| 853 | #undef OPTION_ECC |
| 854 | #define OPTION_ECC TRUE |
| 855 | #undef OPTION_BANK_INTERLEAVE |
| 856 | #define OPTION_BANK_INTERLEAVE TRUE |
| 857 | #undef OPTION_DCT_INTERLEAVE |
| 858 | #define OPTION_DCT_INTERLEAVE TRUE |
| 859 | #undef OPTION_NODE_INTERLEAVE |
| 860 | #define OPTION_NODE_INTERLEAVE TRUE |
| 861 | #undef OPTION_MEM_RESTORE |
| 862 | #define OPTION_MEM_RESTORE TRUE |
| 863 | #undef OPTION_DIMM_EXCLUDE |
| 864 | #define OPTION_DIMM_EXCLUDE TRUE |
| 865 | #endif |
| 866 | #endif |
| 867 | |
| 868 | #if (OPTION_FS1_SOCKET_SUPPORT == TRUE) |
| 869 | #if (OPTION_FAMILY12H == TRUE) |
| 870 | #undef OPTION_FAMILY12H_LN |
| 871 | #define OPTION_FAMILY12H_LN TRUE |
| 872 | #undef OPTION_MEMCTLR_LN |
| 873 | #define OPTION_MEMCTLR_LN TRUE |
| 874 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 875 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 876 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 877 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 878 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 879 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 880 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 881 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING TRUE |
| 882 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 883 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 884 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 885 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 886 | #undef OPTION_SW_DRAM_INIT |
| 887 | #define OPTION_SW_DRAM_INIT TRUE |
| 888 | #undef OPTION_S3_MEM_SUPPORT |
| 889 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 890 | #undef OPTION_GFX_RECOVERY |
| 891 | #define OPTION_GFX_RECOVERY TRUE |
| 892 | #undef OPTION_C6_STATE |
| 893 | #define OPTION_C6_STATE TRUE |
| 894 | #undef OPTION_IO_CSTATE |
| 895 | #define OPTION_IO_CSTATE TRUE |
| 896 | #undef OPTION_CPB |
| 897 | #define OPTION_CPB TRUE |
| 898 | #undef OPTION_S3SCRIPT |
| 899 | #define OPTION_S3SCRIPT TRUE |
| 900 | #undef OPTION_UDIMMS |
| 901 | #define OPTION_UDIMMS TRUE |
| 902 | #undef OPTION_SODIMMS |
| 903 | #define OPTION_SODIMMS TRUE |
| 904 | #undef OPTION_DDR3 |
| 905 | #define OPTION_DDR3 TRUE |
| 906 | #undef OPTION_BANK_INTERLEAVE |
| 907 | #define OPTION_BANK_INTERLEAVE TRUE |
| 908 | #undef OPTION_DCT_INTERLEAVE |
| 909 | #define OPTION_DCT_INTERLEAVE TRUE |
| 910 | #undef OPTION_MEM_RESTORE |
| 911 | #define OPTION_MEM_RESTORE TRUE |
| 912 | #undef OPTION_DIMM_EXCLUDE |
| 913 | #define OPTION_DIMM_EXCLUDE TRUE |
| 914 | #endif |
| 915 | #if (OPTION_FAMILY15H_MODEL_1x == TRUE) |
| 916 | #undef FCH_SUPPORT |
| 917 | #define FCH_SUPPORT TRUE |
| 918 | #undef OPTION_FAMILY15H_TN |
| 919 | #define OPTION_FAMILY15H_TN TRUE |
| 920 | #undef OPTION_MEMCTLR_TN |
| 921 | #define OPTION_MEMCTLR_TN TRUE |
| 922 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 923 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 924 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 925 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 926 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 927 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 928 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 929 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING TRUE |
| 930 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 931 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 932 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 933 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 934 | #undef OPTION_SW_DRAM_INIT |
| 935 | #define OPTION_SW_DRAM_INIT TRUE |
| 936 | #undef OPTION_S3_MEM_SUPPORT |
| 937 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 938 | #undef OPTION_GFX_RECOVERY |
| 939 | #define OPTION_GFX_RECOVERY TRUE |
| 940 | #undef OPTION_CPU_CORELEVLING |
| 941 | #define OPTION_CPU_CORELEVLING TRUE |
| 942 | #undef OPTION_C6_STATE |
| 943 | #define OPTION_C6_STATE TRUE |
| 944 | #undef OPTION_IO_CSTATE |
| 945 | #define OPTION_IO_CSTATE TRUE |
| 946 | #undef OPTION_CPB |
| 947 | #define OPTION_CPB TRUE |
| 948 | #undef OPTION_CPU_PSI |
| 949 | #define OPTION_CPU_PSI TRUE |
| 950 | #undef OPTION_CPU_HTC |
| 951 | #define OPTION_CPU_HTC TRUE |
| 952 | #undef OPTION_S3SCRIPT |
| 953 | #define OPTION_S3SCRIPT TRUE |
| 954 | #undef OPTION_CPU_CFOH |
| 955 | #define OPTION_CPU_CFOH TRUE |
| 956 | #undef OPTION_UDIMMS |
| 957 | #define OPTION_UDIMMS TRUE |
| 958 | #undef OPTION_SODIMMS |
| 959 | #define OPTION_SODIMMS TRUE |
| 960 | #undef OPTION_DDR3 |
| 961 | #define OPTION_DDR3 TRUE |
| 962 | #undef OPTION_BANK_INTERLEAVE |
| 963 | #define OPTION_BANK_INTERLEAVE TRUE |
| 964 | #undef OPTION_DCT_INTERLEAVE |
| 965 | #define OPTION_DCT_INTERLEAVE TRUE |
| 966 | #undef OPTION_MEM_RESTORE |
| 967 | #define OPTION_MEM_RESTORE TRUE |
| 968 | #undef OPTION_DIMM_EXCLUDE |
| 969 | #define OPTION_DIMM_EXCLUDE TRUE |
| 970 | #endif |
| 971 | #endif |
| 972 | |
| 973 | #if (OPTION_FM1_SOCKET_SUPPORT == TRUE) |
| 974 | #if (OPTION_FAMILY12H == TRUE) |
| 975 | #undef OPTION_FAMILY12H_LN |
| 976 | #define OPTION_FAMILY12H_LN TRUE |
| 977 | #undef OPTION_MEMCTLR_LN |
| 978 | #define OPTION_MEMCTLR_LN TRUE |
| 979 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 980 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 981 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 982 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 983 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 984 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 985 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 986 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING TRUE |
| 987 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 988 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 989 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 990 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 991 | #undef OPTION_SW_DRAM_INIT |
| 992 | #define OPTION_SW_DRAM_INIT TRUE |
| 993 | #undef OPTION_S3_MEM_SUPPORT |
| 994 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 995 | #undef OPTION_GFX_RECOVERY |
| 996 | #define OPTION_GFX_RECOVERY TRUE |
| 997 | #undef OPTION_C6_STATE |
| 998 | #define OPTION_C6_STATE TRUE |
| 999 | #undef OPTION_IO_CSTATE |
| 1000 | #define OPTION_IO_CSTATE TRUE |
| 1001 | #undef OPTION_CPB |
| 1002 | #define OPTION_CPB TRUE |
| 1003 | #undef OPTION_S3SCRIPT |
| 1004 | #define OPTION_S3SCRIPT TRUE |
| 1005 | #undef OPTION_UDIMMS |
| 1006 | #define OPTION_UDIMMS TRUE |
| 1007 | #undef OPTION_SODIMMS |
| 1008 | #define OPTION_SODIMMS TRUE |
| 1009 | #undef OPTION_DDR3 |
| 1010 | #define OPTION_DDR3 TRUE |
| 1011 | #undef OPTION_BANK_INTERLEAVE |
| 1012 | #define OPTION_BANK_INTERLEAVE TRUE |
| 1013 | #undef OPTION_DCT_INTERLEAVE |
| 1014 | #define OPTION_DCT_INTERLEAVE TRUE |
| 1015 | #undef OPTION_MEM_RESTORE |
| 1016 | #define OPTION_MEM_RESTORE TRUE |
| 1017 | #undef OPTION_DIMM_EXCLUDE |
| 1018 | #define OPTION_DIMM_EXCLUDE TRUE |
| 1019 | #endif |
| 1020 | #endif |
| 1021 | |
| 1022 | #if (OPTION_FM2_SOCKET_SUPPORT == TRUE) |
| 1023 | #if (OPTION_FAMILY15H_MODEL_1x == TRUE) |
| 1024 | #undef FCH_SUPPORT |
| 1025 | #define FCH_SUPPORT TRUE |
| 1026 | #undef OPTION_FAMILY15H_TN |
| 1027 | #define OPTION_FAMILY15H_TN TRUE |
| 1028 | #undef OPTION_MEMCTLR_TN |
| 1029 | #define OPTION_MEMCTLR_TN TRUE |
| 1030 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 1031 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 1032 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 1033 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 1034 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 1035 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 1036 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 1037 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING TRUE |
| 1038 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 1039 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 1040 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 1041 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 1042 | #undef OPTION_SW_DRAM_INIT |
| 1043 | #define OPTION_SW_DRAM_INIT TRUE |
| 1044 | #undef OPTION_S3_MEM_SUPPORT |
| 1045 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 1046 | #undef OPTION_GFX_RECOVERY |
| 1047 | #define OPTION_GFX_RECOVERY TRUE |
| 1048 | #undef OPTION_CPU_HTC |
| 1049 | #define OPTION_CPU_HTC TRUE |
| 1050 | #undef OPTION_CPU_CORELEVLING |
| 1051 | #define OPTION_CPU_CORELEVLING TRUE |
| 1052 | #undef OPTION_C6_STATE |
| 1053 | #define OPTION_C6_STATE TRUE |
| 1054 | #undef OPTION_IO_CSTATE |
| 1055 | #define OPTION_IO_CSTATE TRUE |
| 1056 | #undef OPTION_CPB |
| 1057 | #define OPTION_CPB TRUE |
| 1058 | #undef OPTION_CPU_PSI |
| 1059 | #define OPTION_CPU_PSI TRUE |
| 1060 | #undef OPTION_S3SCRIPT |
| 1061 | #define OPTION_S3SCRIPT TRUE |
| 1062 | #undef OPTION_CPU_CFOH |
| 1063 | #define OPTION_CPU_CFOH TRUE |
| 1064 | #undef OPTION_UDIMMS |
| 1065 | #define OPTION_UDIMMS TRUE |
| 1066 | #undef OPTION_SODIMMS |
| 1067 | #define OPTION_SODIMMS TRUE |
| 1068 | #undef OPTION_DDR3 |
| 1069 | #define OPTION_DDR3 TRUE |
| 1070 | #undef OPTION_BANK_INTERLEAVE |
| 1071 | #define OPTION_BANK_INTERLEAVE TRUE |
| 1072 | #undef OPTION_DCT_INTERLEAVE |
| 1073 | #define OPTION_DCT_INTERLEAVE TRUE |
| 1074 | #undef OPTION_MEM_RESTORE |
| 1075 | #define OPTION_MEM_RESTORE TRUE |
| 1076 | #undef OPTION_DIMM_EXCLUDE |
| 1077 | #define OPTION_DIMM_EXCLUDE TRUE |
| 1078 | #endif |
| 1079 | #endif |
| 1080 | |
| 1081 | #if (OPTION_FP1_SOCKET_SUPPORT == TRUE) |
| 1082 | #if (OPTION_FAMILY12H == TRUE) |
| 1083 | #undef OPTION_FAMILY12H_LN |
| 1084 | #define OPTION_FAMILY12H_LN TRUE |
| 1085 | #undef OPTION_MEMCTLR_LN |
| 1086 | #define OPTION_MEMCTLR_LN TRUE |
| 1087 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 1088 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 1089 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 1090 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 1091 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 1092 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 1093 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 1094 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING TRUE |
| 1095 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 1096 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 1097 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 1098 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 1099 | #undef OPTION_SW_DRAM_INIT |
| 1100 | #define OPTION_SW_DRAM_INIT TRUE |
| 1101 | #undef OPTION_S3_MEM_SUPPORT |
| 1102 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 1103 | #undef OPTION_ADDR_TO_CS_TRANSLATOR |
| 1104 | #define OPTION_ADDR_TO_CS_TRANSLATOR TRUE |
| 1105 | #undef OPTION_GFX_RECOVERY |
| 1106 | #define OPTION_GFX_RECOVERY TRUE |
| 1107 | #undef OPTION_C6_STATE |
| 1108 | #define OPTION_C6_STATE TRUE |
| 1109 | #undef OPTION_IO_CSTATE |
| 1110 | #define OPTION_IO_CSTATE TRUE |
| 1111 | #undef OPTION_CPB |
| 1112 | #define OPTION_CPB TRUE |
| 1113 | #undef OPTION_S3SCRIPT |
| 1114 | #define OPTION_S3SCRIPT TRUE |
| 1115 | #undef OPTION_UDIMMS |
| 1116 | #define OPTION_UDIMMS TRUE |
| 1117 | #undef OPTION_SODIMMS |
| 1118 | #define OPTION_SODIMMS TRUE |
| 1119 | #undef OPTION_DDR3 |
| 1120 | #define OPTION_DDR3 TRUE |
| 1121 | #undef OPTION_BANK_INTERLEAVE |
| 1122 | #define OPTION_BANK_INTERLEAVE TRUE |
| 1123 | #undef OPTION_DCT_INTERLEAVE |
| 1124 | #define OPTION_DCT_INTERLEAVE TRUE |
| 1125 | #undef OPTION_MEM_RESTORE |
| 1126 | #define OPTION_MEM_RESTORE TRUE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1127 | #undef OPTION_ONLINE_SPARE_CAPABLE |
| 1128 | #define OPTION_ONLINE_SPARE_CAPABLE TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1129 | #undef OPTION_DIMM_EXCLUDE |
| 1130 | #define OPTION_DIMM_EXCLUDE TRUE |
| 1131 | #endif |
| 1132 | #endif |
| 1133 | |
| 1134 | #if (OPTION_FP2_SOCKET_SUPPORT == TRUE) |
| 1135 | #if (OPTION_FAMILY15H_MODEL_1x == TRUE) |
| 1136 | #undef FCH_SUPPORT |
| 1137 | #define FCH_SUPPORT TRUE |
| 1138 | #undef OPTION_FAMILY15H_TN |
| 1139 | #define OPTION_FAMILY15H_TN TRUE |
| 1140 | #undef OPTION_MEMCTLR_TN |
| 1141 | #define OPTION_MEMCTLR_TN TRUE |
| 1142 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 1143 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 1144 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 1145 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 1146 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 1147 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 1148 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 1149 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING TRUE |
| 1150 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 1151 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 1152 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 1153 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 1154 | #undef OPTION_SW_DRAM_INIT |
| 1155 | #define OPTION_SW_DRAM_INIT TRUE |
| 1156 | #undef OPTION_S3_MEM_SUPPORT |
| 1157 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 1158 | #undef OPTION_ADDR_TO_CS_TRANSLATOR |
| 1159 | #define OPTION_ADDR_TO_CS_TRANSLATOR TRUE |
| 1160 | #undef OPTION_GFX_RECOVERY |
| 1161 | #define OPTION_GFX_RECOVERY TRUE |
| 1162 | #undef OPTION_CPU_HTC |
| 1163 | #define OPTION_CPU_HTC TRUE |
| 1164 | #undef OPTION_CPU_CORELEVLING |
| 1165 | #define OPTION_CPU_CORELEVLING TRUE |
| 1166 | #undef OPTION_C6_STATE |
| 1167 | #define OPTION_C6_STATE TRUE |
| 1168 | #undef OPTION_IO_CSTATE |
| 1169 | #define OPTION_IO_CSTATE TRUE |
| 1170 | #undef OPTION_CPB |
| 1171 | #define OPTION_CPB TRUE |
| 1172 | #undef OPTION_CPU_PSI |
| 1173 | #define OPTION_CPU_PSI TRUE |
| 1174 | #undef OPTION_S3SCRIPT |
| 1175 | #define OPTION_S3SCRIPT TRUE |
| 1176 | #undef OPTION_CPU_CFOH |
| 1177 | #define OPTION_CPU_CFOH TRUE |
| 1178 | #undef OPTION_UDIMMS |
| 1179 | #define OPTION_UDIMMS TRUE |
| 1180 | #undef OPTION_SODIMMS |
| 1181 | #define OPTION_SODIMMS TRUE |
| 1182 | #undef OPTION_DDR3 |
| 1183 | #define OPTION_DDR3 TRUE |
| 1184 | #undef OPTION_BANK_INTERLEAVE |
| 1185 | #define OPTION_BANK_INTERLEAVE TRUE |
| 1186 | #undef OPTION_DCT_INTERLEAVE |
| 1187 | #define OPTION_DCT_INTERLEAVE TRUE |
| 1188 | #undef OPTION_MEM_RESTORE |
| 1189 | #define OPTION_MEM_RESTORE TRUE |
| 1190 | #undef OPTION_DIMM_EXCLUDE |
| 1191 | #define OPTION_DIMM_EXCLUDE TRUE |
| 1192 | #endif |
| 1193 | #endif |
| 1194 | |
| 1195 | #if (OPTION_FT1_SOCKET_SUPPORT == TRUE) |
| 1196 | #if (OPTION_FT1_T_SOCKET_SUPPORT == TRUE) |
| 1197 | #undef FCH_SUPPORT |
| 1198 | #define FCH_SUPPORT TRUE |
| 1199 | #endif |
| 1200 | #if (OPTION_FAMILY14H == TRUE) |
| 1201 | #if (OPTION_FAMILY14H_FCH == TRUE) |
| 1202 | #undef FCH_SUPPORT |
| 1203 | #define FCH_SUPPORT TRUE |
| 1204 | #endif |
| 1205 | #undef OPTION_FAMILY14H_ON |
| 1206 | #define OPTION_FAMILY14H_ON TRUE |
| 1207 | #undef OPTION_MEMCTLR_ON |
| 1208 | #define OPTION_MEMCTLR_ON TRUE |
| 1209 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 1210 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 1211 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 1212 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 1213 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 1214 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 1215 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 1216 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 1217 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 1218 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING FALSE |
| 1219 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 1220 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 1221 | #undef OPTION_SW_DRAM_INIT |
| 1222 | #define OPTION_SW_DRAM_INIT TRUE |
| 1223 | #undef OPTION_S3_MEM_SUPPORT |
| 1224 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 1225 | #undef OPTION_GFX_RECOVERY |
| 1226 | #define OPTION_GFX_RECOVERY TRUE |
| 1227 | #undef OPTION_C6_STATE |
| 1228 | #define OPTION_C6_STATE TRUE |
| 1229 | #undef OPTION_IO_CSTATE |
| 1230 | #define OPTION_IO_CSTATE TRUE |
| 1231 | #undef OPTION_CPB |
| 1232 | #define OPTION_CPB TRUE |
| 1233 | #undef OPTION_S3SCRIPT |
| 1234 | #define OPTION_S3SCRIPT TRUE |
| 1235 | #undef OPTION_UDIMMS |
| 1236 | #define OPTION_UDIMMS TRUE |
| 1237 | #undef OPTION_SODIMMS |
| 1238 | #define OPTION_SODIMMS TRUE |
| 1239 | #undef OPTION_DDR3 |
| 1240 | #define OPTION_DDR3 TRUE |
| 1241 | #undef OPTION_BANK_INTERLEAVE |
| 1242 | #define OPTION_BANK_INTERLEAVE TRUE |
| 1243 | #undef OPTION_MEM_RESTORE |
| 1244 | #define OPTION_MEM_RESTORE TRUE |
| 1245 | #undef OPTION_DIMM_EXCLUDE |
| 1246 | #define OPTION_DIMM_EXCLUDE TRUE |
| 1247 | #endif |
| 1248 | #endif |
| 1249 | |
| 1250 | |
| 1251 | #if (OPTION_AM3_SOCKET_SUPPORT == TRUE) |
| 1252 | #if (OPTION_FAMILY10H == TRUE) |
| 1253 | #undef OPTION_FAMILY10H_BL |
| 1254 | #define OPTION_FAMILY10H_BL TRUE |
| 1255 | #undef OPTION_FAMILY10H_DA |
| 1256 | #define OPTION_FAMILY10H_DA TRUE |
| 1257 | #undef OPTION_FAMILY10H_PH |
| 1258 | #define OPTION_FAMILY10H_PH TRUE |
| 1259 | #undef OPTION_FAMILY10H_RB |
| 1260 | #define OPTION_FAMILY10H_RB TRUE |
| 1261 | #undef OPTION_MEMCTLR_RB |
| 1262 | #define OPTION_MEMCTLR_RB TRUE |
| 1263 | #undef OPTION_MEMCTLR_DA |
| 1264 | #define OPTION_MEMCTLR_DA TRUE |
| 1265 | #undef OPTION_MEMCTLR_PH |
| 1266 | #define OPTION_MEMCTLR_PH TRUE |
| 1267 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 1268 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 1269 | #undef OPTION_OPT_SW_DQS_REC_EN_TRAINING |
| 1270 | #define OPTION_OPT_SW_DQS_REC_EN_TRAINING TRUE |
| 1271 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 1272 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 1273 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 1274 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 1275 | #undef OPTION_SW_DRAM_INIT |
| 1276 | #define OPTION_SW_DRAM_INIT TRUE |
| 1277 | #undef OPTION_S3_MEM_SUPPORT |
| 1278 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 1279 | #undef OPTION_CPU_CORELEVLING |
| 1280 | #define OPTION_CPU_CORELEVLING TRUE |
| 1281 | #undef OPTION_CPU_CFOH |
| 1282 | #define OPTION_CPU_CFOH TRUE |
| 1283 | #undef OPTION_IO_CSTATE |
| 1284 | #define OPTION_IO_CSTATE TRUE |
| 1285 | #undef OPTION_CPB |
| 1286 | #define OPTION_CPB TRUE |
| 1287 | #undef OPTION_UDIMMS |
| 1288 | #define OPTION_UDIMMS TRUE |
| 1289 | #undef OPTION_SODIMMS |
| 1290 | #define OPTION_SODIMMS TRUE |
| 1291 | #undef OPTION_DDR3 |
| 1292 | #define OPTION_DDR3 TRUE |
| 1293 | #undef OPTION_ECC |
| 1294 | #define OPTION_ECC TRUE |
| 1295 | #undef OPTION_BANK_INTERLEAVE |
| 1296 | #define OPTION_BANK_INTERLEAVE TRUE |
| 1297 | #undef OPTION_DCT_INTERLEAVE |
| 1298 | #define OPTION_DCT_INTERLEAVE TRUE |
| 1299 | #undef OPTION_NODE_INTERLEAVE |
| 1300 | #define OPTION_NODE_INTERLEAVE TRUE |
| 1301 | #undef OPTION_PARALLEL_TRAINING |
| 1302 | #define OPTION_PARALLEL_TRAINING TRUE |
| 1303 | #undef OPTION_MEM_RESTORE |
| 1304 | #define OPTION_MEM_RESTORE TRUE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1305 | #undef OPTION_ONLINE_SPARE_CAPABLE |
| 1306 | #define OPTION_ONLINE_SPARE_CAPABLE TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1307 | #undef OPTION_DIMM_EXCLUDE |
| 1308 | #define OPTION_DIMM_EXCLUDE TRUE |
| 1309 | #endif |
| 1310 | #if (OPTION_FAMILY15H_MODEL_0x == TRUE) |
| 1311 | #undef OPTION_FAMILY15H_OR |
| 1312 | #define OPTION_FAMILY15H_OR TRUE |
| 1313 | #undef OPTION_FAMILY15H_UNKNOWN |
| 1314 | #define OPTION_FAMILY15H_UNKNOWN TRUE |
| 1315 | #undef OPTION_MEMCTLR_OR |
| 1316 | #define OPTION_MEMCTLR_OR TRUE |
| 1317 | #undef OPTION_HW_WRITE_LEV_TRAINING |
| 1318 | #define OPTION_HW_WRITE_LEV_TRAINING TRUE |
| 1319 | #undef OPTION_CONTINOUS_PATTERN_GENERATION |
| 1320 | #define OPTION_CONTINOUS_PATTERN_GENERATION TRUE |
| 1321 | #undef OPTION_HW_DQS_REC_EN_TRAINING |
| 1322 | #define OPTION_HW_DQS_REC_EN_TRAINING TRUE |
| 1323 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 1324 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING TRUE |
| 1325 | #undef OPTION_OPT_SW_RD_WR_POS_TRAINING |
| 1326 | #define OPTION_OPT_SW_RD_WR_POS_TRAINING TRUE |
| 1327 | #undef OPTION_MAX_RD_LAT_TRAINING |
| 1328 | #define OPTION_MAX_RD_LAT_TRAINING TRUE |
| 1329 | #undef OPTION_SW_DRAM_INIT |
| 1330 | #define OPTION_SW_DRAM_INIT TRUE |
| 1331 | #undef OPTION_C6_STATE |
| 1332 | #define OPTION_C6_STATE TRUE |
| 1333 | #undef OPTION_IO_CSTATE |
| 1334 | #define OPTION_IO_CSTATE TRUE |
| 1335 | #undef OPTION_CPB |
| 1336 | #define OPTION_CPB TRUE |
| 1337 | #undef OPTION_CPU_APM |
| 1338 | #define OPTION_CPU_APM TRUE |
| 1339 | #undef OPTION_S3_MEM_SUPPORT |
| 1340 | #define OPTION_S3_MEM_SUPPORT TRUE |
| 1341 | #undef OPTION_ADDR_TO_CS_TRANSLATOR |
| 1342 | #define OPTION_ADDR_TO_CS_TRANSLATOR TRUE |
| 1343 | #undef OPTION_ATM_MODE |
| 1344 | #define OPTION_ATM_MODE TRUE |
| 1345 | #undef OPTION_CPU_CORELEVLING |
| 1346 | #define OPTION_CPU_CORELEVLING TRUE |
| 1347 | #undef OPTION_CPU_CFOH |
| 1348 | #define OPTION_CPU_CFOH TRUE |
| 1349 | #undef OPTION_MSG_BASED_C1E |
| 1350 | #define OPTION_MSG_BASED_C1E TRUE |
| 1351 | #undef OPTION_UDIMMS |
| 1352 | #define OPTION_UDIMMS TRUE |
| 1353 | #undef OPTION_RDIMMS |
| 1354 | #define OPTION_RDIMMS TRUE |
| 1355 | #undef OPTION_LRDIMMS |
| 1356 | #define OPTION_LRDIMMS TRUE |
| 1357 | #undef OPTION_SODIMMS |
| 1358 | #define OPTION_SODIMMS TRUE |
| 1359 | #undef OPTION_DDR3 |
| 1360 | #define OPTION_DDR3 TRUE |
| 1361 | #undef OPTION_ECC |
| 1362 | #define OPTION_ECC TRUE |
| 1363 | #undef OPTION_BANK_INTERLEAVE |
| 1364 | #define OPTION_BANK_INTERLEAVE TRUE |
| 1365 | #undef OPTION_DCT_INTERLEAVE |
| 1366 | #define OPTION_DCT_INTERLEAVE TRUE |
| 1367 | #undef OPTION_NODE_INTERLEAVE |
| 1368 | #define OPTION_NODE_INTERLEAVE TRUE |
| 1369 | #undef OPTION_MEM_RESTORE |
| 1370 | #define OPTION_MEM_RESTORE TRUE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1371 | #undef OPTION_ONLINE_SPARE_CAPABLE |
| 1372 | #define OPTION_ONLINE_SPARE_CAPABLE TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1373 | #undef OPTION_DIMM_EXCLUDE |
| 1374 | #define OPTION_DIMM_EXCLUDE TRUE |
| 1375 | #endif |
| 1376 | #endif |
| 1377 | |
| 1378 | |
| 1379 | |
| 1380 | |
| 1381 | #if (OPTION_FAMILY12H == TRUE) || (OPTION_FAMILY14H == TRUE) || (OPTION_FAMILY15H_TN == TRUE) |
| 1382 | #undef GNB_SUPPORT |
| 1383 | #define GNB_SUPPORT TRUE |
| 1384 | #endif |
| 1385 | |
| 1386 | #define OPTION_ACPI_PSTATES TRUE |
| 1387 | #define OPTION_WHEA TRUE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1388 | #define OPTION_DMI FALSE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1389 | #define OPTION_EARLY_SAMPLES FALSE |
| 1390 | #define CFG_ACPI_PSTATES_PPC TRUE |
| 1391 | #define CFG_ACPI_PSTATES_PCT TRUE |
| 1392 | #define CFG_ACPI_PSTATES_PSD TRUE |
| 1393 | #define CFG_ACPI_PSTATES_PSS TRUE |
| 1394 | #define CFG_ACPI_PSTATES_XPSS TRUE |
| 1395 | #define CFG_ACPI_PSTATE_PSD_INDPX FALSE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1396 | #define CFG_VRM_HIGH_SPEED_ENABLE TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1397 | #define CFG_VRM_NB_HIGH_SPEED_ENABLE FALSE |
| 1398 | #define OPTION_ALIB TRUE |
| 1399 | /*--------------------------------------------------------------------------- |
| 1400 | * Processing the options: Second, process the user's selections |
| 1401 | *--------------------------------------------------------------------------*/ |
| 1402 | #ifdef BLDOPT_REMOVE_DDR3_SUPPORT |
| 1403 | #if BLDOPT_REMOVE_DDR3_SUPPORT == TRUE |
| 1404 | #undef OPTION_DDR3 |
| 1405 | #define OPTION_DDR3 FALSE |
| 1406 | #endif |
| 1407 | #endif |
| 1408 | #ifdef BLDOPT_REMOVE_MULTISOCKET_SUPPORT |
| 1409 | #if BLDOPT_REMOVE_MULTISOCKET_SUPPORT == TRUE |
| 1410 | #undef OPTION_MULTISOCKET |
| 1411 | #define OPTION_MULTISOCKET FALSE |
| 1412 | #endif |
| 1413 | #endif |
| 1414 | #ifdef BLDOPT_REMOVE_ECC_SUPPORT |
| 1415 | #if BLDOPT_REMOVE_ECC_SUPPORT == TRUE |
| 1416 | #undef OPTION_ECC |
| 1417 | #define OPTION_ECC FALSE |
| 1418 | #endif |
| 1419 | #endif |
| 1420 | #ifdef BLDOPT_REMOVE_UDIMMS_SUPPORT |
| 1421 | #if BLDOPT_REMOVE_UDIMMS_SUPPORT == TRUE |
| 1422 | #undef OPTION_UDIMMS |
| 1423 | #define OPTION_UDIMMS FALSE |
| 1424 | #endif |
| 1425 | #endif |
| 1426 | #ifdef BLDOPT_REMOVE_RDIMMS_SUPPORT |
| 1427 | #if BLDOPT_REMOVE_RDIMMS_SUPPORT == TRUE |
| 1428 | #undef OPTION_RDIMMS |
| 1429 | #define OPTION_RDIMMS FALSE |
| 1430 | #endif |
| 1431 | #endif |
| 1432 | #ifdef BLDOPT_REMOVE_SODIMMS_SUPPORT |
| 1433 | #if BLDOPT_REMOVE_SODIMMS_SUPPORT == TRUE |
| 1434 | #undef OPTION_SODIMMS |
| 1435 | #define OPTION_SODIMMS FALSE |
| 1436 | #endif |
| 1437 | #endif |
| 1438 | #ifdef BLDOPT_REMOVE_LRDIMMS_SUPPORT |
| 1439 | #if BLDOPT_REMOVE_LRDIMMS_SUPPORT == TRUE |
| 1440 | #undef OPTION_LRDIMMS |
| 1441 | #define OPTION_LRDIMMS FALSE |
| 1442 | #endif |
| 1443 | #endif |
| 1444 | #ifdef BLDOPT_REMOVE_BANK_INTERLEAVE |
| 1445 | #if BLDOPT_REMOVE_BANK_INTERLEAVE == TRUE |
| 1446 | #undef OPTION_BANK_INTERLEAVE |
| 1447 | #define OPTION_BANK_INTERLEAVE FALSE |
| 1448 | #endif |
| 1449 | #endif |
| 1450 | #ifdef BLDOPT_REMOVE_DCT_INTERLEAVE |
| 1451 | #if BLDOPT_REMOVE_DCT_INTERLEAVE == TRUE |
| 1452 | #undef OPTION_DCT_INTERLEAVE |
| 1453 | #define OPTION_DCT_INTERLEAVE FALSE |
| 1454 | #endif |
| 1455 | #endif |
| 1456 | #ifdef BLDOPT_REMOVE_NODE_INTERLEAVE |
| 1457 | #if BLDOPT_REMOVE_NODE_INTERLEAVE == TRUE |
| 1458 | #undef OPTION_NODE_INTERLEAVE |
| 1459 | #define OPTION_NODE_INTERLEAVE FALSE |
| 1460 | #endif |
| 1461 | #endif |
| 1462 | #ifdef BLDOPT_REMOVE_PARALLEL_TRAINING |
| 1463 | #if BLDOPT_REMOVE_PARALLEL_TRAINING == TRUE |
| 1464 | #undef OPTION_PARALLEL_TRAINING |
| 1465 | #define OPTION_PARALLEL_TRAINING FALSE |
| 1466 | #endif |
| 1467 | #endif |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1468 | /* Originally BLDOPT_REMOVE_ONLINE_SPARE_SUPPORT, but inverted alongside the default value */ |
| 1469 | #ifdef BLDOPT_ENABLE_ONLINE_SPARE_SUPPORT |
| 1470 | #if BLDOPT_ENABLE_ONLINE_SPARE_SUPPORT == TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1471 | #undef OPTION_ONLINE_SPARE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1472 | #define OPTION_ONLINE_SPARE OPTION_ONLINE_SPARE_CAPABLE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1473 | #endif |
| 1474 | #endif |
| 1475 | #ifdef BLDOPT_REMOVE_MEM_RESTORE_SUPPORT |
| 1476 | #if BLDOPT_REMOVE_MEM_RESTORE_SUPPORT == TRUE |
| 1477 | #undef OPTION_MEM_RESTORE |
| 1478 | #define OPTION_MEM_RESTORE FALSE |
| 1479 | #endif |
| 1480 | #endif |
| 1481 | #ifdef BLDOPT_REMOVE_HW_DQS_REC_EN_SEED_TRAINING |
| 1482 | #if BLDOPT_REMOVE_HW_DQS_REC_EN_SEED_TRAINING == TRUE |
| 1483 | #undef OPTION_HW_DQS_REC_EN_SEED_TRAINING |
| 1484 | #define OPTION_HW_DQS_REC_EN_SEED_TRAINING FALSE |
| 1485 | #endif |
| 1486 | #endif |
| 1487 | #ifdef BLDOPT_REMOVE_ACPI_PSTATES |
| 1488 | #if BLDOPT_REMOVE_ACPI_PSTATES == TRUE |
| 1489 | #undef OPTION_ACPI_PSTATES |
| 1490 | #define OPTION_ACPI_PSTATES FALSE |
| 1491 | #endif |
| 1492 | #endif |
| 1493 | #ifdef BLDOPT_REMOVE_SRAT |
| 1494 | #if BLDOPT_REMOVE_SRAT == TRUE |
| 1495 | #undef OPTION_SRAT |
| 1496 | #define OPTION_SRAT FALSE |
| 1497 | #endif |
| 1498 | #endif |
| 1499 | #ifdef BLDOPT_REMOVE_SLIT |
| 1500 | #if BLDOPT_REMOVE_SLIT == TRUE |
| 1501 | #undef OPTION_SLIT |
| 1502 | #define OPTION_SLIT FALSE |
| 1503 | #endif |
| 1504 | #endif |
| 1505 | #ifdef BLDOPT_REMOVE_WHEA |
| 1506 | #if BLDOPT_REMOVE_WHEA == TRUE |
| 1507 | #undef OPTION_WHEA |
| 1508 | #define OPTION_WHEA FALSE |
| 1509 | #endif |
| 1510 | #endif |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1511 | /* Originally BLDOPT_REMOVE_DMI, but inverted alongside the default value */ |
| 1512 | #ifdef BLDOPT_ENABLE_DMI |
| 1513 | #if BLDOPT_ENABLE_DMI == TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1514 | #undef OPTION_DMI |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1515 | #define OPTION_DMI TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1516 | #endif |
| 1517 | #endif |
| 1518 | #ifdef BLDOPT_REMOVE_ADDR_TO_CS_TRANSLATOR |
| 1519 | #if BLDOPT_REMOVE_ADDR_TO_CS_TRANSLATOR == TRUE |
| 1520 | #undef OPTION_ADDR_TO_CS_TRANSLATOR |
| 1521 | #define OPTION_ADDR_TO_CS_TRANSLATOR FALSE |
| 1522 | #endif |
| 1523 | #endif |
| 1524 | |
| 1525 | #ifdef BLDOPT_REMOVE_HT_ASSIST |
| 1526 | #if BLDOPT_REMOVE_HT_ASSIST == TRUE |
| 1527 | #undef OPTION_HT_ASSIST |
| 1528 | #define OPTION_HT_ASSIST FALSE |
| 1529 | #endif |
| 1530 | #endif |
| 1531 | |
| 1532 | #ifdef BLDOPT_REMOVE_ATM_MODE |
| 1533 | #if BLDOPT_REMOVE_ATM_MODE == TRUE |
| 1534 | #undef OPTION_ATM_MODE |
| 1535 | #define OPTION_ATM_MODE FALSE |
| 1536 | #endif |
| 1537 | #endif |
| 1538 | |
| 1539 | #ifdef BLDOPT_REMOVE_MSG_BASED_C1E |
| 1540 | #if BLDOPT_REMOVE_MSG_BASED_C1E == TRUE |
| 1541 | #undef OPTION_MSG_BASED_C1E |
| 1542 | #define OPTION_MSG_BASED_C1E FALSE |
| 1543 | #endif |
| 1544 | #endif |
| 1545 | |
| 1546 | #ifdef BLDOPT_REMOVE_C6_STATE |
| 1547 | #if BLDOPT_REMOVE_C6_STATE == TRUE |
| 1548 | #undef OPTION_C6_STATE |
| 1549 | #define OPTION_C6_STATE FALSE |
| 1550 | #endif |
| 1551 | #endif |
| 1552 | |
| 1553 | #ifdef BLDOPT_REMOVE_GFX_RECOVERY |
| 1554 | #if BLDOPT_REMOVE_GFX_RECOVERY == TRUE |
| 1555 | #undef OPTION_GFX_RECOVERY |
| 1556 | #define OPTION_GFX_RECOVERY FALSE |
| 1557 | #endif |
| 1558 | #endif |
| 1559 | |
| 1560 | |
| 1561 | #ifdef BLDCFG_REMOVE_ACPI_PSTATES_PPC |
| 1562 | #if BLDCFG_REMOVE_ACPI_PSTATES_PPC == TRUE |
| 1563 | #undef CFG_ACPI_PSTATES_PPC |
| 1564 | #define CFG_ACPI_PSTATES_PPC FALSE |
| 1565 | #endif |
| 1566 | #endif |
| 1567 | |
| 1568 | #ifdef BLDCFG_REMOVE_ACPI_PSTATES_PCT |
| 1569 | #if BLDCFG_REMOVE_ACPI_PSTATES_PCT == TRUE |
| 1570 | #undef CFG_ACPI_PSTATES_PCT |
| 1571 | #define CFG_ACPI_PSTATES_PCT FALSE |
| 1572 | #endif |
| 1573 | #endif |
| 1574 | |
| 1575 | #ifdef BLDCFG_REMOVE_ACPI_PSTATES_PSD |
| 1576 | #if BLDCFG_REMOVE_ACPI_PSTATES_PSD == TRUE |
| 1577 | #undef CFG_ACPI_PSTATES_PSD |
| 1578 | #define CFG_ACPI_PSTATES_PSD FALSE |
| 1579 | #endif |
| 1580 | #endif |
| 1581 | |
| 1582 | #ifdef BLDCFG_REMOVE_ACPI_PSTATES_PSS |
| 1583 | #if BLDCFG_REMOVE_ACPI_PSTATES_PSS == TRUE |
| 1584 | #undef CFG_ACPI_PSTATES_PSS |
| 1585 | #define CFG_ACPI_PSTATES_PSS FALSE |
| 1586 | #endif |
| 1587 | #endif |
| 1588 | |
| 1589 | #ifdef BLDCFG_REMOVE_ACPI_PSTATES_XPSS |
| 1590 | #if BLDCFG_REMOVE_ACPI_PSTATES_XPSS == TRUE |
| 1591 | #undef CFG_ACPI_PSTATES_XPSS |
| 1592 | #define CFG_ACPI_PSTATES_XPSS FALSE |
| 1593 | #endif |
| 1594 | #endif |
| 1595 | |
| 1596 | #ifdef BLDOPT_REMOVE_LOW_POWER_STATE_FOR_PROCHOT |
| 1597 | #if BLDOPT_REMOVE_LOW_POWER_STATE_FOR_PROCHOT == TRUE |
| 1598 | #undef OPTION_CPU_LOW_PWR_PSTATE_FOR_PROCHOT |
| 1599 | #define OPTION_CPU_LOW_PWR_PSTATE_FOR_PROCHOT FALSE |
| 1600 | #endif |
| 1601 | #endif |
| 1602 | |
| 1603 | #ifdef BLDCFG_PSTATE_HPC_MODE |
| 1604 | #if BLDCFG_PSTATE_HPC_MODE == TRUE |
| 1605 | #undef OPTION_CPU_PSTATE_HPC_MODE |
| 1606 | #define OPTION_CPU_PSTATE_HPC_MODE TRUE |
| 1607 | #endif |
| 1608 | #endif |
| 1609 | |
| 1610 | #ifdef BLDCFG_FORCE_INDEPENDENT_PSD_OBJECT |
| 1611 | #if BLDCFG_FORCE_INDEPENDENT_PSD_OBJECT == TRUE |
| 1612 | #undef CFG_ACPI_PSTATE_PSD_INDPX |
| 1613 | #define CFG_ACPI_PSTATE_PSD_INDPX TRUE |
| 1614 | #endif |
| 1615 | #endif |
| 1616 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1617 | /* Originally BLDCFG_VRM_HIGH_SPEED_ENABLE, but inverted alongside the default value */ |
| 1618 | #ifdef BLDCFG_VRM_HIGH_SPEED_DISABLE |
| 1619 | #if BLDCFG_VRM_HIGH_SPEED_DISABLE == TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1620 | #undef CFG_VRM_HIGH_SPEED_ENABLE |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1621 | #define CFG_VRM_HIGH_SPEED_ENABLE FALSE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1622 | #endif |
| 1623 | #endif |
| 1624 | |
| 1625 | #ifdef BLDCFG_VRM_NB_HIGH_SPEED_ENABLE |
| 1626 | #if BLDCFG_VRM_NB_HIGH_SPEED_ENABLE == TRUE |
| 1627 | #undef CFG_VRM_NB_HIGH_SPEED_ENABLE |
| 1628 | #define CFG_VRM_NB_HIGH_SPEED_ENABLE TRUE |
| 1629 | #endif |
| 1630 | #endif |
| 1631 | |
| 1632 | #ifdef BLDCFG_STARTING_BUSNUM |
| 1633 | #define CFG_STARTING_BUSNUM (BLDCFG_STARTING_BUSNUM) |
| 1634 | #else |
| 1635 | #define CFG_STARTING_BUSNUM (0) |
| 1636 | #endif |
| 1637 | |
| 1638 | #ifdef BLDCFG_AMD_PLATFORM_TYPE |
| 1639 | #define CFG_AMD_PLATFORM_TYPE BLDCFG_AMD_PLATFORM_TYPE |
| 1640 | #else |
| 1641 | #define CFG_AMD_PLATFORM_TYPE 0 |
| 1642 | #endif |
| 1643 | |
| 1644 | CONST UINT32 ROMDATA AmdPlatformTypeCgf = CFG_AMD_PLATFORM_TYPE; |
| 1645 | |
| 1646 | #ifdef BLDCFG_MAXIMUM_BUSNUM |
| 1647 | #define CFG_MAXIMUM_BUSNUM (BLDCFG_MAXIMUM_BUSNUM) |
| 1648 | #else |
| 1649 | #define CFG_MAXIMUM_BUSNUM (0xF8) |
| 1650 | #endif |
| 1651 | |
| 1652 | #ifdef BLDCFG_ALLOCATED_BUSNUM |
| 1653 | #define CFG_ALLOCATED_BUSNUM (BLDCFG_ALLOCATED_BUSNUM) |
| 1654 | #else |
| 1655 | #define CFG_ALLOCATED_BUSNUM (0x20) |
| 1656 | #endif |
| 1657 | |
| 1658 | #ifdef BLDCFG_BUID_SWAP_LIST |
| 1659 | #define CFG_BUID_SWAP_LIST (BLDCFG_BUID_SWAP_LIST) |
| 1660 | #else |
| 1661 | #define CFG_BUID_SWAP_LIST (NULL) |
| 1662 | #endif |
| 1663 | |
| 1664 | #ifdef BLDCFG_HTDEVICE_CAPABILITIES_OVERRIDE_LIST |
| 1665 | #define CFG_HTDEVICE_CAPABILITIES_OVERRIDE_LIST (BLDCFG_HTDEVICE_CAPABILITIES_OVERRIDE_LIST) |
| 1666 | #else |
| 1667 | #define CFG_HTDEVICE_CAPABILITIES_OVERRIDE_LIST (NULL) |
| 1668 | #endif |
| 1669 | |
| 1670 | #ifdef BLDCFG_HTFABRIC_LIMITS_LIST |
| 1671 | #define CFG_HTFABRIC_LIMITS_LIST (BLDCFG_HTFABRIC_LIMITS_LIST) |
| 1672 | #else |
| 1673 | #define CFG_HTFABRIC_LIMITS_LIST (NULL) |
| 1674 | #endif |
| 1675 | |
| 1676 | #ifdef BLDCFG_HTCHAIN_LIMITS_LIST |
| 1677 | #define CFG_HTCHAIN_LIMITS_LIST (BLDCFG_HTCHAIN_LIMITS_LIST) |
| 1678 | #else |
| 1679 | #define CFG_HTCHAIN_LIMITS_LIST (NULL) |
| 1680 | #endif |
| 1681 | |
| 1682 | #ifdef BLDCFG_BUS_NUMBERS_LIST |
| 1683 | #define CFG_BUS_NUMBERS_LIST (BLDCFG_BUS_NUMBERS_LIST) |
| 1684 | #else |
| 1685 | #define CFG_BUS_NUMBERS_LIST (NULL) |
| 1686 | #endif |
| 1687 | |
| 1688 | #ifdef BLDCFG_IGNORE_LINK_LIST |
| 1689 | #define CFG_IGNORE_LINK_LIST (BLDCFG_IGNORE_LINK_LIST) |
| 1690 | #else |
| 1691 | #define CFG_IGNORE_LINK_LIST (NULL) |
| 1692 | #endif |
| 1693 | |
| 1694 | #ifdef BLDCFG_LINK_SKIP_REGANG_LIST |
| 1695 | #define CFG_LINK_SKIP_REGANG_LIST (BLDCFG_LINK_SKIP_REGANG_LIST) |
| 1696 | #else |
| 1697 | #define CFG_LINK_SKIP_REGANG_LIST (NULL) |
| 1698 | #endif |
| 1699 | |
| 1700 | #ifdef BLDCFG_SET_HTCRC_SYNC_FLOOD |
| 1701 | #define CFG_SET_HTCRC_SYNC_FLOOD (BLDCFG_SET_HTCRC_SYNC_FLOOD) |
| 1702 | #else |
| 1703 | #define CFG_SET_HTCRC_SYNC_FLOOD (FALSE) |
| 1704 | #endif |
| 1705 | |
| 1706 | #ifdef BLDCFG_USE_UNIT_ID_CLUMPING |
| 1707 | #define CFG_USE_UNIT_ID_CLUMPING (BLDCFG_USE_UNIT_ID_CLUMPING) |
| 1708 | #else |
| 1709 | #define CFG_USE_UNIT_ID_CLUMPING (FALSE) |
| 1710 | #endif |
| 1711 | |
| 1712 | #ifdef BLDCFG_ADDITIONAL_TOPOLOGIES_LIST |
| 1713 | #define CFG_ADDITIONAL_TOPOLOGIES_LIST (BLDCFG_ADDITIONAL_TOPOLOGIES_LIST) |
| 1714 | #else |
| 1715 | #define CFG_ADDITIONAL_TOPOLOGIES_LIST (NULL) |
| 1716 | #endif |
| 1717 | |
| 1718 | #ifdef BLDCFG_USE_HT_ASSIST |
| 1719 | #define CFG_USE_HT_ASSIST (BLDCFG_USE_HT_ASSIST) |
| 1720 | #else |
| 1721 | #define CFG_USE_HT_ASSIST (TRUE) |
| 1722 | #endif |
| 1723 | |
| 1724 | #ifdef BLDCFG_USE_ATM_MODE |
| 1725 | #define CFG_USE_ATM_MODE (BLDCFG_USE_ATM_MODE) |
| 1726 | #else |
| 1727 | #define CFG_USE_ATM_MODE (TRUE) |
| 1728 | #endif |
| 1729 | |
| 1730 | #ifdef BLDCFG_PLATFORM_CONTROL_FLOW_MODE |
| 1731 | #define CFG_PLATFORM_CONTROL_FLOW_MODE (BLDCFG_PLATFORM_CONTROL_FLOW_MODE) |
| 1732 | #else |
| 1733 | #define CFG_PLATFORM_CONTROL_FLOW_MODE (Nfcm) |
| 1734 | #endif |
| 1735 | |
| 1736 | #ifdef BLDCFG_PERFORMANCE_HARDWARE_PREFETCHER |
| 1737 | #define CFG_PERFORMANCE_HARDWARE_PREFETCHER (BLDCFG_PERFORMANCE_HARDWARE_PREFETCHER) |
| 1738 | #else |
| 1739 | #define CFG_PERFORMANCE_HARDWARE_PREFETCHER (HARDWARE_PREFETCHER_AUTO) |
| 1740 | #endif |
| 1741 | |
| 1742 | #ifdef BLDCFG_PERFORMANCE_SOFTWARE_PREFETCHES |
| 1743 | #define CFG_PERFORMANCE_SOFTWARE_PREFETCHES (BLDCFG_PERFORMANCE_SOFTWARE_PREFETCHES) |
| 1744 | #else |
| 1745 | #define CFG_PERFORMANCE_SOFTWARE_PREFETCHES (SOFTWARE_PREFETCHES_AUTO) |
| 1746 | #endif |
| 1747 | |
| 1748 | #ifdef BLDCFG_PERFORMANCE_DRAM_PREFETCHER |
| 1749 | #define CFG_PERFORMANCE_DRAM_PREFETCHER (BLDCFG_PERFORMANCE_DRAM_PREFETCHER) |
| 1750 | #else |
| 1751 | #define CFG_PERFORMANCE_DRAM_PREFETCHER (DRAM_PREFETCHER_AUTO) |
| 1752 | #endif |
| 1753 | |
| 1754 | #ifdef BLDCFG_PLATFORM_DEEMPHASIS_LIST |
| 1755 | #define CFG_PLATFORM_DEEMPHASIS_LIST (BLDCFG_PLATFORM_DEEMPHASIS_LIST) |
| 1756 | #else |
| 1757 | #define CFG_PLATFORM_DEEMPHASIS_LIST (NULL) |
| 1758 | #endif |
| 1759 | |
| 1760 | #ifdef BLDCFG_VRM_ADDITIONAL_DELAY |
| 1761 | #define CFG_VRM_ADDITIONAL_DELAY (BLDCFG_VRM_ADDITIONAL_DELAY) |
| 1762 | #else |
| 1763 | #define CFG_VRM_ADDITIONAL_DELAY (0) |
| 1764 | #endif |
| 1765 | |
| 1766 | #ifdef BLDCFG_VRM_CURRENT_LIMIT |
| 1767 | #define CFG_VRM_CURRENT_LIMIT BLDCFG_VRM_CURRENT_LIMIT |
| 1768 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1769 | #define CFG_VRM_CURRENT_LIMIT 90000 |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1770 | #endif |
| 1771 | |
| 1772 | #ifdef BLDCFG_VRM_LOW_POWER_THRESHOLD |
| 1773 | #define CFG_VRM_LOW_POWER_THRESHOLD BLDCFG_VRM_LOW_POWER_THRESHOLD |
| 1774 | #else |
| 1775 | #define CFG_VRM_LOW_POWER_THRESHOLD 0 |
| 1776 | #endif |
| 1777 | |
| 1778 | #ifdef BLDCFG_VRM_SLEW_RATE |
| 1779 | #define CFG_VRM_SLEW_RATE BLDCFG_VRM_SLEW_RATE |
| 1780 | #else |
Angel Pons | 7e577ad | 2020-05-21 15:14:07 +0200 | [diff] [blame] | 1781 | #define CFG_VRM_SLEW_RATE (5000) |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1782 | #endif |
| 1783 | |
| 1784 | #ifdef BLDCFG_VRM_MAXIMUM_CURRENT_LIMIT |
| 1785 | #ifdef BLDCFG_VRM_INRUSH_CURRENT_LIMIT |
| 1786 | #error BLDCFG: BLDCFG_VRM_MAXIMUM_CURRENT_LIMIT is defined. Deprecated BLDCFG_VRM_INRUSH_CURRENT_LIMIT should not be defined. |
| 1787 | #endif |
| 1788 | #define CFG_VRM_MAXIMUM_CURRENT_LIMIT BLDCFG_VRM_MAXIMUM_CURRENT_LIMIT |
| 1789 | #else |
| 1790 | #ifdef BLDCFG_VRM_INRUSH_CURRENT_LIMIT |
| 1791 | #define CFG_VRM_MAXIMUM_CURRENT_LIMIT BLDCFG_VRM_INRUSH_CURRENT_LIMIT |
| 1792 | #else |
| 1793 | #define CFG_VRM_MAXIMUM_CURRENT_LIMIT (0) |
| 1794 | #endif |
| 1795 | #endif |
| 1796 | |
| 1797 | #ifdef BLDCFG_VRM_NB_MAXIMUM_CURRENT_LIMIT |
| 1798 | #ifdef BLDCFG_VRM_NB_INRUSH_CURRENT_LIMIT |
| 1799 | #error BLDCFG: BLDCFG_VRM_NB_MAXIMUM_CURRENT_LIMIT is defined. Deprecated BLDCFG_VRM_NB_INRUSH_CURRENT_LIMIT should not be defined. |
| 1800 | #endif |
| 1801 | #define CFG_VRM_NB_MAXIMUM_CURRENT_LIMIT BLDCFG_VRM_NB_MAXIMUM_CURRENT_LIMIT |
| 1802 | #else |
| 1803 | #ifdef BLDCFG_VRM_NB_INRUSH_CURRENT_LIMIT |
| 1804 | #define CFG_VRM_NB_MAXIMUM_CURRENT_LIMIT BLDCFG_VRM_NB_INRUSH_CURRENT_LIMIT |
| 1805 | #else |
| 1806 | #define CFG_VRM_NB_MAXIMUM_CURRENT_LIMIT (0) |
| 1807 | #endif |
| 1808 | #endif |
| 1809 | |
| 1810 | #ifdef BLDCFG_VRM_SVI_OCP_LEVEL |
| 1811 | #define CFG_VRM_SVI_OCP_LEVEL BLDCFG_VRM_SVI_OCP_LEVEL |
| 1812 | #else |
| 1813 | #define CFG_VRM_SVI_OCP_LEVEL 0 |
| 1814 | #endif |
| 1815 | |
| 1816 | #ifdef BLDCFG_VRM_NB_SVI_OCP_LEVEL |
| 1817 | #define CFG_VRM_NB_SVI_OCP_LEVEL BLDCFG_VRM_NB_SVI_OCP_LEVEL |
| 1818 | #else |
| 1819 | #define CFG_VRM_NB_SVI_OCP_LEVEL 0 |
| 1820 | #endif |
| 1821 | |
| 1822 | #ifdef BLDCFG_VRM_NB_ADDITIONAL_DELAY |
| 1823 | #define CFG_VRM_NB_ADDITIONAL_DELAY (BLDCFG_VRM_NB_ADDITIONAL_DELAY) |
| 1824 | #else |
| 1825 | #define CFG_VRM_NB_ADDITIONAL_DELAY (0) |
| 1826 | #endif |
| 1827 | |
| 1828 | #ifdef BLDCFG_VRM_NB_CURRENT_LIMIT |
| 1829 | #define CFG_VRM_NB_CURRENT_LIMIT BLDCFG_VRM_NB_CURRENT_LIMIT |
| 1830 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1831 | #define CFG_VRM_NB_CURRENT_LIMIT (60000) |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1832 | #endif |
| 1833 | |
| 1834 | #ifdef BLDCFG_VRM_NB_LOW_POWER_THRESHOLD |
| 1835 | #define CFG_VRM_NB_LOW_POWER_THRESHOLD BLDCFG_VRM_NB_LOW_POWER_THRESHOLD |
| 1836 | #else |
| 1837 | #define CFG_VRM_NB_LOW_POWER_THRESHOLD (0) |
| 1838 | #endif |
| 1839 | |
| 1840 | #ifdef BLDCFG_VRM_NB_SLEW_RATE |
| 1841 | #define CFG_VRM_NB_SLEW_RATE BLDCFG_VRM_NB_SLEW_RATE |
| 1842 | #else |
Angel Pons | 7e577ad | 2020-05-21 15:14:07 +0200 | [diff] [blame] | 1843 | #define CFG_VRM_NB_SLEW_RATE (5000) |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1844 | #endif |
| 1845 | |
| 1846 | #ifdef BLDCFG_PLAT_NUM_IO_APICS |
| 1847 | #define CFG_PLAT_NUM_IO_APICS BLDCFG_PLAT_NUM_IO_APICS |
| 1848 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1849 | #define CFG_PLAT_NUM_IO_APICS 3 |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1850 | #endif |
| 1851 | |
| 1852 | #ifdef BLDCFG_MEM_INIT_PSTATE |
| 1853 | #define CFG_MEM_INIT_PSTATE BLDCFG_MEM_INIT_PSTATE |
| 1854 | #else |
| 1855 | #define CFG_MEM_INIT_PSTATE 0 |
| 1856 | #endif |
| 1857 | |
| 1858 | #ifdef BLDCFG_PLATFORM_C1E_MODE |
| 1859 | #define CFG_C1E_MODE BLDCFG_PLATFORM_C1E_MODE |
| 1860 | #else |
| 1861 | #define CFG_C1E_MODE C1eModeDisabled |
| 1862 | #endif |
| 1863 | |
| 1864 | #ifdef BLDCFG_PLATFORM_C1E_OPDATA |
| 1865 | #define CFG_C1E_OPDATA BLDCFG_PLATFORM_C1E_OPDATA |
| 1866 | #else |
| 1867 | #define CFG_C1E_OPDATA 0 |
| 1868 | #endif |
| 1869 | |
| 1870 | #ifdef BLDCFG_PLATFORM_C1E_OPDATA1 |
| 1871 | #define CFG_C1E_OPDATA1 BLDCFG_PLATFORM_C1E_OPDATA1 |
| 1872 | #else |
| 1873 | #define CFG_C1E_OPDATA1 0 |
| 1874 | #endif |
| 1875 | |
| 1876 | #ifdef BLDCFG_PLATFORM_C1E_OPDATA2 |
| 1877 | #define CFG_C1E_OPDATA2 BLDCFG_PLATFORM_C1E_OPDATA2 |
| 1878 | #else |
| 1879 | #define CFG_C1E_OPDATA2 0 |
| 1880 | #endif |
| 1881 | |
| 1882 | #ifdef BLDCFG_PLATFORM_C1E_OPDATA3 |
| 1883 | #define CFG_C1E_OPDATA3 BLDCFG_PLATFORM_C1E_OPDATA3 |
| 1884 | #else |
| 1885 | #define CFG_C1E_OPDATA3 0 |
| 1886 | #endif |
| 1887 | |
| 1888 | #ifdef BLDCFG_PLATFORM_CSTATE_MODE |
| 1889 | #define CFG_CSTATE_MODE BLDCFG_PLATFORM_CSTATE_MODE |
| 1890 | #else |
| 1891 | #define CFG_CSTATE_MODE CStateModeC6 |
| 1892 | #endif |
| 1893 | |
| 1894 | #ifdef BLDCFG_PLATFORM_CSTATE_OPDATA |
| 1895 | #define CFG_CSTATE_OPDATA BLDCFG_PLATFORM_CSTATE_OPDATA |
| 1896 | #else |
| 1897 | #define CFG_CSTATE_OPDATA 0 |
| 1898 | #endif |
| 1899 | |
| 1900 | #ifdef BLDCFG_PLATFORM_CSTATE_IO_BASE_ADDRESS |
| 1901 | #define CFG_CSTATE_IO_BASE_ADDRESS BLDCFG_PLATFORM_CSTATE_IO_BASE_ADDRESS |
| 1902 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1903 | #define CFG_CSTATE_IO_BASE_ADDRESS 0x1770 |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1904 | #endif |
| 1905 | |
| 1906 | #ifdef BLDCFG_PLATFORM_CPB_MODE |
| 1907 | #define CFG_CPB_MODE BLDCFG_PLATFORM_CPB_MODE |
| 1908 | #else |
Mike Banon | d26cdb3 | 2021-03-10 17:54:45 +0300 | [diff] [blame] | 1909 | #define CFG_CPB_MODE CpbModeAuto |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1910 | #endif |
| 1911 | |
| 1912 | #ifdef BLDCFG_CORE_LEVELING_MODE |
| 1913 | #define CFG_CORE_LEVELING_MODE BLDCFG_CORE_LEVELING_MODE |
| 1914 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1915 | #define CFG_CORE_LEVELING_MODE CORE_LEVEL_LOWEST |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1916 | #endif |
| 1917 | |
| 1918 | #ifdef BLDCFG_AMD_PSTATE_CAP_VALUE |
| 1919 | #define CFG_AMD_PSTATE_CAP_VALUE BLDCFG_AMD_PSTATE_CAP_VALUE |
| 1920 | #else |
| 1921 | #define CFG_AMD_PSTATE_CAP_VALUE 0 |
| 1922 | #endif |
| 1923 | |
| 1924 | #ifdef BLDCFG_HEAP_DRAM_ADDRESS |
| 1925 | #define CFG_HEAP_DRAM_ADDRESS BLDCFG_HEAP_DRAM_ADDRESS |
| 1926 | #else |
| 1927 | #define CFG_HEAP_DRAM_ADDRESS AMD_HEAP_RAM_ADDRESS |
| 1928 | #endif |
| 1929 | |
| 1930 | #ifdef BLDCFG_MEMORY_BUS_FREQUENCY_LIMIT |
| 1931 | #define CFG_MEMORY_BUS_FREQUENCY_LIMIT BLDCFG_MEMORY_BUS_FREQUENCY_LIMIT |
| 1932 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 1933 | #define CFG_MEMORY_BUS_FREQUENCY_LIMIT DDR1866_FREQUENCY |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1934 | #endif |
| 1935 | |
| 1936 | #ifdef BLDCFG_MEMORY_MODE_UNGANGED |
| 1937 | #define CFG_MEMORY_MODE_UNGANGED BLDCFG_MEMORY_MODE_UNGANGED |
| 1938 | #else |
| 1939 | #define CFG_MEMORY_MODE_UNGANGED TRUE |
| 1940 | #endif |
| 1941 | |
| 1942 | #ifdef BLDCFG_MEMORY_QUAD_RANK_CAPABLE |
| 1943 | #define CFG_MEMORY_QUAD_RANK_CAPABLE BLDCFG_MEMORY_QUAD_RANK_CAPABLE |
| 1944 | #else |
| 1945 | #define CFG_MEMORY_QUAD_RANK_CAPABLE TRUE |
| 1946 | #endif |
| 1947 | |
| 1948 | #ifdef BLDCFG_MEMORY_QUADRANK_TYPE |
| 1949 | #define CFG_MEMORY_QUADRANK_TYPE BLDCFG_MEMORY_QUADRANK_TYPE |
| 1950 | #else |
Angel Pons | 7e577ad | 2020-05-21 15:14:07 +0200 | [diff] [blame] | 1951 | #define CFG_MEMORY_QUADRANK_TYPE QUADRANK_UNBUFFERED |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1952 | #endif |
| 1953 | |
| 1954 | #ifdef BLDCFG_MEMORY_RDIMM_CAPABLE |
| 1955 | #define CFG_MEMORY_RDIMM_CAPABLE BLDCFG_MEMORY_RDIMM_CAPABLE |
| 1956 | #else |
| 1957 | #define CFG_MEMORY_RDIMM_CAPABLE TRUE |
| 1958 | #endif |
| 1959 | |
| 1960 | #ifdef BLDCFG_MEMORY_LRDIMM_CAPABLE |
| 1961 | #define CFG_MEMORY_LRDIMM_CAPABLE BLDCFG_MEMORY_LRDIMM_CAPABLE |
| 1962 | #else |
| 1963 | #define CFG_MEMORY_LRDIMM_CAPABLE TRUE |
| 1964 | #endif |
| 1965 | |
| 1966 | #ifdef BLDCFG_MEMORY_UDIMM_CAPABLE |
| 1967 | #define CFG_MEMORY_UDIMM_CAPABLE BLDCFG_MEMORY_UDIMM_CAPABLE |
| 1968 | #else |
| 1969 | #define CFG_MEMORY_UDIMM_CAPABLE TRUE |
| 1970 | #endif |
| 1971 | |
| 1972 | #ifdef BLDCFG_MEMORY_SODIMM_CAPABLE |
| 1973 | #define CFG_MEMORY_SODIMM_CAPABLE BLDCFG_MEMORY_SODIMM_CAPABLE |
| 1974 | #else |
| 1975 | #define CFG_MEMORY_SODIMM_CAPABLE FALSE |
| 1976 | #endif |
| 1977 | |
| 1978 | #ifdef BLDCFG_LIMIT_MEMORY_TO_BELOW_1TB |
| 1979 | #define CFG_LIMIT_MEMORY_TO_BELOW_1TB BLDCFG_LIMIT_MEMORY_TO_BELOW_1TB |
| 1980 | #else |
| 1981 | #define CFG_LIMIT_MEMORY_TO_BELOW_1TB TRUE |
| 1982 | #endif |
| 1983 | |
| 1984 | #ifdef BLDCFG_MEMORY_ENABLE_BANK_INTERLEAVING |
| 1985 | #define CFG_MEMORY_ENABLE_BANK_INTERLEAVING BLDCFG_MEMORY_ENABLE_BANK_INTERLEAVING |
| 1986 | #else |
| 1987 | #define CFG_MEMORY_ENABLE_BANK_INTERLEAVING TRUE |
| 1988 | #endif |
| 1989 | |
| 1990 | #ifdef BLDCFG_MEMORY_ENABLE_NODE_INTERLEAVING |
| 1991 | #define CFG_MEMORY_ENABLE_NODE_INTERLEAVING BLDCFG_MEMORY_ENABLE_NODE_INTERLEAVING |
| 1992 | #else |
| 1993 | #define CFG_MEMORY_ENABLE_NODE_INTERLEAVING FALSE |
| 1994 | #endif |
| 1995 | |
| 1996 | #ifdef BLDCFG_MEMORY_CHANNEL_INTERLEAVING |
| 1997 | #define CFG_MEMORY_CHANNEL_INTERLEAVING BLDCFG_MEMORY_CHANNEL_INTERLEAVING |
| 1998 | #else |
| 1999 | #define CFG_MEMORY_CHANNEL_INTERLEAVING TRUE |
| 2000 | #endif |
| 2001 | |
| 2002 | #ifdef BLDCFG_MEMORY_POWER_DOWN |
| 2003 | #define CFG_MEMORY_POWER_DOWN BLDCFG_MEMORY_POWER_DOWN |
| 2004 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2005 | #define CFG_MEMORY_POWER_DOWN TRUE |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2006 | #endif |
| 2007 | |
| 2008 | #ifdef BLDCFG_POWER_DOWN_MODE |
| 2009 | #define CFG_POWER_DOWN_MODE BLDCFG_POWER_DOWN_MODE |
| 2010 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2011 | #define CFG_POWER_DOWN_MODE POWER_DOWN_BY_CHIP_SELECT |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2012 | #endif |
| 2013 | |
| 2014 | #ifdef BLDCFG_ONLINE_SPARE |
| 2015 | #define CFG_ONLINE_SPARE BLDCFG_ONLINE_SPARE |
| 2016 | #else |
| 2017 | #define CFG_ONLINE_SPARE FALSE |
| 2018 | #endif |
| 2019 | |
| 2020 | #ifdef BLDCFG_MEMORY_PARITY_ENABLE |
| 2021 | #define CFG_MEMORY_PARITY_ENABLE BLDCFG_MEMORY_PARITY_ENABLE |
| 2022 | #else |
| 2023 | #define CFG_MEMORY_PARITY_ENABLE FALSE |
| 2024 | #endif |
| 2025 | |
| 2026 | #ifdef BLDCFG_BANK_SWIZZLE |
| 2027 | #define CFG_BANK_SWIZZLE BLDCFG_BANK_SWIZZLE |
| 2028 | #else |
| 2029 | #define CFG_BANK_SWIZZLE TRUE |
| 2030 | #endif |
| 2031 | |
| 2032 | #ifdef BLDCFG_TIMING_MODE_SELECT |
| 2033 | #define CFG_TIMING_MODE_SELECT BLDCFG_TIMING_MODE_SELECT |
| 2034 | #else |
| 2035 | #define CFG_TIMING_MODE_SELECT TIMING_MODE_AUTO |
| 2036 | #endif |
| 2037 | |
| 2038 | #ifdef BLDCFG_MEMORY_CLOCK_SELECT |
| 2039 | #define CFG_MEMORY_CLOCK_SELECT BLDCFG_MEMORY_CLOCK_SELECT |
| 2040 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2041 | #define CFG_MEMORY_CLOCK_SELECT DDR1866_FREQUENCY |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2042 | #endif |
| 2043 | |
| 2044 | #ifdef BLDCFG_DQS_TRAINING_CONTROL |
| 2045 | #define CFG_DQS_TRAINING_CONTROL BLDCFG_DQS_TRAINING_CONTROL |
| 2046 | #else |
| 2047 | #define CFG_DQS_TRAINING_CONTROL TRUE |
| 2048 | #endif |
| 2049 | |
Mike Banon | f7b410d | 2020-04-17 14:56:42 +0300 | [diff] [blame] | 2050 | #if CONFIG(CPU_AMD_AGESA_OPENSOURCE_MEM_CUSTOM) |
| 2051 | #undef BLDCFG_IGNORE_SPD_CHECKSUM |
| 2052 | #define BLDCFG_IGNORE_SPD_CHECKSUM TRUE |
| 2053 | #endif |
| 2054 | |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2055 | #ifdef BLDCFG_IGNORE_SPD_CHECKSUM |
| 2056 | #define CFG_IGNORE_SPD_CHECKSUM BLDCFG_IGNORE_SPD_CHECKSUM |
| 2057 | #else |
| 2058 | #define CFG_IGNORE_SPD_CHECKSUM FALSE |
| 2059 | #endif |
| 2060 | |
| 2061 | #ifdef BLDCFG_USE_BURST_MODE |
| 2062 | #define CFG_USE_BURST_MODE BLDCFG_USE_BURST_MODE |
| 2063 | #else |
| 2064 | #define CFG_USE_BURST_MODE FALSE |
| 2065 | #endif |
| 2066 | |
| 2067 | #ifdef BLDCFG_MEMORY_ALL_CLOCKS_ON |
| 2068 | #define CFG_MEMORY_ALL_CLOCKS_ON BLDCFG_MEMORY_ALL_CLOCKS_ON |
| 2069 | #else |
| 2070 | #define CFG_MEMORY_ALL_CLOCKS_ON FALSE |
| 2071 | #endif |
| 2072 | |
| 2073 | #ifdef BLDCFG_ENABLE_ECC_FEATURE |
| 2074 | #define CFG_ENABLE_ECC_FEATURE BLDCFG_ENABLE_ECC_FEATURE |
| 2075 | #else |
| 2076 | #define CFG_ENABLE_ECC_FEATURE TRUE |
| 2077 | #endif |
| 2078 | |
| 2079 | #ifdef BLDCFG_ECC_REDIRECTION |
| 2080 | #define CFG_ECC_REDIRECTION BLDCFG_ECC_REDIRECTION |
| 2081 | #else |
| 2082 | #define CFG_ECC_REDIRECTION FALSE |
| 2083 | #endif |
| 2084 | |
| 2085 | #ifdef BLDCFG_SCRUB_DRAM_RATE |
| 2086 | #define CFG_SCRUB_DRAM_RATE BLDCFG_SCRUB_DRAM_RATE |
| 2087 | #else |
Angel Pons | 7e577ad | 2020-05-21 15:14:07 +0200 | [diff] [blame] | 2088 | #define CFG_SCRUB_DRAM_RATE (0) |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2089 | #endif |
| 2090 | |
| 2091 | #ifdef BLDCFG_SCRUB_L2_RATE |
| 2092 | #define CFG_SCRUB_L2_RATE BLDCFG_SCRUB_L2_RATE |
| 2093 | #else |
Angel Pons | 7e577ad | 2020-05-21 15:14:07 +0200 | [diff] [blame] | 2094 | #define CFG_SCRUB_L2_RATE (0) |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2095 | #endif |
| 2096 | |
| 2097 | #ifdef BLDCFG_SCRUB_L3_RATE |
| 2098 | #define CFG_SCRUB_L3_RATE BLDCFG_SCRUB_L3_RATE |
| 2099 | #else |
Angel Pons | 7e577ad | 2020-05-21 15:14:07 +0200 | [diff] [blame] | 2100 | #define CFG_SCRUB_L3_RATE (0) |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2101 | #endif |
| 2102 | |
| 2103 | #ifdef BLDCFG_SCRUB_IC_RATE |
| 2104 | #define CFG_SCRUB_IC_RATE BLDCFG_SCRUB_IC_RATE |
| 2105 | #else |
Angel Pons | 7e577ad | 2020-05-21 15:14:07 +0200 | [diff] [blame] | 2106 | #define CFG_SCRUB_IC_RATE (0) |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2107 | #endif |
| 2108 | |
| 2109 | #ifdef BLDCFG_SCRUB_DC_RATE |
| 2110 | #define CFG_SCRUB_DC_RATE BLDCFG_SCRUB_DC_RATE |
| 2111 | #else |
Angel Pons | 7e577ad | 2020-05-21 15:14:07 +0200 | [diff] [blame] | 2112 | #define CFG_SCRUB_DC_RATE (0) |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2113 | #endif |
| 2114 | |
| 2115 | #ifdef BLDCFG_ECC_SYNC_FLOOD |
| 2116 | #define CFG_ECC_SYNC_FLOOD BLDCFG_ECC_SYNC_FLOOD |
| 2117 | #else |
| 2118 | #define CFG_ECC_SYNC_FLOOD TRUE |
| 2119 | #endif |
| 2120 | |
| 2121 | #ifdef BLDCFG_ECC_SYMBOL_SIZE |
| 2122 | #define CFG_ECC_SYMBOL_SIZE BLDCFG_ECC_SYMBOL_SIZE |
| 2123 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2124 | #define CFG_ECC_SYMBOL_SIZE 4 |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2125 | #endif |
| 2126 | |
| 2127 | #ifdef BLDCFG_1GB_ALIGN |
| 2128 | #define CFG_1GB_ALIGN BLDCFG_1GB_ALIGN |
| 2129 | #else |
| 2130 | #define CFG_1GB_ALIGN FALSE |
| 2131 | #endif |
| 2132 | |
| 2133 | #ifdef BLDCFG_UMA_ALLOCATION_MODE |
| 2134 | #define CFG_UMA_MODE BLDCFG_UMA_ALLOCATION_MODE |
| 2135 | #else |
| 2136 | #define CFG_UMA_MODE UMA_AUTO |
| 2137 | #endif |
| 2138 | |
| 2139 | #ifdef BLDCFG_FORCE_TRAINING_MODE |
| 2140 | #define CFG_FORCE_TRAIN_MODE BLDCFG_FORCE_TRAINING_MODE |
| 2141 | #else |
| 2142 | #define CFG_FORCE_TRAIN_MODE FORCE_TRAIN_AUTO |
| 2143 | #endif |
| 2144 | |
| 2145 | #ifdef BLDCFG_UMA_ALLOCATION_SIZE |
| 2146 | #define CFG_UMA_SIZE BLDCFG_UMA_ALLOCATION_SIZE |
| 2147 | #else |
| 2148 | #define CFG_UMA_SIZE 0 |
| 2149 | #endif |
| 2150 | |
| 2151 | #ifdef BLDCFG_UMA_ABOVE4G_SUPPORT |
| 2152 | #define CFG_UMA_ABOVE4G BLDCFG_UMA_ABOVE4G_SUPPORT |
| 2153 | #else |
| 2154 | #define CFG_UMA_ABOVE4G FALSE |
| 2155 | #endif |
| 2156 | |
| 2157 | #ifdef BLDCFG_UMA_ALIGNMENT |
| 2158 | #define CFG_UMA_ALIGNMENT BLDCFG_UMA_ALIGNMENT |
| 2159 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2160 | #define CFG_UMA_ALIGNMENT UMA_4MB_ALIGNED |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2161 | #endif |
| 2162 | |
| 2163 | #ifdef BLDCFG_PROCESSOR_SCOPE_IN_SB |
| 2164 | #define CFG_PROCESSOR_SCOPE_IN_SB BLDCFG_PROCESSOR_SCOPE_IN_SB |
| 2165 | #else |
| 2166 | #define CFG_PROCESSOR_SCOPE_IN_SB FALSE |
| 2167 | #endif |
| 2168 | |
| 2169 | #ifdef BLDCFG_S3_LATE_RESTORE |
| 2170 | #define CFG_S3_LATE_RESTORE BLDCFG_S3_LATE_RESTORE |
| 2171 | #else |
| 2172 | #define CFG_S3_LATE_RESTORE TRUE |
| 2173 | #endif |
| 2174 | |
| 2175 | #ifdef BLDCFG_USE_32_BYTE_REFRESH |
| 2176 | #define CFG_USE_32_BYTE_REFRESH (BLDCFG_USE_32_BYTE_REFRESH) |
| 2177 | #else |
| 2178 | #define CFG_USE_32_BYTE_REFRESH (FALSE) |
| 2179 | #endif |
| 2180 | |
| 2181 | #ifdef BLDCFG_USE_VARIABLE_MCT_ISOC_PRIORITY |
| 2182 | #define CFG_USE_VARIABLE_MCT_ISOC_PRIORITY (BLDCFG_USE_VARIABLE_MCT_ISOC_PRIORITY) |
| 2183 | #else |
| 2184 | #define CFG_USE_VARIABLE_MCT_ISOC_PRIORITY (FALSE) |
| 2185 | #endif |
| 2186 | |
| 2187 | #ifdef BLDCFG_PROCESSOR_SCOPE_NAME0 |
| 2188 | #define CFG_PROCESSOR_SCOPE_NAME0 BLDCFG_PROCESSOR_SCOPE_NAME0 |
| 2189 | #else |
| 2190 | #define CFG_PROCESSOR_SCOPE_NAME0 SCOPE_NAME_VALUE |
| 2191 | #endif |
| 2192 | |
| 2193 | #ifdef BLDCFG_PROCESSOR_SCOPE_NAME1 |
| 2194 | #define CFG_PROCESSOR_SCOPE_NAME1 BLDCFG_PROCESSOR_SCOPE_NAME1 |
| 2195 | #else |
| 2196 | #define CFG_PROCESSOR_SCOPE_NAME1 SCOPE_NAME_VALUE1 |
| 2197 | #endif |
| 2198 | |
| 2199 | #ifdef BLDCFG_CFG_GNB_HD_AUDIO |
| 2200 | #define CFG_GNB_HD_AUDIO BLDCFG_CFG_GNB_HD_AUDIO |
| 2201 | #else |
| 2202 | #define CFG_GNB_HD_AUDIO TRUE |
| 2203 | #endif |
| 2204 | |
| 2205 | #ifdef BLDCFG_CFG_ABM_SUPPORT |
| 2206 | #define CFG_ABM_SUPPORT BLDCFG_CFG_ABM_SUPPORT |
| 2207 | #else |
| 2208 | #define CFG_ABM_SUPPORT FALSE |
| 2209 | #endif |
| 2210 | |
| 2211 | #ifdef BLDCFG_CFG_DYNAMIC_REFRESH_RATE |
| 2212 | #define CFG_DYNAMIC_REFRESH_RATE BLDCFG_CFG_DYNAMIC_REFRESH_RATE |
| 2213 | #else |
| 2214 | #define CFG_DYNAMIC_REFRESH_RATE 0 |
| 2215 | #endif |
| 2216 | |
| 2217 | #ifdef BLDCFG_CFG_LCD_BACK_LIGHT_CONTROL |
| 2218 | #define CFG_LCD_BACK_LIGHT_CONTROL BLDCFG_CFG_LCD_BACK_LIGHT_CONTROL |
| 2219 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2220 | #define CFG_LCD_BACK_LIGHT_CONTROL 200 |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2221 | #endif |
| 2222 | |
| 2223 | #ifdef BLDCFG_STEREO_3D_PINOUT |
| 2224 | #define CFG_GNB_STEREO_3D_PINOUT BLDCFG_STEREO_3D_PINOUT |
| 2225 | #else |
| 2226 | #define CFG_GNB_STEREO_3D_PINOUT 0 |
| 2227 | #endif |
| 2228 | |
| 2229 | #ifdef BLDCFG_REMOTE_DISPLAY_SUPPORT |
| 2230 | #define CFG_GNB_REMOTE_DISPLAY_SUPPORT BLDCFG_REMOTE_DISPLAY_SUPPORT |
| 2231 | #else |
| 2232 | #define CFG_GNB_REMOTE_DISPLAY_SUPPORT FALSE |
| 2233 | #endif |
| 2234 | |
| 2235 | // Define pin configuration for SYNCFLOOD |
| 2236 | // Default to FALSE (Use pin as SYNCFLOOD) |
| 2237 | #ifdef BLDCFG_USE_SYNCFLOOD_AS_NMI |
| 2238 | #define CFG_GNB_SYNCFLOOD_PIN_AS_NMI BLDCFG_USE_SYNCFLOOD_AS_NMI |
| 2239 | #else |
| 2240 | #define CFG_GNB_SYNCFLOOD_PIN_AS_NMI FALSE |
| 2241 | #endif |
| 2242 | |
| 2243 | #ifdef BLDCFG_GNB_THERMAL_SENSOR_CORRECTION |
| 2244 | #define CFG_GNB_THERMAL_SENSOR_CORRECTION BLDCFG_GNB_THERMAL_SENSOR_CORRECTION |
| 2245 | #else |
| 2246 | #define CFG_GNB_THERMAL_SENSOR_CORRECTION 0 |
| 2247 | #endif |
| 2248 | |
| 2249 | #ifdef BLDCFG_IGPU_SUBSYSTEM_ID |
| 2250 | #define CFG_GNB_IGPU_SSID BLDCFG_IGPU_SUBSYSTEM_ID |
| 2251 | #else |
| 2252 | #define CFG_GNB_IGPU_SSID 0 |
| 2253 | #endif |
| 2254 | |
| 2255 | #ifdef BLDCFG_IGPU_HD_AUDIO_SUBSYSTEM_ID |
| 2256 | #define CFG_GNB_HDAUDIO_SSID BLDCFG_IGPU_HD_AUDIO_SUBSYSTEM_ID |
| 2257 | #else |
| 2258 | #define CFG_GNB_HDAUDIO_SSID 0 |
| 2259 | #endif |
| 2260 | |
| 2261 | #ifdef BLDCFG_IGPU_ENABLE_DISABLE_POLICY |
| 2262 | #define CFG_IGPU_ENABLE_DISABLE_POLICY BLDCFG_IGPU_ENABLE_DISABLE_POLICY |
| 2263 | #else |
| 2264 | #define CFG_IGPU_ENABLE_DISABLE_POLICY IGPU_DISABLE_AUTO |
| 2265 | #endif |
| 2266 | |
| 2267 | #ifdef BLFCFG_APU_PCIE_PORTS_SUBSYSTEM_ID |
| 2268 | #define CFG_GNB_PCIE_SSID BLFCFG_APU_PCIE_PORTS_SUBSYSTEM_ID |
| 2269 | #else |
| 2270 | #define CFG_GNB_PCIE_SSID 0x12341022ul |
| 2271 | #endif |
| 2272 | |
| 2273 | #ifdef BLDCFG_GFX_LVDS_SPREAD_SPECTRUM |
| 2274 | #define CFG_GFX_LVDS_SPREAD_SPECTRUM BLDCFG_GFX_LVDS_SPREAD_SPECTRUM |
| 2275 | #else |
| 2276 | #define CFG_GFX_LVDS_SPREAD_SPECTRUM 0 |
| 2277 | #endif |
| 2278 | |
| 2279 | #ifdef BLDCFG_GFX_LVDS_SPREAD_SPECTRUM_RATE |
| 2280 | #define CFG_GFX_LVDS_SPREAD_SPECTRUM_RATE BLDCFG_GFX_LVDS_SPREAD_SPECTRUM_RATE |
| 2281 | #else |
| 2282 | #define CFG_GFX_LVDS_SPREAD_SPECTRUM_RATE 0 |
| 2283 | #endif |
| 2284 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2285 | /* PCIe Spread Spectrum default value: 0.36% */ |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2286 | #ifdef BLDCFG_PCIE_REFCLK_SPREAD_SPECTRUM |
| 2287 | #define CFG_PCIE_REFCLK_SPREAD_SPECTRUM BLDCFG_PCIE_REFCLK_SPREAD_SPECTRUM |
| 2288 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2289 | #define CFG_PCIE_REFCLK_SPREAD_SPECTRUM 36 |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2290 | #endif |
| 2291 | |
| 2292 | #ifdef BLDCFG_CFG_TEMP_PCIE_MMIO_BASE_ADDRESS |
| 2293 | #define CFG_TEMP_PCIE_MMIO_BASE_ADDRESS BLDCFG_CFG_TEMP_PCIE_MMIO_BASE_ADDRESS |
| 2294 | #else |
| 2295 | #define CFG_TEMP_PCIE_MMIO_BASE_ADDRESS 0xD0000000ul |
| 2296 | #endif |
| 2297 | |
| 2298 | #ifdef BLDCFG_ENABLE_EXTERNAL_VREF_FEATURE |
| 2299 | #define CFG_ENABLE_EXTERNAL_VREF BLDCFG_ENABLE_EXTERNAL_VREF_FEATURE |
| 2300 | #else |
| 2301 | #define CFG_ENABLE_EXTERNAL_VREF FALSE |
| 2302 | #endif |
| 2303 | |
| 2304 | |
| 2305 | #ifdef BLDOPT_REMOVE_ALIB |
| 2306 | #if BLDOPT_REMOVE_ALIB == TRUE |
| 2307 | #undef OPTION_ALIB |
| 2308 | #define OPTION_ALIB FALSE |
| 2309 | #else |
| 2310 | #undef OPTION_ALIB |
| 2311 | #define OPTION_ALIB TRUE |
| 2312 | #endif |
| 2313 | #endif |
| 2314 | |
| 2315 | #ifdef BLDOPT_REMOVE_FCH_COMPONENT |
| 2316 | #if BLDOPT_REMOVE_FCH_COMPONENT == TRUE |
| 2317 | #undef FCH_SUPPORT |
| 2318 | #define FCH_SUPPORT FALSE |
| 2319 | #endif |
| 2320 | #endif |
| 2321 | |
| 2322 | #ifdef BLDCFG_IOMMU_SUPPORT |
| 2323 | #define CFG_IOMMU_SUPPORT BLDCFG_IOMMU_SUPPORT |
| 2324 | #else |
| 2325 | #define CFG_IOMMU_SUPPORT TRUE |
| 2326 | #endif |
| 2327 | |
| 2328 | #ifdef BLDCFG_LVDS_POWER_ON_SEQ_DIGON_TO_DE |
| 2329 | #define CFG_LVDS_POWER_ON_SEQ_DIGON_TO_DE BLDCFG_LVDS_POWER_ON_SEQ_DIGON_TO_DE |
| 2330 | #else |
| 2331 | #define CFG_LVDS_POWER_ON_SEQ_DIGON_TO_DE 0 |
| 2332 | #endif |
| 2333 | |
| 2334 | #ifdef BLDCFG_LVDS_POWER_ON_SEQ_DE_TO_VARY_BL |
| 2335 | #define CFG_LVDS_POWER_ON_SEQ_DE_TO_VARY_BL BLDCFG_LVDS_POWER_ON_SEQ_DE_TO_VARY_BL |
| 2336 | #else |
| 2337 | #define CFG_LVDS_POWER_ON_SEQ_DE_TO_VARY_BL 0 |
| 2338 | #endif |
| 2339 | |
| 2340 | #ifdef BLDCFG_LVDS_POWER_ON_SEQ_DE_TO_DIGON |
| 2341 | #define CFG_LVDS_POWER_ON_SEQ_DE_TO_DIGON BLDCFG_LVDS_POWER_ON_SEQ_DE_TO_DIGON |
| 2342 | #else |
| 2343 | #define CFG_LVDS_POWER_ON_SEQ_DE_TO_DIGON 0 |
| 2344 | #endif |
| 2345 | |
| 2346 | #ifdef BLDCFG_LVDS_POWERS_ON_SEQ_VARY_BL_TO_DE |
| 2347 | #define CFG_LVDS_POWERS_ON_SEQ_VARY_BL_TO_DE BLDCFG_LVDS_POWERS_ON_SEQ_VARY_BL_TO_DE |
| 2348 | #else |
| 2349 | #define CFG_LVDS_POWERS_ON_SEQ_VARY_BL_TO_DE 0 |
| 2350 | #endif |
| 2351 | |
| 2352 | #ifdef BLDCFG_LVDS_POWER_ON_SEQ_ON_TO_OFF_DELAY |
| 2353 | #define CFG_LVDS_POWER_ON_SEQ_ON_TO_OFF_DELAY BLDCFG_LVDS_POWER_ON_SEQ_ON_TO_OFF_DELAY |
| 2354 | #else |
| 2355 | #define CFG_LVDS_POWER_ON_SEQ_ON_TO_OFF_DELAY 0 |
| 2356 | #endif |
| 2357 | |
| 2358 | #ifdef BLDCFG_LVDS_POWER_ON_SEQ_VARY_BL_TO_BLON |
| 2359 | #define CFG_LVDS_POWER_ON_SEQ_VARY_BL_TO_BLON BLDCFG_LVDS_POWER_ON_SEQ_VARY_BL_TO_BLON |
| 2360 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2361 | #define CFG_LVDS_POWER_ON_SEQ_VARY_BL_TO_BLON 3 |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2362 | #endif |
| 2363 | |
| 2364 | #ifdef BLDCFG_LVDS_POWER_ON_SEQ_BLON_TO_VARY_BL |
| 2365 | #define CFG_LVDS_POWER_ON_SEQ_BLON_TO_VARY_BL BLDCFG_LVDS_POWER_ON_SEQ_BLON_TO_VARY_BL |
| 2366 | #else |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 2367 | #define CFG_LVDS_POWER_ON_SEQ_BLON_TO_VARY_BL 3 |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2368 | #endif |
| 2369 | |
| 2370 | #ifdef BLDCFG_LVDS_MAX_PIXEL_CLOCK_FREQ |
| 2371 | #define CFG_LVDS_MAX_PIXEL_CLOCK_FREQ BLDCFG_LVDS_MAX_PIXEL_CLOCK_FREQ |
| 2372 | #else |
| 2373 | #define CFG_LVDS_MAX_PIXEL_CLOCK_FREQ 0 |
| 2374 | #endif |
| 2375 | |
| 2376 | #ifdef BLDCFG_LCD_BIT_DEPTH_CONTROL_VALUE |
| 2377 | #define CFG_LCD_BIT_DEPTH_CONTROL_VALUE BLDCFG_LCD_BIT_DEPTH_CONTROL_VALUE |
| 2378 | #else |
| 2379 | #define CFG_LCD_BIT_DEPTH_CONTROL_VALUE 0 |
| 2380 | #endif |
| 2381 | |
| 2382 | |
| 2383 | // BLDCFG_LVDS_24BBP_PANEL_MODE |
| 2384 | // This specifies the LVDS 24 BBP mode. |
| 2385 | // 0 - Use LDI mode (default). |
| 2386 | // 1 - Use FPDI mode. |
| 2387 | #ifdef BLDCFG_LVDS_24BBP_PANEL_MODE |
| 2388 | #define CFG_LVDS_24BBP_PANEL_MODE BLDCFG_LVDS_24BBP_PANEL_MODE |
| 2389 | #else |
| 2390 | #define CFG_LVDS_24BBP_PANEL_MODE 0 |
| 2391 | #endif |
| 2392 | |
| 2393 | #ifdef BLDCFG_LVDS_MISC_888_FPDI_MODE |
| 2394 | #define CFG_LVDS_MISC_888_FPDI_MODE BLDCFG_LVDS_MISC_888_FPDI_MODE |
| 2395 | #else |
| 2396 | #define CFG_LVDS_MISC_888_FPDI_MODE FALSE |
| 2397 | #endif |
| 2398 | |
| 2399 | #ifdef BLDCFG_LVDS_MISC_DL_CH_SWAP |
| 2400 | #define CFG_LVDS_MISC_DL_CH_SWAP BLDCFG_LVDS_MISC_DL_CH_SWAP |
| 2401 | #else |
| 2402 | #define CFG_LVDS_MISC_DL_CH_SWAP FALSE |
| 2403 | #endif |
| 2404 | |
| 2405 | #ifdef BLDCFG_LVDS_MISC_VSYNC_ACTIVE_LOW |
| 2406 | #define CFG_LVDS_MISC_VSYNC_ACTIVE_LOW BLDCFG_LVDS_MISC_VSYNC_ACTIVE_LOW |
| 2407 | #else |
| 2408 | #define CFG_LVDS_MISC_VSYNC_ACTIVE_LOW FALSE |
| 2409 | #endif |
| 2410 | |
| 2411 | #ifdef BLDCFG_LVDS_MISC_HSYNC_ACTIVE_LOW |
| 2412 | #define CFG_LVDS_MISC_HSYNC_ACTIVE_LOW BLDCFG_LVDS_MISC_HSYNC_ACTIVE_LOW |
| 2413 | #else |
| 2414 | #define CFG_LVDS_MISC_HSYNC_ACTIVE_LOW FALSE |
| 2415 | #endif |
| 2416 | |
| 2417 | #ifdef BLDCFG_LVDS_MISC_BLON_ACTIVE_LOW |
| 2418 | #define CFG_LVDS_MISC_BLON_ACTIVE_LOW BLDCFG_LVDS_MISC_BLON_ACTIVE_LOW |
| 2419 | #else |
| 2420 | #define CFG_LVDS_MISC_BLON_ACTIVE_LOW FALSE |
| 2421 | #endif |
| 2422 | |
| 2423 | #ifdef BLDCFG_LVDS_MISC_VOLT_OVERWRITE_ENABLE |
| 2424 | #define CFG_LVDS_MISC_VOLT_OVERWRITE_ENABLE BLDCFG_LVDS_MISC_VOLT_OVERWRITE_ENABLE |
| 2425 | #else |
| 2426 | #define CFG_LVDS_MISC_VOLT_OVERWRITE_ENABLE FALSE |
| 2427 | #endif |
| 2428 | |
| 2429 | #ifdef BLDCFG_LVDS_MISC_VOLT_ADJUSTMENT |
| 2430 | #define CFG_LVDS_MISC_VOLT_ADJUSTMENT BLDCFG_LVDS_MISC_VOLT_ADJUSTMENT |
| 2431 | #else |
| 2432 | #define CFG_LVDS_MISC_VOLT_ADJUSTMENT 0 |
| 2433 | #endif |
| 2434 | |
| 2435 | #ifdef BLDCFG_DISPLAY_MISC_VBIOS_FAST_BOOT_ENABLE |
| 2436 | #define CFG_DISPLAY_MISC_VBIOS_FAST_BOOT_ENABLE BLDCFG_DISPLAY_MISC_VBIOS_FAST_BOOT_ENABLE |
| 2437 | #else |
| 2438 | #define CFG_DISPLAY_MISC_VBIOS_FAST_BOOT_ENABLE FALSE |
| 2439 | #endif |
| 2440 | |
Kyösti Mälkki | 206e157 | 2016-05-18 14:04:45 +0300 | [diff] [blame] | 2441 | #ifdef BLDCFG_PLATFORM_POWER_POLICY_MODE |
| 2442 | #define CFG_PLATFORM_POWER_POLICY_MODE (BLDCFG_PLATFORM_POWER_POLICY_MODE) |
| 2443 | #else |
| 2444 | #define CFG_PLATFORM_POWER_POLICY_MODE (Performance) |
| 2445 | #endif |
| 2446 | |
Shelley Chen | 4e9bb33 | 2021-10-20 15:43:45 -0700 | [diff] [blame] | 2447 | #define CFG_PCI_MMIO_BASE (CONFIG_ECAM_MMCONF_BASE_ADDRESS) |
Kyösti Mälkki | 206e157 | 2016-05-18 14:04:45 +0300 | [diff] [blame] | 2448 | |
Shelley Chen | 4e9bb33 | 2021-10-20 15:43:45 -0700 | [diff] [blame] | 2449 | #define CFG_PCI_MMIO_SIZE (CONFIG_ECAM_MMCONF_BUS_NUMBER) |
Kyösti Mälkki | 206e157 | 2016-05-18 14:04:45 +0300 | [diff] [blame] | 2450 | |
| 2451 | #ifdef BLDCFG_AP_MTRR_SETTINGS_LIST |
| 2452 | #define CFG_AP_MTRR_SETTINGS_LIST (BLDCFG_AP_MTRR_SETTINGS_LIST) |
| 2453 | #else |
Angel Pons | 7ee8e7f | 2020-05-21 15:24:42 +0200 | [diff] [blame] | 2454 | #define CFG_AP_MTRR_SETTINGS_LIST (TrinityApMtrrSettingsList) |
Kyösti Mälkki | 206e157 | 2016-05-18 14:04:45 +0300 | [diff] [blame] | 2455 | #endif |
| 2456 | |
| 2457 | #ifdef BLDCFG_IOMMU_EXCLUSION_RANGE_LIST |
| 2458 | #define CFG_IOMMU_EXCLUSION_RANGE_LIST (BLDCFG_IOMMU_EXCLUSION_RANGE_LIST) |
| 2459 | #else |
| 2460 | #define CFG_IOMMU_EXCLUSION_RANGE_LIST (NULL) |
| 2461 | #endif |
| 2462 | |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2463 | /*--------------------------------------------------------------------------- |
| 2464 | * Processing the options: Third, perform the option cross checks |
| 2465 | *--------------------------------------------------------------------------*/ |
Angel Pons | 5f82370 | 2020-05-21 01:06:28 +0200 | [diff] [blame] | 2466 | // Check that deprecated options are not used |
| 2467 | #ifdef BLDCFG_PCI_MMIO_BASE |
| 2468 | #error BLDOPT: BLDCFG_PCI_MMIO_BASE has been deprecated in coreboot. Do not use! |
| 2469 | #endif |
| 2470 | #ifdef BLDCFG_PCI_MMIO_SIZE |
| 2471 | #error BLDOPT: BLDCFG_PCI_MMIO_SIZE has been deprecated in coreboot. Do not use! |
| 2472 | #endif |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2473 | // Assure that at least one type of memory support is included |
| 2474 | #if OPTION_UDIMMS == FALSE |
| 2475 | #if OPTION_RDIMMS == FALSE |
| 2476 | #if OPTION_SODIMMS == FALSE |
| 2477 | #if OPTION_LRDIMMS == FALSE |
| 2478 | #error BLDOPT: No DIMM support selected. Either BLDOPT_REMOVE_UDIMMS_SUPPORT or BLDOPT_REMOVE_RDIMMS_SUPPORT or BLDOPT_REMOVE_SODIMMS_SUPPORT or BLDOPT_REMOVE_LRDIMMS_SUPPORT must be FALSE. |
| 2479 | #endif |
| 2480 | #endif |
| 2481 | #endif |
| 2482 | #endif |
| 2483 | // Ensure at least one dimm type is capable |
| 2484 | #if CFG_MEMORY_RDIMM_CAPABLE == FALSE |
| 2485 | #if CFG_MEMORY_UDIMM_CAPABLE == FALSE |
| 2486 | #if CFG_MEMORY_SODIMM_CAPABLE == FALSE |
| 2487 | #if CFG_MEMORY_LRDIMM_CAPABLE == FALSE |
| 2488 | #error BLDCFG: No dimm type is capable |
| 2489 | #endif |
| 2490 | #endif |
| 2491 | #endif |
| 2492 | #endif |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2493 | // Turn off multi-socket based features if only one node... |
| 2494 | #if OPTION_MULTISOCKET == FALSE |
| 2495 | #undef OPTION_PARALLEL_TRAINING |
| 2496 | #define OPTION_PARALLEL_TRAINING FALSE |
| 2497 | #undef OPTION_NODE_INTERLEAVE |
| 2498 | #define OPTION_NODE_INTERLEAVE FALSE |
| 2499 | #endif |
| 2500 | // Ensure the frequency limit is valid |
| 2501 | #if (CFG_MEMORY_BUS_FREQUENCY_LIMIT != DDR2133_FREQUENCY) && (CFG_MEMORY_BUS_FREQUENCY_LIMIT != 1066) |
| 2502 | #if (CFG_MEMORY_BUS_FREQUENCY_LIMIT != DDR1866_FREQUENCY) && (CFG_MEMORY_BUS_FREQUENCY_LIMIT != 933) |
| 2503 | #if (CFG_MEMORY_BUS_FREQUENCY_LIMIT != DDR1600_FREQUENCY) && (CFG_MEMORY_BUS_FREQUENCY_LIMIT != 800) |
| 2504 | #if (CFG_MEMORY_BUS_FREQUENCY_LIMIT != DDR1333_FREQUENCY) && (CFG_MEMORY_BUS_FREQUENCY_LIMIT != 667) |
| 2505 | #if (CFG_MEMORY_BUS_FREQUENCY_LIMIT != DDR1066_FREQUENCY) && (CFG_MEMORY_BUS_FREQUENCY_LIMIT != 533) |
| 2506 | #if (CFG_MEMORY_BUS_FREQUENCY_LIMIT != DDR800_FREQUENCY) && (CFG_MEMORY_BUS_FREQUENCY_LIMIT != 400) |
| 2507 | #if (CFG_MEMORY_BUS_FREQUENCY_LIMIT != DDR667_FREQUENCY) && (CFG_MEMORY_BUS_FREQUENCY_LIMIT != 333) |
| 2508 | #if (CFG_MEMORY_BUS_FREQUENCY_LIMIT != DDR533_FREQUENCY) && (CFG_MEMORY_BUS_FREQUENCY_LIMIT != 266) |
| 2509 | #if (CFG_MEMORY_BUS_FREQUENCY_LIMIT != DDR400_FREQUENCY) && (CFG_MEMORY_BUS_FREQUENCY_LIMIT != 200) |
| 2510 | #error BLDCFG: Unsupported memory bus frequency |
| 2511 | #endif |
| 2512 | #endif |
| 2513 | #endif |
| 2514 | #endif |
| 2515 | #endif |
| 2516 | #endif |
| 2517 | #endif |
| 2518 | #endif |
| 2519 | #endif |
| 2520 | // Ensure timing mode is valid |
| 2521 | #if CFG_TIMING_MODE_SELECT != TIMING_MODE_SPECIFIC |
| 2522 | #if CFG_TIMING_MODE_SELECT != TIMING_MODE_LIMITED |
| 2523 | #if CFG_TIMING_MODE_SELECT != TIMING_MODE_AUTO |
| 2524 | #error BLDCFG: Invalid timing mode is set |
| 2525 | #endif |
| 2526 | #endif |
| 2527 | #endif |
| 2528 | // Ensure the scrub rate is valid |
| 2529 | #if ((CFG_SCRUB_DRAM_RATE > 0x16) && (CFG_SCRUB_DRAM_RATE != 0xFF)) |
| 2530 | #error BLDCFG: Unsupported dram scrub rate set |
| 2531 | #endif |
| 2532 | #if CFG_SCRUB_L2_RATE > 0x16 |
| 2533 | #error BLDCFG: Unsupported L2 scrubber rate set |
| 2534 | #endif |
| 2535 | #if CFG_SCRUB_L3_RATE > 0x16 |
| 2536 | #error BLDCFG: unsupported L3 scrubber rate set |
| 2537 | #endif |
| 2538 | #if CFG_SCRUB_IC_RATE > 0x16 |
| 2539 | #error BLDCFG: Unsupported Instruction cache scrub rate set |
| 2540 | #endif |
| 2541 | #if CFG_SCRUB_DC_RATE > 0x16 |
| 2542 | #error BLDCFG: Unsupported Dcache scrub rate set |
| 2543 | #endif |
| 2544 | // Ensure Quad rank dimm type is valid |
| 2545 | #if CFG_MEMORY_QUADRANK_TYPE != QUADRANK_UNBUFFERED |
| 2546 | #if CFG_MEMORY_QUADRANK_TYPE != QUADRANK_REGISTERED |
| 2547 | #error BLDCFG: Invalid quad rank dimm type set |
| 2548 | #endif |
| 2549 | #endif |
| 2550 | // Ensure ECC symbol size is valid |
| 2551 | #if CFG_ECC_SYMBOL_SIZE != ECCSYMBOLSIZE_USE_BKDG |
| 2552 | #if CFG_ECC_SYMBOL_SIZE != ECCSYMBOLSIZE_FORCE_X4 |
| 2553 | #if CFG_ECC_SYMBOL_SIZE != ECCSYMBOLSIZE_FORCE_X8 |
| 2554 | #error BLDCFG: Invalid Ecc symbol size set |
| 2555 | #endif |
| 2556 | #endif |
| 2557 | #endif |
| 2558 | // Ensure power down mode is valid |
| 2559 | #if CFG_POWER_DOWN_MODE != POWER_DOWN_BY_CHIP_SELECT |
| 2560 | #if CFG_POWER_DOWN_MODE != POWER_DOWN_BY_CHANNEL |
| 2561 | #error BLDCFG: Invalid power down mode set |
| 2562 | #endif |
| 2563 | #endif |
| 2564 | |
| 2565 | /***************************************************************************** |
| 2566 | * |
| 2567 | * Process the option logic, setting local control variables |
| 2568 | * |
| 2569 | ****************************************************************************/ |
| 2570 | #if OPTION_ACPI_PSTATES == TRUE |
| 2571 | #define OPTFCN_ACPI_TABLES CreateAcpiTablesMain |
| 2572 | #define OPTFCN_GATHER_DATA PStateGatherData |
| 2573 | #if OPTION_MULTISOCKET == TRUE |
| 2574 | #define OPTFCN_PSTATE_LEVELING PStateLeveling |
| 2575 | #else |
| 2576 | #define OPTFCN_PSTATE_LEVELING CommonReturnAgesaSuccess |
| 2577 | #endif |
| 2578 | #else |
| 2579 | #define OPTFCN_ACPI_TABLES CommonReturnAgesaSuccess |
| 2580 | #define OPTFCN_GATHER_DATA CommonReturnAgesaSuccess |
| 2581 | #define OPTFCN_PSTATE_LEVELING CommonReturnAgesaSuccess |
| 2582 | #endif |
| 2583 | |
| 2584 | |
| 2585 | /***************************************************************************** |
| 2586 | * |
| 2587 | * Include the structure definitions for the defaults table structures |
| 2588 | * |
| 2589 | ****************************************************************************/ |
Kyösti Mälkki | 062ef1c | 2016-04-19 15:18:02 +0300 | [diff] [blame] | 2590 | #include <CommonReturns.h> |
| 2591 | #include <agesa-entry-cfg.h> |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2592 | #include "Options.h" |
| 2593 | #include "OptionCpuFamiliesInstall.h" |
| 2594 | #include "OptionsHt.h" |
| 2595 | #include "OptionHtInstall.h" |
| 2596 | #include "OptionMemory.h" |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2597 | #include "OptionMemoryInstall.h" |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2598 | #include "OptionCpuFeaturesInstall.h" |
| 2599 | #include "OptionDmi.h" |
| 2600 | #include "OptionDmiInstall.h" |
| 2601 | #include "OptionPstate.h" |
| 2602 | #include "OptionPstateInstall.h" |
| 2603 | #include "OptionWhea.h" |
| 2604 | #include "OptionWheaInstall.h" |
| 2605 | #include "OptionSrat.h" |
| 2606 | #include "OptionSratInstall.h" |
| 2607 | #include "OptionSlit.h" |
| 2608 | #include "OptionSlitInstall.h" |
| 2609 | #include "OptionMultiSocket.h" |
| 2610 | #include "OptionMultiSocketInstall.h" |
| 2611 | #include "OptionIdsInstall.h" |
| 2612 | #include "OptionGfxRecovery.h" |
| 2613 | #include "OptionGfxRecoveryInstall.h" |
| 2614 | #include "OptionGnb.h" |
| 2615 | #include "OptionGnbInstall.h" |
| 2616 | #include "OptionS3ScriptInstall.h" |
| 2617 | #include "OptionFchInstall.h" |
| 2618 | #include "OptionMmioMapInstall.h" |
| 2619 | |
| 2620 | |
| 2621 | /***************************************************************************** |
| 2622 | * |
| 2623 | * Generate the output structures (defaults tables) |
| 2624 | * |
| 2625 | ****************************************************************************/ |
| 2626 | |
Arthur Heymans | 8d3640d | 2022-05-16 12:27:36 +0200 | [diff] [blame^] | 2627 | CONST FCH_PLATFORM_POLICY FchUserOptions = { |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2628 | CFG_SMBUS0_BASE_ADDRESS, // CfgSmbus0BaseAddress |
| 2629 | CFG_SMBUS1_BASE_ADDRESS, // CfgSmbus1BaseAddress |
| 2630 | CFG_SIO_PME_BASE_ADDRESS, // CfgSioPmeBaseAddress |
| 2631 | CFG_ACPI_PM1_EVT_BLOCK_ADDRESS, // CfgAcpiPm1EvtBlkAddr |
| 2632 | CFG_ACPI_PM1_CNT_BLOCK_ADDRESS, // CfgAcpiPm1CntBlkAddr |
| 2633 | CFG_ACPI_PM_TMR_BLOCK_ADDRESS, // CfgAcpiPmTmrBlkAddr |
| 2634 | CFG_ACPI_CPU_CNT_BLOCK_ADDRESS, // CfgCpuControlBlkAddr |
| 2635 | CFG_ACPI_GPE0_BLOCK_ADDRESS, // CfgAcpiGpe0BlkAddr |
| 2636 | CFG_SMI_CMD_PORT_ADDRESS, // CfgSmiCmdPortAddr |
| 2637 | CFG_ACPI_PMA_CNTBLK_ADDRESS, // CfgAcpiPmaCntBlkAddr |
| 2638 | CFG_GEC_SHADOW_ROM_BASE, // CfgGecShadowRomBase |
| 2639 | CFG_WATCHDOG_TIMER_BASE, // CfgWatchDogTimerBase |
| 2640 | CFG_SPI_ROM_BASE_ADDRESS, // CfgSpiRomBaseAddress |
| 2641 | CFG_HPET_BASE_ADDRESS, // CfgHpetBaseAddress |
| 2642 | 0, |
| 2643 | CFG_SMBUS_SSID, // CfgSmbusSsid |
| 2644 | CFG_IDE_SSID, // CfgIdeSsid |
| 2645 | CFG_SATA_AHCI_SSID, // CfgSataAhciSsid |
| 2646 | CFG_SATA_IDE_SSID, // CfgSataIdeSsid |
| 2647 | CFG_SATA_RAID5_SSID, // CfgSataRaid5Ssid |
| 2648 | CFG_SATA_RAID_SSID, // CfgSataRaidSsid |
| 2649 | CFG_EHCI_SSID, // CfgEhcidSsid |
| 2650 | CFG_OHCI_SSID, // CfgOhcidSsid |
| 2651 | CFG_LPC_SSID, // CfgLpcSsid |
| 2652 | CFG_SD_SSID, // CfgSdSsid |
| 2653 | CFG_XHCI_SSID, // CfgXhciSsid |
| 2654 | CFG_FCH_PORT80_BEHIND_PCIB, // CfgFchPort80BehindPcib |
| 2655 | CFG_FCH_ENABLE_ACPI_SLEEP_TRAP, // CfgFchEnableAcpiSleepTrap |
| 2656 | CFG_FCH_GPP_LINK_CONFIG, // CfgFchGppLinkConfig |
| 2657 | CFG_FCH_GPP_PORT0_PRESENT, // CfgFchGppPort0Present |
| 2658 | CFG_FCH_GPP_PORT1_PRESENT, // CfgFchGppPort1Present |
| 2659 | CFG_FCH_GPP_PORT2_PRESENT, // CfgFchGppPort2Present |
| 2660 | CFG_FCH_GPP_PORT3_PRESENT, // CfgFchGppPort3Present |
| 2661 | CFG_FCH_GPP_PORT0_HOTPLUG, // CfgFchGppPort0HotPlug |
| 2662 | CFG_FCH_GPP_PORT1_HOTPLUG, // CfgFchGppPort1HotPlug |
| 2663 | CFG_FCH_GPP_PORT2_HOTPLUG, // CfgFchGppPort2HotPlug |
| 2664 | CFG_FCH_GPP_PORT3_HOTPLUG, // CfgFchGppPort3HotPlug |
| 2665 | |
| 2666 | CFG_FCH_ESATA_PORT_BITMAP, // CfgFchEsataPortBitMap |
| 2667 | CFG_FCH_IR_PIN_CONTROL, // CfgFchIrPinControl |
| 2668 | CFG_FCH_SD_CLOCK_CONTROL, // CfgFchSdClockControl |
| 2669 | CFG_FCH_SCI_MAP_LIST, // *CfgFchSciMapControl |
| 2670 | CFG_FCH_SATA_PHY_LIST, // *CfgFchSataPhyControl |
| 2671 | CFG_FCH_GPIO_CONTROL_LIST // *CfgFchGpioControl |
| 2672 | }; |
| 2673 | |
Arthur Heymans | 8d3640d | 2022-05-16 12:27:36 +0200 | [diff] [blame^] | 2674 | CONST BUILD_OPT_CFG UserOptions = { |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2675 | { // AGESA version string |
| 2676 | AGESA_CODE_SIGNATURE, // code header Signature |
| 2677 | AGESA_PACKAGE_STRING, // 8 character ID |
| 2678 | AGESA_VERSION_STRING, // 12 character version string |
| 2679 | 0 // null string terminator |
| 2680 | }, |
| 2681 | //Build Option Area |
| 2682 | OPTION_UDIMMS, //UDIMMS |
| 2683 | OPTION_RDIMMS, //RDIMMS |
| 2684 | OPTION_LRDIMMS, //LRDIMMS |
| 2685 | OPTION_ECC, //ECC |
| 2686 | OPTION_BANK_INTERLEAVE, //BANK_INTERLEAVE |
| 2687 | OPTION_DCT_INTERLEAVE, //DCT_INTERLEAVE |
| 2688 | OPTION_NODE_INTERLEAVE, //NODE_INTERLEAVE |
| 2689 | OPTION_PARALLEL_TRAINING, //PARALLEL_TRAINING |
| 2690 | OPTION_ONLINE_SPARE, //ONLINE_SPARE |
| 2691 | OPTION_MEM_RESTORE, //MEM CONTEXT RESTORE |
| 2692 | OPTION_MULTISOCKET, //MULTISOCKET |
| 2693 | OPTION_ACPI_PSTATES, //ACPI_PSTATES |
| 2694 | OPTION_CPU_PSTATE_HPC_MODE, //High Preformace Computing (HPC) mode |
| 2695 | FALSE, |
| 2696 | FALSE, |
| 2697 | OPTION_SRAT, //SRAT |
| 2698 | OPTION_SLIT, //SLIT |
| 2699 | OPTION_WHEA, //WHEA |
| 2700 | OPTION_DMI, //DMI |
| 2701 | OPTION_EARLY_SAMPLES, //EARLY_SAMPLES |
| 2702 | OPTION_ADDR_TO_CS_TRANSLATOR, //ADDR_TO_CS_TRANSLATOR |
| 2703 | |
| 2704 | //Build Configuration Area |
| 2705 | CFG_PCI_MMIO_BASE, |
| 2706 | CFG_PCI_MMIO_SIZE, |
| 2707 | { |
| 2708 | // CoreVrm |
| 2709 | { |
| 2710 | CFG_VRM_CURRENT_LIMIT, // VrmCurrentLimit |
| 2711 | CFG_VRM_LOW_POWER_THRESHOLD, // VrmLowPowerThershold |
| 2712 | CFG_VRM_SLEW_RATE, // VrmSlewRate |
| 2713 | CFG_VRM_ADDITIONAL_DELAY, // VrmAdditionalDelay |
| 2714 | CFG_VRM_HIGH_SPEED_ENABLE, // VrmHiSpeedEnable |
| 2715 | CFG_VRM_MAXIMUM_CURRENT_LIMIT, // VrmInrushCurrentLimit |
| 2716 | CFG_VRM_SVI_OCP_LEVEL // VrmSviOcpLevel |
| 2717 | }, |
| 2718 | // NbVrm |
| 2719 | { |
| 2720 | CFG_VRM_NB_CURRENT_LIMIT, // VrmNbCurrentLimit |
| 2721 | CFG_VRM_NB_LOW_POWER_THRESHOLD, // VrmNbLowPowerThershold |
| 2722 | CFG_VRM_NB_SLEW_RATE, // VrmNbSlewRate |
| 2723 | CFG_VRM_NB_ADDITIONAL_DELAY, // VrmNbAdditionalDelay |
| 2724 | CFG_VRM_NB_HIGH_SPEED_ENABLE, // VrmNbHiSpeedEnable |
| 2725 | CFG_VRM_NB_MAXIMUM_CURRENT_LIMIT, // VrmNbInrushCurrentLimit |
| 2726 | CFG_VRM_NB_SVI_OCP_LEVEL // VrmNbSviOcpLevel |
| 2727 | } |
| 2728 | }, |
| 2729 | CFG_PLAT_NUM_IO_APICS, //PlatformApicIoNumber |
| 2730 | CFG_MEM_INIT_PSTATE, //MemoryInitPstate |
| 2731 | CFG_C1E_MODE, //C1eMode |
| 2732 | CFG_C1E_OPDATA, //C1ePlatformData |
| 2733 | CFG_C1E_OPDATA1, //C1ePlatformData1 |
| 2734 | CFG_C1E_OPDATA2, //C1ePlatformData2 |
| 2735 | CFG_C1E_OPDATA3, //C1ePlatformData3 |
| 2736 | CFG_CSTATE_MODE, //CStateMode |
| 2737 | CFG_CSTATE_OPDATA, //CStatePlatformData |
| 2738 | CFG_CSTATE_IO_BASE_ADDRESS, //CStateIoBaseAddress |
| 2739 | CFG_CPB_MODE, //CpbMode |
| 2740 | LOW_POWER_PSTATE_FOR_PROCHOT_AUTO, //Low power Pstate for PROCHOT, it's always set to 'AUTO' |
| 2741 | CFG_CORE_LEVELING_MODE, //CoreLevelingCofig |
| 2742 | { |
| 2743 | CFG_PLATFORM_CONTROL_FLOW_MODE, // The platform's control flow mode. |
| 2744 | CFG_USE_HT_ASSIST, // CfgUseHtAssist |
| 2745 | CFG_USE_ATM_MODE, // CfgUseAtmMode |
| 2746 | CFG_USE_32_BYTE_REFRESH, // Display Refresh uses 32 byte packets. |
| 2747 | CFG_USE_VARIABLE_MCT_ISOC_PRIORITY, // The Memory controller will be set to Variable Isoc Priority. |
| 2748 | // ADVANCED_PERFORMANCE_PROFILE |
| 2749 | { |
| 2750 | CFG_PERFORMANCE_HARDWARE_PREFETCHER, // Hardware prefetcher mode |
| 2751 | CFG_PERFORMANCE_SOFTWARE_PREFETCHES, // Software prefetcher mode |
| 2752 | CFG_PERFORMANCE_DRAM_PREFETCHER // Dram prefetcher mode |
| 2753 | }, |
| 2754 | CFG_PLATFORM_POWER_POLICY_MODE // The platform's power policy mode. |
| 2755 | }, |
| 2756 | (CPU_HT_DEEMPHASIS_LEVEL *)CFG_PLATFORM_DEEMPHASIS_LIST, // Deemphasis settings |
| 2757 | CFG_AMD_PLATFORM_TYPE, //AmdPlatformType |
| 2758 | CFG_AMD_PSTATE_CAP_VALUE, // Amd pstate ceiling enabling deck |
| 2759 | |
| 2760 | CFG_MEMORY_BUS_FREQUENCY_LIMIT, // CfgMemoryBusFrequencyLimit |
| 2761 | CFG_MEMORY_MODE_UNGANGED, // CfgMemoryModeUnganged |
| 2762 | CFG_MEMORY_QUAD_RANK_CAPABLE, // CfgMemoryQuadRankCapable |
| 2763 | CFG_MEMORY_QUADRANK_TYPE, // CfgMemoryQuadrankType |
| 2764 | CFG_MEMORY_RDIMM_CAPABLE, // CfgMemoryRDimmCapable |
| 2765 | CFG_MEMORY_LRDIMM_CAPABLE, // CfgMemoryLRDimmCapable |
| 2766 | CFG_MEMORY_UDIMM_CAPABLE, // CfgMemoryUDimmCapable |
| 2767 | CFG_MEMORY_SODIMM_CAPABLE, // CfgMemorySodimmCapable |
| 2768 | CFG_LIMIT_MEMORY_TO_BELOW_1TB, // CfgLimitMemoryToBelow1Tb |
| 2769 | CFG_MEMORY_ENABLE_BANK_INTERLEAVING, // CfgMemoryEnableBankInterleaving |
| 2770 | CFG_MEMORY_ENABLE_NODE_INTERLEAVING, // CfgMemoryEnableNodeInterleaving |
| 2771 | CFG_MEMORY_CHANNEL_INTERLEAVING, // CfgMemoryChannelInterleaving |
| 2772 | CFG_MEMORY_POWER_DOWN, // CfgMemoryPowerDown |
| 2773 | CFG_POWER_DOWN_MODE, // CfgPowerDownMode |
| 2774 | CFG_ONLINE_SPARE, // CfgOnlineSpare |
| 2775 | CFG_MEMORY_PARITY_ENABLE, // CfgMemoryParityEnable |
| 2776 | CFG_BANK_SWIZZLE, // CfgBankSwizzle |
| 2777 | CFG_TIMING_MODE_SELECT, // CfgTimingModeSelect |
| 2778 | CFG_MEMORY_CLOCK_SELECT, // CfgMemoryClockSelect |
| 2779 | CFG_DQS_TRAINING_CONTROL, // CfgDqsTrainingControl |
| 2780 | CFG_IGNORE_SPD_CHECKSUM, // CfgIgnoreSpdChecksum |
| 2781 | CFG_USE_BURST_MODE, // CfgUseBurstMode |
| 2782 | CFG_MEMORY_ALL_CLOCKS_ON, // CfgMemoryAllClocksOn |
| 2783 | CFG_ENABLE_ECC_FEATURE, // CfgEnableEccFeature |
| 2784 | CFG_ECC_REDIRECTION, // CfgEccRedirection |
| 2785 | CFG_SCRUB_DRAM_RATE, // CfgScrubDramRate |
| 2786 | CFG_SCRUB_L2_RATE, // CfgScrubL2Rate |
| 2787 | CFG_SCRUB_L3_RATE, // CfgScrubL3Rate |
| 2788 | CFG_SCRUB_IC_RATE, // CfgScrubIcRate |
| 2789 | CFG_SCRUB_DC_RATE, // CfgScrubDcRate |
| 2790 | CFG_ECC_SYNC_FLOOD, // CfgEccSyncFlood |
| 2791 | CFG_ECC_SYMBOL_SIZE, // CfgEccSymbolSize |
| 2792 | CFG_HEAP_DRAM_ADDRESS, // CfgHeapDramAddress |
| 2793 | CFG_1GB_ALIGN, // CfgNodeMem1GBAlign |
| 2794 | CFG_S3_LATE_RESTORE, // CfgS3LateRestore |
| 2795 | CFG_ACPI_PSTATE_PSD_INDPX, // CfgAcpiPstateIndependent |
| 2796 | (AP_MTRR_SETTINGS *) CFG_AP_MTRR_SETTINGS_LIST, // CfgApMtrrSettingsList |
| 2797 | CFG_UMA_MODE, // CfgUmaMode |
| 2798 | CFG_UMA_SIZE, // CfgUmaSize |
| 2799 | CFG_UMA_ABOVE4G, // CfgUmaAbove4G |
| 2800 | CFG_UMA_ALIGNMENT, // CfgUmaAlignment |
| 2801 | CFG_PROCESSOR_SCOPE_IN_SB, // CfgProcessorScopeInSb |
| 2802 | CFG_PROCESSOR_SCOPE_NAME0, // CfgProcessorScopeName0 |
| 2803 | CFG_PROCESSOR_SCOPE_NAME1, // CfgProcessorScopeName1 |
| 2804 | CFG_GNB_HD_AUDIO, // CfgGnbHdAudio |
| 2805 | CFG_ABM_SUPPORT, // CfgAbmSupport |
| 2806 | CFG_DYNAMIC_REFRESH_RATE, // CfgDynamicRefreshRate |
| 2807 | CFG_LCD_BACK_LIGHT_CONTROL, // CfgLcdBackLightControl |
| 2808 | CFG_GNB_STEREO_3D_PINOUT, // CfgGnb3dStereoPinIndex |
| 2809 | CFG_TEMP_PCIE_MMIO_BASE_ADDRESS, // CfgTempPcieMmioBaseAddress |
| 2810 | CFG_GNB_IGPU_SSID, // CfgGnbIGPUSSID |
| 2811 | CFG_GNB_HDAUDIO_SSID, // CfgGnbHDAudioSSID |
| 2812 | CFG_GNB_PCIE_SSID, // CfgGnbPcieSSID |
| 2813 | CFG_GFX_LVDS_SPREAD_SPECTRUM, // CfgLvdsSpreadSpectrum |
| 2814 | CFG_GFX_LVDS_SPREAD_SPECTRUM_RATE, // CfgLvdsSpreadSpectrumRate |
| 2815 | |
| 2816 | &FchUserOptions, // FchBldCfg |
| 2817 | |
| 2818 | CFG_IOMMU_SUPPORT, // CfgIommuSupport |
| 2819 | CFG_LVDS_POWER_ON_SEQ_DIGON_TO_DE, // CfgLvdsPowerOnSeqDigonToDe |
| 2820 | CFG_LVDS_POWER_ON_SEQ_DE_TO_VARY_BL, // CfgLvdsPowerOnSeqDeToVaryBl |
| 2821 | CFG_LVDS_POWER_ON_SEQ_DE_TO_DIGON, // CfgLvdsPowerOnSeqDeToDigon |
| 2822 | CFG_LVDS_POWERS_ON_SEQ_VARY_BL_TO_DE, // CfgLvdsPowerOnSeqVaryBlToDe |
| 2823 | CFG_LVDS_POWER_ON_SEQ_ON_TO_OFF_DELAY,// CfgLvdsPowerOnSeqOnToOffDelay |
| 2824 | CFG_LVDS_POWER_ON_SEQ_VARY_BL_TO_BLON,// CfgLvdsPowerOnSeqVaryBlToBlon |
| 2825 | CFG_LVDS_POWER_ON_SEQ_BLON_TO_VARY_BL,// CfgLvdsPowerOnSeqBlonToVaryBl |
| 2826 | CFG_LVDS_MAX_PIXEL_CLOCK_FREQ, // CfgLvdsMaxPixelClockFreq |
| 2827 | CFG_LCD_BIT_DEPTH_CONTROL_VALUE, // CfgLcdBitDepthControlValue |
| 2828 | CFG_LVDS_24BBP_PANEL_MODE, // CfgLvds24bbpPanelMode |
| 2829 | {{ |
| 2830 | CFG_LVDS_MISC_888_FPDI_MODE, // CfgLvdsMiscControl |
| 2831 | CFG_LVDS_MISC_DL_CH_SWAP, // CfgLvdsMiscControl |
| 2832 | CFG_LVDS_MISC_VSYNC_ACTIVE_LOW, // CfgLvdsMiscControl |
| 2833 | CFG_LVDS_MISC_HSYNC_ACTIVE_LOW, // CfgLvdsMiscControl |
| 2834 | CFG_LVDS_MISC_BLON_ACTIVE_LOW, // CfgLvdsMiscControl |
| 2835 | CFG_LVDS_MISC_VOLT_OVERWRITE_ENABLE, // CfgLvdsMiscControl |
| 2836 | }}, |
| 2837 | CFG_PCIE_REFCLK_SPREAD_SPECTRUM, // CfgPcieRefClkSpreadSpectrum |
| 2838 | CFG_ENABLE_EXTERNAL_VREF, // CfgExternalVrefCtlFeature |
| 2839 | CFG_FORCE_TRAIN_MODE, // CfgForceTrainMode |
| 2840 | CFG_GNB_REMOTE_DISPLAY_SUPPORT, // CfgGnbRemoteDisplaySupport |
| 2841 | (IOMMU_EXCLUSION_RANGE_DESCRIPTOR *) CFG_IOMMU_EXCLUSION_RANGE_LIST, // CfgIvrsExclusionRangeList |
| 2842 | CFG_GNB_SYNCFLOOD_PIN_AS_NMI, // CfgGnbSyncFloodPinAsNmi |
| 2843 | CFG_IGPU_ENABLE_DISABLE_POLICY, // CfgIgpuEnableDisablePolicy |
| 2844 | CFG_GNB_THERMAL_SENSOR_CORRECTION, // CfgGnbSwTjOffset |
| 2845 | CFG_LVDS_MISC_VOLT_ADJUSTMENT, // CfgLvdsMiscVoltAdjustment |
| 2846 | {{ |
| 2847 | 0, // Reserved |
| 2848 | CFG_DISPLAY_MISC_VBIOS_FAST_BOOT_ENABLE, // CfgDisplayMiscControl.VbiosFastBootEn |
| 2849 | 0, // Reserved |
| 2850 | }}, |
| 2851 | 0, //reserved... |
| 2852 | }; |
| 2853 | |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 2854 | CONST DISPATCH_TABLE ROMDATA ApDispatchTable[] = |
| 2855 | { |
| 2856 | IDS_LATE_RUN_AP_TASK |
| 2857 | // Get DMI info |
| 2858 | CPU_DMI_AP_GET_TYPE4_TYPE7 |
| 2859 | // Probe filter enable |
| 2860 | L3_FEAT_AP_DISABLE_CACHE |
| 2861 | L3_FEAT_AP_ENABLE_CACHE |
| 2862 | // Cpu Late Init |
| 2863 | CPU_LATE_INIT_AP_TASK |
| 2864 | { 0, NULL } |
| 2865 | }; |
| 2866 | |
| 2867 | #if AGESA_ENTRY_INIT_EARLY == TRUE |
| 2868 | #if IDSOPT_IDS_ENABLED == TRUE |
| 2869 | #if IDSOPT_TRACING_ENABLED == TRUE |
| 2870 | #define MAKE_DBG_STR(x, y) MAKE_AS_A_STRING(x : y) |
| 2871 | CONST CHAR8 *BldOptDebugOutput[] = { |
| 2872 | #if IDS_TRACE_SHOW_BLD_OPT_CFG == TRUE |
| 2873 | //Build Option Area |
| 2874 | MAKE_DBG_STR (\nOptUDIMM, OPTION_UDIMMS) |
| 2875 | MAKE_DBG_STR (\nOptRDIMM, OPTION_RDIMMS) |
| 2876 | MAKE_DBG_STR (\nOptLRDIMM, OPTION_LRDIMMS) |
| 2877 | MAKE_DBG_STR (\nOptECC, OPTION_ECC) |
| 2878 | MAKE_DBG_STR (\nOptCsIntlv, OPTION_BANK_INTERLEAVE) |
| 2879 | MAKE_DBG_STR (\nOptDctIntlv, OPTION_DCT_INTERLEAVE) |
| 2880 | MAKE_DBG_STR (\nOptNodeIntlv, OPTION_NODE_INTERLEAVE) |
| 2881 | //MAKE_DBG_STR (\nOptParallelTraining, OPTION_PARALLEL_TRAINING) |
| 2882 | MAKE_DBG_STR (\nOptOnlineSpare, OPTION_ONLINE_SPARE) |
| 2883 | MAKE_DBG_STR (\nOptAddr2CsTranslator, OPTION_ADDR_TO_CS_TRANSLATOR) |
| 2884 | MAKE_DBG_STR (\nOptMemRestore, OPTION_MEM_RESTORE) |
| 2885 | MAKE_DBG_STR (\nOptMultiSocket, OPTION_MULTISOCKET) |
| 2886 | MAKE_DBG_STR (\nOptPstates, OPTION_ACPI_PSTATES) |
| 2887 | MAKE_DBG_STR (\nOptSRAT, OPTION_SRAT) |
| 2888 | MAKE_DBG_STR (\nOptSLIT, OPTION_SLIT) |
| 2889 | MAKE_DBG_STR (\nOptWHEA, OPTION_WHEA) |
| 2890 | MAKE_DBG_STR (\nOptDMI, OPTION_DMI) |
| 2891 | MAKE_DBG_STR (\nOptEarlySamples, OPTION_EARLY_SAMPLES), |
| 2892 | |
| 2893 | //Build Configuration Area |
| 2894 | // CoreVrm |
| 2895 | MAKE_DBG_STR (\nVrmCurrentLimit , CFG_VRM_CURRENT_LIMIT) |
| 2896 | MAKE_DBG_STR (\nVrmLowPowerThreshold , CFG_VRM_LOW_POWER_THRESHOLD) |
| 2897 | MAKE_DBG_STR (\nVrmSlewRate , CFG_VRM_SLEW_RATE) |
| 2898 | MAKE_DBG_STR (\nVrmAdditionalDelay , CFG_VRM_ADDITIONAL_DELAY) |
| 2899 | MAKE_DBG_STR (\nVrmHiSpeedEnable , CFG_VRM_HIGH_SPEED_ENABLE) |
| 2900 | MAKE_DBG_STR (\nVrmInrushCurrentLimit, CFG_VRM_MAXIMUM_CURRENT_LIMIT) |
| 2901 | MAKE_DBG_STR (\nVrmSviOcpLevel, CFG_VRM_SVI_OCP_LEVEL) |
| 2902 | // NbVrm |
| 2903 | MAKE_DBG_STR (\nNbVrmCurrentLimit , CFG_VRM_NB_CURRENT_LIMIT) |
| 2904 | MAKE_DBG_STR (\nNbVrmLowPowerThreshold , CFG_VRM_NB_LOW_POWER_THRESHOLD) |
| 2905 | MAKE_DBG_STR (\nNbVrmSlewRate , CFG_VRM_NB_SLEW_RATE) |
| 2906 | MAKE_DBG_STR (\nNbVrmAdditionalDelay , CFG_VRM_NB_ADDITIONAL_DELAY) |
| 2907 | MAKE_DBG_STR (\nNbVrmHiSpeedEnable , CFG_VRM_NB_HIGH_SPEED_ENABLE) |
| 2908 | MAKE_DBG_STR (\nNbVrmInrushCurrentLimit, CFG_VRM_NB_MAXIMUM_CURRENT_LIMIT), |
| 2909 | MAKE_DBG_STR (\nNbVrmSviOcpLevel, CFG_VRM_NB_SVI_OCP_LEVEL) |
| 2910 | |
| 2911 | MAKE_DBG_STR (\nNumIoApics , CFG_PLAT_NUM_IO_APICS) |
| 2912 | MAKE_DBG_STR (\nMemInitPstate , CFG_MEM_INIT_PSTATE) |
| 2913 | MAKE_DBG_STR (\nC1eMode , CFG_C1E_MODE) |
| 2914 | MAKE_DBG_STR (\nC1eOpData , CFG_C1E_OPDATA) |
| 2915 | MAKE_DBG_STR (\nC1eOpdata1 , CFG_C1E_OPDATA1) |
| 2916 | MAKE_DBG_STR (\nC1eOpdata2 , CFG_C1E_OPDATA2) |
| 2917 | MAKE_DBG_STR (\nC1eOpdata3 , CFG_C1E_OPDATA3) |
| 2918 | MAKE_DBG_STR (\nCStateMode , CFG_CSTATE_MODE) |
| 2919 | MAKE_DBG_STR (\nCStateOpData , CFG_CSTATE_OPDATA) |
| 2920 | MAKE_DBG_STR (\nCStateIoBaseAddr , CFG_CSTATE_IO_BASE_ADDRESS) |
| 2921 | MAKE_DBG_STR (\nCpbMode , CFG_CPB_MODE) |
| 2922 | MAKE_DBG_STR (\nCoreLevelingMode , CFG_CORE_LEVELING_MODE), |
| 2923 | |
| 2924 | MAKE_DBG_STR (\nControlFlowMode , CFG_PLATFORM_CONTROL_FLOW_MODE) |
| 2925 | MAKE_DBG_STR (\nUseHtAssist , CFG_USE_HT_ASSIST) |
| 2926 | MAKE_DBG_STR (\nUseAtmMode , CFG_USE_ATM_MODE) |
| 2927 | MAKE_DBG_STR (\nUse32ByteRefresh , CFG_USE_32_BYTE_REFRESH) |
| 2928 | MAKE_DBG_STR (\nUseVarMctIsocPriority , CFG_USE_VARIABLE_MCT_ISOC_PRIORITY) |
| 2929 | MAKE_DBG_STR (\nPowerPolicy , CFG_PLATFORM_POWER_POLICY_MOD) |
| 2930 | |
| 2931 | MAKE_DBG_STR (\nDeemphasisList , CFG_PLATFORM_DEEMPHASIS_LIST) |
| 2932 | |
| 2933 | MAKE_DBG_STR (\nPciMmioAddr , CFG_PCI_MMIO_BASE) |
| 2934 | MAKE_DBG_STR (\nPciMmioSize , CFG_PCI_MMIO_SIZE) |
| 2935 | MAKE_DBG_STR (\nPlatformType , CFG_AMD_PLATFORM_TYPE) |
| 2936 | MAKE_DBG_STR (\nPstateCapValue , CFG_AMD_PSTATE_CAP_VALUE), |
| 2937 | |
| 2938 | MAKE_DBG_STR (\nMemBusFreqLimit , CFG_MEMORY_BUS_FREQUENCY_LIMIT) |
| 2939 | MAKE_DBG_STR (\nTimingModeSelect , CFG_TIMING_MODE_SELECT) |
| 2940 | MAKE_DBG_STR (\nMemoryClockSelect , CFG_MEMORY_CLOCK_SELECT) |
| 2941 | |
| 2942 | MAKE_DBG_STR (\nMemUnganged , CFG_MEMORY_MODE_UNGANGED) |
| 2943 | MAKE_DBG_STR (\nQRCap , CFG_MEMORY_QUAD_RANK_CAPABLE) |
| 2944 | MAKE_DBG_STR (\nQRType , CFG_MEMORY_QUADRANK_TYPE) |
| 2945 | MAKE_DBG_STR (\nRDimmCap , CFG_MEMORY_RDIMM_CAPABLE) |
| 2946 | MAKE_DBG_STR (\nLRDimmCap , CFG_MEMORY_LRDIMM_CAPABLE) |
| 2947 | MAKE_DBG_STR (\nUDimmCap , CFG_MEMORY_UDIMM_CAPABLE) |
| 2948 | MAKE_DBG_STR (\nSODimmCap , CFG_MEMORY_SODIMM_CAPABLE) |
| 2949 | MAKE_DBG_STR (\nDqsTrainingControl , CFG_DQS_TRAINING_CONTROL) |
| 2950 | MAKE_DBG_STR (\nIgnoreSpdChecksum , CFG_IGNORE_SPD_CHECKSUM) |
| 2951 | MAKE_DBG_STR (\nUseBurstMode , CFG_USE_BURST_MODE) |
| 2952 | MAKE_DBG_STR (\nAllMemClkOn , CFG_MEMORY_ALL_CLOCKS_ON), |
| 2953 | |
| 2954 | MAKE_DBG_STR (\nPowerDownEn , CFG_MEMORY_POWER_DOWN) |
| 2955 | MAKE_DBG_STR (\nPowerDownMode , CFG_POWER_DOWN_MODE) |
| 2956 | MAKE_DBG_STR (\nOnlineSpare , CFG_ONLINE_SPARE) |
| 2957 | MAKE_DBG_STR (\nAddrParityEn , CFG_MEMORY_PARITY_ENABLE) |
| 2958 | MAKE_DBG_STR (\nBankSwizzle , CFG_BANK_SWIZZLE) |
| 2959 | MAKE_DBG_STR (\nLimitBelow1TB , CFG_LIMIT_MEMORY_TO_BELOW_1TB) |
| 2960 | MAKE_DBG_STR (\nCsIntlvEn , CFG_MEMORY_ENABLE_BANK_INTERLEAVING) |
| 2961 | MAKE_DBG_STR (\nNodeIntlvEn , CFG_MEMORY_ENABLE_NODE_INTERLEAVING) |
| 2962 | MAKE_DBG_STR (\nDctIntlvEn , CFG_MEMORY_CHANNEL_INTERLEAVING), |
| 2963 | |
| 2964 | MAKE_DBG_STR (\nUmaMode , CFG_UMA_MODE) |
| 2965 | MAKE_DBG_STR (\nUmaSize , CFG_UMA_SIZE) |
| 2966 | MAKE_DBG_STR (\nUmaAbove4G , CFG_UMA_ABOVE4G) |
| 2967 | MAKE_DBG_STR (\nUmaAlignment , CFG_UMA_ALIGNMENT) |
| 2968 | |
| 2969 | MAKE_DBG_STR (\nEccEn , CFG_ENABLE_ECC_FEATURE) |
| 2970 | MAKE_DBG_STR (\nEccRedirect , CFG_ECC_REDIRECTION) |
| 2971 | MAKE_DBG_STR (\nScrubDramRate , CFG_SCRUB_DRAM_RATE) |
| 2972 | MAKE_DBG_STR (\nScrubL2Rate , CFG_SCRUB_L2_RATE) |
| 2973 | MAKE_DBG_STR (\nScrubL3Rate , CFG_SCRUB_L3_RATE) |
| 2974 | MAKE_DBG_STR (\nScrubIcRate , CFG_SCRUB_IC_RATE) |
| 2975 | MAKE_DBG_STR (\nScrubDcRate , CFG_SCRUB_DC_RATE) |
| 2976 | MAKE_DBG_STR (\nEccSyncFlood , CFG_ECC_SYNC_FLOOD) |
| 2977 | MAKE_DBG_STR (\nEccSymbolSize , CFG_ECC_SYMBOL_SIZE) |
| 2978 | MAKE_DBG_STR (\nHeapDramAddress , CFG_HEAP_DRAM_ADDRESS) |
| 2979 | MAKE_DBG_STR (\nNodeMem1GBAlign , CFG_1GB_ALIGN), |
| 2980 | |
| 2981 | MAKE_DBG_STR (\nS3LateRestore , CFG_S3_LATE_RESTORE) |
| 2982 | MAKE_DBG_STR (\nAcpiPstateIndependent , CFG_ACPI_PSTATE_PSD_INDPX) |
| 2983 | |
| 2984 | MAKE_DBG_STR (\nApMtrrSettingsList , CFG_AP_MTRR_SETTINGS_LIST) |
| 2985 | |
| 2986 | MAKE_DBG_STR (\nProcessorScopeInSb , CFG_PROCESSOR_SCOPE_IN_SB) |
| 2987 | MAKE_DBG_STR (\nProcessorScopeName0 , CFG_PROCESSOR_SCOPE_NAME0) |
| 2988 | MAKE_DBG_STR (\nProcessorScopeName1 , CFG_PROCESSOR_SCOPE_NAME1) |
| 2989 | MAKE_DBG_STR (\nGnbHdAudio , CFG_GNB_HD_AUDIO) |
| 2990 | MAKE_DBG_STR (\nAbmSupport , CFG_ABM_SUPPORT) |
| 2991 | MAKE_DBG_STR (\nDynamicRefreshRate , CFG_DYNAMIC_REFRESH_RATE) |
| 2992 | MAKE_DBG_STR (\nLcdBackLightControl , CFG_LCD_BACK_LIGHT_CONTROL) |
| 2993 | MAKE_DBG_STR (\nGnb3dStereoPinIndex , CFG_GNB_STEREO_3D_PINOUT) |
| 2994 | MAKE_DBG_STR (\nTempPcieMmioBaseAddress, CFG_TEMP_PCIE_MMIO_BASE_ADDRESS), |
| 2995 | MAKE_DBG_STR (\nCfgGnbIGPUSSID , CFG_GNB_IGPU_SSID) |
| 2996 | MAKE_DBG_STR (\nCfgGnbHDAudioSSID , CFG_GNB_HDAUDIO_SSID) |
| 2997 | MAKE_DBG_STR (\nCfgGnbPcieSSID , CFG_GNB_PCIE_SSID) |
| 2998 | MAKE_DBG_STR (\nCfgIommuSupport , CFG_IOMMU_SUPPORT) |
| 2999 | MAKE_DBG_STR (\nCfgLvdsSpreadSpectrum , CFG_GFX_LVDS_SPREAD_SPECTRUM) |
| 3000 | MAKE_DBG_STR (\nCfgLvdsSpreadSpectrumRate , CFG_GFX_LVDS_SPREAD_SPECTRUM_RATE) |
| 3001 | MAKE_DBG_STR (\nCfgLvdsPowerOnSeqDigonToDe , CFG_LVDS_POWER_ON_SEQ_DIGON_TO_DE) |
| 3002 | MAKE_DBG_STR (\nCfgLvdsPowerOnSeqDeToVaryBl , CFG_LVDS_POWER_ON_SEQ_DE_TO_VARY_BL) |
| 3003 | MAKE_DBG_STR (\nCfgLvdsPowerOnSeqDeToDigon , CFG_LVDS_POWER_ON_SEQ_DE_TO_DIGON) |
| 3004 | MAKE_DBG_STR (\nCfgLvdsPowerOnSeqVaryBlToDe , CFG_LVDS_POWERS_ON_SEQ_VARY_BL_TO_DE) |
| 3005 | MAKE_DBG_STR (\nCfgLvdsPowerOnSeqOnToOffDelay , CFG_LVDS_POWER_ON_SEQ_ON_TO_OFF_DELAY) |
| 3006 | MAKE_DBG_STR (\nCfgLvdsPowerOnSeqVaryBlToBlon , CFG_LVDS_POWER_ON_SEQ_VARY_BL_TO_BLON) |
| 3007 | MAKE_DBG_STR (\nCfgLvdsPowerOnSeqBlonToVaryBl , CFG_LVDS_POWER_ON_SEQ_BLON_TO_VARY_BL) |
| 3008 | MAKE_DBG_STR (\nCfgLvdsMaxPixelClockFreq , CFG_LVDS_MAX_PIXEL_CLOCK_FREQ) |
| 3009 | MAKE_DBG_STR (\nCfgLcdBitDepthControlValue , CFG_LCD_BIT_DEPTH_CONTROL_VALUE) |
| 3010 | MAKE_DBG_STR (\nCfgLvds24bbpPanelMode , CFG_LVDS_24BBP_PANEL_MODE), |
| 3011 | MAKE_DBG_STR (\nCfgLvdsMiscControl.FpdiMode , CFG_LVDS_MISC_888_FPDI_MODE), |
| 3012 | MAKE_DBG_STR (\nCfgLvdsMiscControl.DlChSwap , CFG_LVDS_MISC_DL_CH_SWAP), |
| 3013 | MAKE_DBG_STR (\nCfgLvdsMiscControl.VsyncActiveLow , CFG_LVDS_MISC_VSYNC_ACTIVE_LOW), |
| 3014 | MAKE_DBG_STR (\nCfgLvdsMiscControl.HsyncActiveLow , CFG_LVDS_MISC_HSYNC_ACTIVE_LOW), |
| 3015 | MAKE_DBG_STR (\nCfgLvdsMiscControl.BLONActiveLow , CFG_LVDS_MISC_BLON_ACTIVE_LOW), |
| 3016 | MAKE_DBG_STR (\nCfgPcieRefClkSpreadSpectrum , CFG_PCIE_REFCLK_SPREAD_SPECTRUM), |
| 3017 | MAKE_DBG_STR (\nCfgExtVref , CFG_ENABLE_EXTERNAL_VREF), |
| 3018 | MAKE_DBG_STR (\nCfgForceTrainMode , CFG_FORCE_TRAIN_MODE), |
| 3019 | MAKE_DBG_STR (\nCfgGnbRemoteDisplaySupport , CFG_GNB_REMOTE_DISPLAY_CONFIG), |
| 3020 | MAKE_DBG_STR (\nCfgIvrsExclusionRangeList , CFG_IOMMU_EXCLUSION_RANGE_LIST), |
| 3021 | MAKE_DBG_STR (\nCfgGnbSyncFloodPinAsNmi , CFG_GNB_SYNCFLOOD_PIN_AS_NMI), |
| 3022 | MAKE_DBG_STR (\nCfgIgpuEnableDisablePolicy , CFG_IGPU_ENABLE_DISABLE_POLICY), |
| 3023 | MAKE_DBG_STR (\nCfgGnbSwTjOffset , CFG_GNB_THERMAL_SENSOR_CORRECTION), |
| 3024 | MAKE_DBG_STR (\nCfgDisplayMiscControl.VbiosFastBootEn , CFG_DISPLAY_MISC_VBIOS_FAST_BOOT_ENABLE), |
| 3025 | #endif |
| 3026 | NULL |
| 3027 | }; |
| 3028 | #endif |
| 3029 | #endif |
| 3030 | #endif |