Angel Pons | 381c4eb | 2020-04-03 01:22:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 2 | |
Elyes HAOUAS | 19f5ba8 | 2018-10-14 14:52:06 +0200 | [diff] [blame] | 3 | #include <AGESA.h> |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 4 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 5 | #define INSTALL_FT3_SOCKET_SUPPORT TRUE |
| 6 | #define INSTALL_FAMILY_16_MODEL_0x_SUPPORT TRUE |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 7 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 8 | //#define BLDOPT_REMOVE_UDIMMS_SUPPORT TRUE |
| 9 | //#define BLDOPT_REMOVE_RDIMMS_SUPPORT TRUE |
| 10 | #define BLDOPT_REMOVE_LRDIMMS_SUPPORT TRUE |
| 11 | //#define BLDOPT_REMOVE_ECC_SUPPORT TRUE |
| 12 | #define BLDOPT_REMOVE_SRAT FALSE |
| 13 | #define BLDOPT_REMOVE_WHEA FALSE |
| 14 | #define BLDOPT_REMOVE_CRAT TRUE |
| 15 | #define BLDOPT_REMOVE_CDIT TRUE |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 16 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 17 | /* Build configuration values here. */ |
| 18 | #define BLDCFG_VRM_NB_LOW_POWER_THRESHOLD 0 |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 19 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 20 | #define BLDCFG_AMD_PLATFORM_TYPE AMD_PLATFORM_MOBILE |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 21 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 22 | #define BLDCFG_MEMORY_RDIMM_CAPABLE FALSE |
| 23 | #define BLDCFG_MEMORY_UDIMM_CAPABLE TRUE |
| 24 | #define BLDCFG_MEMORY_SODIMM_CAPABLE TRUE |
| 25 | #define BLDCFG_MEMORY_CHANNEL_INTERLEAVING TRUE |
| 26 | #define BLDCFG_ENABLE_ECC_FEATURE TRUE |
| 27 | #define BLDCFG_ECC_SYNC_FLOOD TRUE |
| 28 | #define BLDCFG_UMA_ALLOCATION_MODE UMA_NONE |
| 29 | #define BLDCFG_IOMMU_SUPPORT FALSE |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 30 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 31 | #define BLDCFG_CFG_GNB_HD_AUDIO TRUE |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 32 | |
Angel Pons | 66ee42d | 2020-05-20 23:34:54 +0200 | [diff] [blame] | 33 | /* Include the files that instantiate the configuration definitions. */ |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 34 | #include "cpuRegisters.h" |
| 35 | #include "cpuFamRegisters.h" |
| 36 | #include "cpuFamilyTranslation.h" |
| 37 | #include "AdvancedApi.h" |
| 38 | #include "heapManager.h" |
| 39 | #include "CreateStruct.h" |
| 40 | #include "cpuFeatures.h" |
| 41 | #include "Table.h" |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 42 | #include "cpuEarlyInit.h" |
| 43 | #include "cpuLateInit.h" |
| 44 | #include "GnbInterface.h" |
| 45 | |
Arthur Heymans | b80de18 | 2022-05-16 15:29:53 +0200 | [diff] [blame] | 46 | CONST GPIO_CONTROL hp_abm_gpio[] = { |
Dave Frodin | 83405a1 | 2014-06-05 11:49:04 -0600 | [diff] [blame] | 47 | { 45, Function2, GpioOutEnB | Sticky }, // Signal input APU_SD_LED |
| 48 | { 49, Function2, PullUpB | PullDown | Sticky }, // Signal output APU_ABM_LED_UID |
| 49 | { 50, Function2, PullUpB | PullDown | Sticky }, // Signal output APU_ABM_LED_HEALTH |
| 50 | { 51, Function2, GpioOut | PullUpB | PullDown | Sticky }, // Signal output APU_ABM_LED_FAULT |
| 51 | { 57, Function2, GpioOutEnB | Sticky }, // Signal input SATA_PRSNT_L |
| 52 | { 58, Function2, GpioOutEnB | Sticky }, // Signal i/o APU_HDMI_CEC |
| 53 | { 64, Function2, GpioOutEnB | Sticky }, // Signal input SWC_APU_INT_L |
| 54 | { 68, Function0, GpioOutEnB | Sticky }, // Signal input CNTRL1_PRSNT |
| 55 | { 69, Function0, GpioOutEnB | Sticky }, // Signal input CNTRL2_PRSNT |
| 56 | { 71, Function0, GpioOut | PullUpB | PullDown | Sticky }, // Signal output APU_PROCHOT_L_R |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 57 | {-1} |
| 58 | }; |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 59 | #define BLDCFG_FCH_GPIO_CONTROL_LIST (hp_abm_gpio) |
Kyösti Mälkki | e75deb6 | 2014-06-26 09:12:54 +0300 | [diff] [blame] | 60 | |
Kyösti Mälkki | c8e4742 | 2017-08-31 08:52:12 +0300 | [diff] [blame] | 61 | #include <PlatformInstall.h> |