Angel Pons | 5c59680 | 2020-04-03 01:21:01 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 2 | |
Elyes HAOUAS | 19f5ba8 | 2018-10-14 14:52:06 +0200 | [diff] [blame] | 3 | #include <AGESA.h> |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 4 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 5 | /* Select the CPU family */ |
| 6 | #define INSTALL_FAMILY_15_MODEL_1x_SUPPORT TRUE |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 7 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 8 | /* Select the CPU socket type */ |
| 9 | #define INSTALL_FS1_SOCKET_SUPPORT TRUE |
| 10 | #define INSTALL_FP2_SOCKET_SUPPORT TRUE |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 11 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 12 | //#define BLDOPT_REMOVE_UDIMMS_SUPPORT TRUE |
| 13 | //#define BLDOPT_REMOVE_RDIMMS_SUPPORT TRUE |
| 14 | #define BLDOPT_REMOVE_LRDIMMS_SUPPORT TRUE |
| 15 | //#define BLDOPT_REMOVE_ECC_SUPPORT TRUE |
| 16 | #define BLDOPT_REMOVE_SRAT FALSE |
| 17 | #define BLDOPT_REMOVE_WHEA FALSE |
Paul Menzel | d354c08 | 2020-10-17 13:10:32 +0200 | [diff] [blame] | 18 | #define BLDOPT_REMOVE_CRAT TRUE |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 19 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 20 | /* Build configuration values here. */ |
| 21 | #define BLDCFG_AMD_PLATFORM_TYPE AMD_PLATFORM_MOBILE |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 22 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 23 | #define BLDCFG_MEMORY_RDIMM_CAPABLE FALSE |
| 24 | #define BLDCFG_MEMORY_UDIMM_CAPABLE TRUE |
| 25 | #define BLDCFG_MEMORY_SODIMM_CAPABLE TRUE |
| 26 | #define BLDCFG_MEMORY_CHANNEL_INTERLEAVING TRUE |
| 27 | #define BLDCFG_ENABLE_ECC_FEATURE TRUE |
| 28 | #define BLDCFG_ECC_SYNC_FLOOD FALSE |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 29 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 30 | #define BLDCFG_UMA_ALLOCATION_MODE UMA_SPECIFIED |
| 31 | #define BLDCFG_UMA_ALLOCATION_SIZE 0x2000 /* (0x2000 << 16) = 512M */ |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 32 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 33 | #define BLDCFG_IOMMU_SUPPORT FALSE |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 34 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 35 | #define BLDCFG_CFG_GNB_HD_AUDIO TRUE |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 36 | |
Angel Pons | 66ee42d | 2020-05-20 23:34:54 +0200 | [diff] [blame] | 37 | /* Include the files that instantiate the configuration definitions. */ |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 38 | #include "cpuRegisters.h" |
| 39 | #include "cpuFamRegisters.h" |
| 40 | #include "cpuFamilyTranslation.h" |
| 41 | #include "AdvancedApi.h" |
| 42 | #include "heapManager.h" |
| 43 | #include "CreateStruct.h" |
| 44 | #include "cpuFeatures.h" |
| 45 | #include "Table.h" |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 46 | #include "cpuEarlyInit.h" |
| 47 | #include "cpuLateInit.h" |
| 48 | #include "GnbInterface.h" |
| 49 | |
Arthur Heymans | 8d3640d | 2022-05-16 12:27:36 +0200 | [diff] [blame^] | 50 | CONST GPIO_CONTROL parmer_gpio[] = { |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 51 | {183, Function1, GpioIn | GpioOutEnB | PullUpB}, |
| 52 | {-1} |
| 53 | }; |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 54 | #define BLDCFG_FCH_GPIO_CONTROL_LIST (parmer_gpio) |
zbao | 323a923 | 2012-07-19 16:39:01 +0800 | [diff] [blame] | 55 | |
Kyösti Mälkki | c8e4742 | 2017-08-31 08:52:12 +0300 | [diff] [blame] | 56 | #include <PlatformInstall.h> |