Angel Pons | 08d9f95 | 2020-04-03 01:22:39 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 2 | |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 3 | #include <vendorcode/amd/agesa/f15tn/AGESA.h> |
| 4 | |
Angel Pons | 66ee42d | 2020-05-20 23:34:54 +0200 | [diff] [blame] | 5 | /* Include the files that instantiate the configuration definitions. */ |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 6 | #include <vendorcode/amd/agesa/f15tn/Include/AdvancedApi.h> |
| 7 | #include <vendorcode/amd/agesa/f15tn/Proc/CPU/cpuFamilyTranslation.h> |
| 8 | #include <vendorcode/amd/agesa/f15tn/Proc/CPU/Feature/cpuFeatures.h> |
| 9 | #include <vendorcode/amd/agesa/f15tn/Proc/CPU/heapManager.h> |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 10 | /* AGESA nonsense: the next two headers depend on heapManager.h */ |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 11 | #include <vendorcode/amd/agesa/f15tn/Proc/Common/CreateStruct.h> |
| 12 | #include <vendorcode/amd/agesa/f15tn/Proc/CPU/cpuEarlyInit.h> |
| 13 | /* These tables are optional and may be used to adjust memory timing settings */ |
| 14 | #include <vendorcode/amd/agesa/f15tn/Proc/Mem/mm.h> |
| 15 | #include <vendorcode/amd/agesa/f15tn/Proc/Mem/mn.h> |
| 16 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 17 | /* Select the CPU family */ |
| 18 | #define INSTALL_FAMILY_15_MODEL_1x_SUPPORT TRUE |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 19 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 20 | /* Select the CPU socket type */ |
| 21 | #define INSTALL_FM2_SOCKET_SUPPORT TRUE |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 22 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 23 | //#define BLDOPT_REMOVE_UDIMMS_SUPPORT TRUE |
| 24 | #define BLDOPT_REMOVE_SODIMMS_SUPPORT TRUE |
| 25 | #define BLDOPT_REMOVE_RDIMMS_SUPPORT TRUE |
| 26 | #define BLDOPT_REMOVE_LRDIMMS_SUPPORT TRUE |
| 27 | #define BLDOPT_REMOVE_ECC_SUPPORT TRUE |
| 28 | #define BLDOPT_REMOVE_SRAT FALSE |
| 29 | #define BLDOPT_REMOVE_WHEA FALSE |
Paul Menzel | d354c08 | 2020-10-17 13:10:32 +0200 | [diff] [blame] | 30 | #define BLDOPT_REMOVE_CRAT TRUE |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 31 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 32 | /* Build configuration values here */ |
| 33 | #define BLDCFG_AMD_PLATFORM_TYPE AMD_PLATFORM_MOBILE |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 34 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 35 | #define BLDCFG_MEMORY_RDIMM_CAPABLE FALSE |
| 36 | #define BLDCFG_MEMORY_UDIMM_CAPABLE TRUE |
| 37 | #define BLDCFG_MEMORY_SODIMM_CAPABLE FALSE |
| 38 | #define BLDCFG_MEMORY_CHANNEL_INTERLEAVING TRUE |
| 39 | #define BLDCFG_MEMORY_CLOCK_SELECT DDR1600_FREQUENCY |
| 40 | #define BLDCFG_ENABLE_ECC_FEATURE FALSE |
| 41 | #define BLDCFG_ECC_SYNC_FLOOD FALSE |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 42 | |
Elyes HAOUAS | 1d44634 | 2018-05-28 13:41:43 +0200 | [diff] [blame] | 43 | #define BLDCFG_UMA_ALLOCATION_MODE UMA_SPECIFIED |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 44 | #define BLDCFG_UMA_ALLOCATION_SIZE 0x2000 /* (0x2000 << 16) = 512M */ |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 45 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 46 | #define BLDCFG_IOMMU_SUPPORT TRUE |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 47 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 48 | #define BLDCFG_CFG_GNB_HD_AUDIO TRUE |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 49 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 50 | /* Customized OEM build configurations for FCH component */ |
| 51 | #define BLDCFG_FCH_GPP_LINK_CONFIG PortA1B1C1D1 |
| 52 | #define BLDCFG_FCH_GPP_PORT0_PRESENT TRUE |
| 53 | #define BLDCFG_FCH_GPP_PORT1_PRESENT TRUE |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 54 | |
Arthur Heymans | 8d3640d | 2022-05-16 12:27:36 +0200 | [diff] [blame^] | 55 | CONST GPIO_CONTROL ms7721_m_gpio[] = { |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 56 | {-1} |
| 57 | }; |
Renze Nicolai | a688b7c | 2016-11-18 23:08:13 +0100 | [diff] [blame] | 58 | |
Angel Pons | db2e118 | 2020-05-22 21:34:10 +0200 | [diff] [blame] | 59 | #define BLDCFG_FCH_GPIO_CONTROL_LIST (ms7721_m_gpio) |
| 60 | |
| 61 | /* |
| 62 | * Process the options... |
| 63 | * This file include MUST occur AFTER the user option selection settings. |
| 64 | * AGESA nonsense: Moving this include up will break AGESA. |
| 65 | */ |
Kyösti Mälkki | c8e4742 | 2017-08-31 08:52:12 +0300 | [diff] [blame] | 66 | #include <PlatformInstall.h> |