blob: 319c81104294990ba2ced7f2d3d5743c5ee30527 [file] [log] [blame]
Angel Pons5c596802020-04-03 01:21:01 +02001/* SPDX-License-Identifier: GPL-2.0-only */
zbao323a9232012-07-19 16:39:01 +08002
Elyes HAOUAS19f5ba82018-10-14 14:52:06 +02003#include <AGESA.h>
zbao323a9232012-07-19 16:39:01 +08004
Angel Ponsdb2e1182020-05-22 21:34:10 +02005/* Select the CPU family */
6#define INSTALL_FAMILY_15_MODEL_1x_SUPPORT TRUE
zbao323a9232012-07-19 16:39:01 +08007
Angel Ponsdb2e1182020-05-22 21:34:10 +02008/* Select the CPU socket type */
9#define INSTALL_FS1_SOCKET_SUPPORT TRUE
10#define INSTALL_FP2_SOCKET_SUPPORT TRUE
zbao323a9232012-07-19 16:39:01 +080011
Angel Ponsdb2e1182020-05-22 21:34:10 +020012//#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 Menzeld354c082020-10-17 13:10:32 +020018#define BLDOPT_REMOVE_CRAT TRUE
zbao323a9232012-07-19 16:39:01 +080019
Angel Ponsdb2e1182020-05-22 21:34:10 +020020/* Build configuration values here. */
21#define BLDCFG_AMD_PLATFORM_TYPE AMD_PLATFORM_MOBILE
zbao323a9232012-07-19 16:39:01 +080022
Angel Ponsdb2e1182020-05-22 21:34:10 +020023#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
zbao323a9232012-07-19 16:39:01 +080029
Angel Ponsdb2e1182020-05-22 21:34:10 +020030#define BLDCFG_UMA_ALLOCATION_MODE UMA_SPECIFIED
31#define BLDCFG_UMA_ALLOCATION_SIZE 0x2000 /* (0x2000 << 16) = 512M */
zbao323a9232012-07-19 16:39:01 +080032
Angel Ponsdb2e1182020-05-22 21:34:10 +020033#define BLDCFG_IOMMU_SUPPORT FALSE
zbao323a9232012-07-19 16:39:01 +080034
Angel Ponsdb2e1182020-05-22 21:34:10 +020035#define BLDCFG_CFG_GNB_HD_AUDIO TRUE
zbao323a9232012-07-19 16:39:01 +080036
Angel Pons66ee42d2020-05-20 23:34:54 +020037/* Include the files that instantiate the configuration definitions. */
zbao323a9232012-07-19 16:39:01 +080038#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"
zbao323a9232012-07-19 16:39:01 +080046#include "cpuEarlyInit.h"
47#include "cpuLateInit.h"
48#include "GnbInterface.h"
49
Arthur Heymans8d3640d2022-05-16 12:27:36 +020050CONST GPIO_CONTROL parmer_gpio[] = {
zbao323a9232012-07-19 16:39:01 +080051 {183, Function1, GpioIn | GpioOutEnB | PullUpB},
52 {-1}
53};
Angel Ponsdb2e1182020-05-22 21:34:10 +020054#define BLDCFG_FCH_GPIO_CONTROL_LIST (parmer_gpio)
zbao323a9232012-07-19 16:39:01 +080055
Kyösti Mälkkic8e47422017-08-31 08:52:12 +030056#include <PlatformInstall.h>