blob: 973677d5380f9f474f648b168131adc3158d43ff [file] [log] [blame]
Arthur Heymans6d3682e2023-07-13 12:34:04 +02001config SOC_AMD_GENOA
2 bool
3
4if SOC_AMD_GENOA
5
6config SOC_SPECIFIC_OPTIONS
7 def_bool y
8 select ARCH_X86
9 select HAVE_EXP_X86_64_SUPPORT
Arthur Heymans2e2f1662023-07-14 22:58:49 +020010 select HAVE_SMI_HANDLER
Arthur Heymans6d3682e2023-07-13 12:34:04 +020011 select RESET_VECTOR_IN_RAM
12 select SOC_AMD_COMMON
Arthur Heymans2e2f1662023-07-14 22:58:49 +020013 select SOC_AMD_COMMON_BLOCK_ACPI
Arthur Heymans6d3682e2023-07-13 12:34:04 +020014 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Arthur Heymans4da9d6b42023-07-13 14:19:09 +020015 select SOC_AMD_COMMON_BLOCK_AOAC
Varshit Pandya95d78d92023-10-04 19:30:21 +053016 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Arthur Heymans48167b12023-07-13 14:07:54 +020017 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
Felix Held926887c2023-10-13 21:19:53 +020018 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
19 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN
20 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_MULTI_PCI_SEGMENT
21 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_EXTENDED_MMIO
Arthur Heymansc666a912023-07-13 14:34:10 +020022 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Felix Heldd26f5a12023-11-20 16:31:31 +010023 select SOC_AMD_COMMON_BLOCK_I2C
Arthur Heymansc5122f92023-07-14 23:27:31 +020024 select SOC_AMD_COMMON_BLOCK_IOMMU
Arthur Heymansc666a912023-07-13 14:34:10 +020025 select SOC_AMD_COMMON_BLOCK_LPC
Arthur Heymans447e2792023-07-14 23:05:46 +020026 select SOC_AMD_COMMON_BLOCK_MCAX
Arthur Heymans6d3682e2023-07-13 12:34:04 +020027 select SOC_AMD_COMMON_BLOCK_NONCAR
28 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Felix Held0f209b52023-10-26 14:27:57 +020029 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
Felix Held51d1f302023-10-04 21:10:36 +020030 select SOC_AMD_COMMON_BLOCK_PSP_SPL
Varshit Pandyac0f19832023-10-04 19:26:21 +053031 select SOC_AMD_COMMON_BLOCK_SMI
Arthur Heymans2e2f1662023-07-14 22:58:49 +020032 select SOC_AMD_COMMON_BLOCK_SMM
Varshit Pandya0a2d2a92023-10-16 17:26:35 +053033 select SOC_AMD_COMMON_BLOCK_SMU
34 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Arthur Heymans48167b12023-07-13 14:07:54 +020035 select SOC_AMD_COMMON_BLOCK_TSC
Varshit Pandya970d7702023-10-06 18:14:02 +053036 select SOC_AMD_COMMON_BLOCK_UART
Arthur Heymans5ee1d232023-07-14 23:16:22 +020037 select SOC_AMD_COMMON_BLOCK_UCODE
Arthur Heymansc666a912023-07-13 14:34:10 +020038 select SOC_AMD_COMMON_BLOCK_USE_ESPI
Arthur Heymanse4eba132023-07-13 14:02:42 +020039 select X86_CUSTOM_BOOTMEDIA
Arthur Heymans6d3682e2023-07-13 12:34:04 +020040
41config USE_EXP_X86_64_SUPPORT
42 default y
43
vbpandya87d8b8c2023-09-22 20:49:37 +053044config CHIPSET_DEVICETREE
45 string
46 default "soc/amd/genoa/chipset.cb"
47
Felix Heldd26f5a12023-11-20 16:31:31 +010048config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
49 int
50 default 150
51
Arthur Heymans6d3682e2023-07-13 12:34:04 +020052config EARLY_RESERVED_DRAM_BASE
53 hex
54 default 0x7000000
55 help
56 This variable defines the base address of the DRAM which is reserved
57 for usage by coreboot in early stages (i.e. before ramstage is up).
58 This memory gets reserved in BIOS tables to ensure that the OS does
59 not use it, thus preventing corruption of OS memory in case of S3
60 resume.
61
62config EARLYRAM_BSP_STACK_SIZE
63 hex
64 default 0x1000
65
Varshit Pandyaa7759582023-10-17 21:59:39 +053066config MAX_CPUS
67 int
68 default 384
69
Arthur Heymans6d3682e2023-07-13 12:34:04 +020070config PSP_APOB_DRAM_ADDRESS
71 hex
72 default 0x7001000
73 help
74 Location in DRAM where the PSP will copy the AGESA PSP Output
75 Block.
76
77config PSP_APOB_DRAM_SIZE
78 hex
79 default 0x20000
80
81config PRERAM_CBMEM_CONSOLE_SIZE
82 hex
83 default 0x1600
84 help
85 Increase this value if preram cbmem console is getting truncated
86
87config C_ENV_BOOTBLOCK_SIZE
88 hex
89 default 0x10000
90 help
91 Sets the size of the bootblock stage that should be loaded in DRAM.
92 This variable controls the DRAM allocation size in linker script
93 for bootblock stage.
94
95config ROMSTAGE_ADDR
96 hex
97 default 0x7040000
98 help
99 Sets the address in DRAM where romstage should be loaded.
100
101config ROMSTAGE_SIZE
102 hex
103 default 0x80000
104 help
105 Sets the size of DRAM allocation for romstage in linker script.
106
Arthur Heymans901f0402023-07-13 14:14:55 +0200107config ECAM_MMCONF_BASE_ADDRESS
108 hex
109 default 0xE0000000
110
111config ECAM_MMCONF_BUS_NUMBER
112 int
113 default 256
114
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200115menu "PSP Configuration Options"
116
117config AMDFW_CONFIG_FILE
118 string
119 default "src/soc/amd/genoa/fw.cfg"
120
121config PSP_DISABLE_POSTCODES
122 bool "Disable PSP post codes"
123 help
124 Disables the output of port80 post codes from PSP.
125
126config PSP_INIT_ESPI
127 bool "Initialize eSPI in PSP Stage 2 Boot Loader"
128 help
129 Select to initialize the eSPI controller in the PSP Stage 2 Boot
130 Loader.
131
132config PSP_UNLOCK_SECURE_DEBUG
133 bool
134 default y
135
136config HAVE_PSP_WHITELIST_FILE
137 bool "Include a debug whitelist file in PSP build"
138 default n
139 help
140 Support secured unlock prior to reset using a whitelisted
141 serial number. This feature requires a signed whitelist image
142 and bootloader from AMD.
143
144 If unsure, answer 'n'
145
146config PSP_WHITELIST_FILE
147 string "Debug whitelist file path"
148 depends on HAVE_PSP_WHITELIST_FILE
149
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200150config PSP_SOFTFUSE_BITS
151 string "PSP Soft Fuse bits to enable"
152 default ""
153 help
154 Space separated list of Soft Fuse bits to enable.
155 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
156 Bit 7: Disable PSP postcodes on Renoir and newer chips only
157 (Set by PSP_DISABLE_PORT80)
158 Bit 15: PSP debug output destination:
159 0=SoC MMIO UART, 1=IO port 0x3F8
160
161 See #57299 (NDA) for additional bit definitions.
162endmenu
163
Arthur Heymans2e2f1662023-07-14 22:58:49 +0200164config SMM_TSEG_SIZE
165 hex
166 default 0x800000
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200167
Varshit Pandya2edcd932023-11-02 19:21:01 +0530168#TODO: Check if the value of HEAP_SIZE is optimal
169config HEAP_SIZE
170 hex
171 default 0x200000
172
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200173endif # SOC_AMD_GENOA