blob: 8a738cf5888fffa3957ad97b48f6656ed04f473b [file] [log] [blame]
Felix Heldd123f8d2023-12-15 10:57:30 +01001config SOC_AMD_GENOA_POC
Arthur Heymans6d3682e2023-07-13 12:34:04 +02002 bool
3
Felix Heldd123f8d2023-12-15 10:57:30 +01004if SOC_AMD_GENOA_POC
Arthur Heymans6d3682e2023-07-13 12:34:04 +02005
6config SOC_SPECIFIC_OPTIONS
7 def_bool y
Felix Heldd1065a32023-12-12 19:36:55 +01008 select ACPI_SOC_NVS
Arthur Heymans6d3682e2023-07-13 12:34:04 +02009 select ARCH_X86
Varshit Pandya0f666f72023-12-18 23:07:21 +053010 select DEFAULT_X2APIC
Felix Heldd1065a32023-12-12 19:36:55 +010011 select HAVE_ACPI_TABLES
Arthur Heymans6d3682e2023-07-13 12:34:04 +020012 select HAVE_EXP_X86_64_SUPPORT
Arthur Heymans2e2f1662023-07-14 22:58:49 +020013 select HAVE_SMI_HANDLER
Arthur Heymans6d3682e2023-07-13 12:34:04 +020014 select RESET_VECTOR_IN_RAM
15 select SOC_AMD_COMMON
Arthur Heymans2e2f1662023-07-14 22:58:49 +020016 select SOC_AMD_COMMON_BLOCK_ACPI
Arthur Heymans6d3682e2023-07-13 12:34:04 +020017 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Heldd1065a32023-12-12 19:36:55 +010018 select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE
Felix Heldb499c1f2023-12-12 20:39:38 +010019 select SOC_AMD_COMMON_BLOCK_ACPI_IVRS
Felix Heldaab8a222024-01-08 23:30:38 +010020 select SOC_AMD_COMMON_BLOCK_ACPI_MADT
Arthur Heymans4da9d6b42023-07-13 14:19:09 +020021 select SOC_AMD_COMMON_BLOCK_AOAC
Varshit Pandya95d78d92023-10-04 19:30:21 +053022 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Arthur Heymans48167b12023-07-13 14:07:54 +020023 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
Felix Held926887c2023-10-13 21:19:53 +020024 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
25 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN
26 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_MULTI_PCI_SEGMENT
27 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_EXTENDED_MMIO
Arthur Heymansc666a912023-07-13 14:34:10 +020028 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Felix Heldd26f5a12023-11-20 16:31:31 +010029 select SOC_AMD_COMMON_BLOCK_I2C
Arthur Heymansc5122f92023-07-14 23:27:31 +020030 select SOC_AMD_COMMON_BLOCK_IOMMU
Arthur Heymansc666a912023-07-13 14:34:10 +020031 select SOC_AMD_COMMON_BLOCK_LPC
Arthur Heymans447e2792023-07-14 23:05:46 +020032 select SOC_AMD_COMMON_BLOCK_MCAX
Arthur Heymans6d3682e2023-07-13 12:34:04 +020033 select SOC_AMD_COMMON_BLOCK_NONCAR
Felix Held80434a62023-12-13 23:11:45 +010034 select SOC_AMD_COMMON_BLOCK_PCI
Arthur Heymans6d3682e2023-07-13 12:34:04 +020035 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Felix Held0f209b52023-10-26 14:27:57 +020036 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
Felix Held51d1f302023-10-04 21:10:36 +020037 select SOC_AMD_COMMON_BLOCK_PSP_SPL
Varshit Pandyac0f19832023-10-04 19:26:21 +053038 select SOC_AMD_COMMON_BLOCK_SMI
Arthur Heymans2e2f1662023-07-14 22:58:49 +020039 select SOC_AMD_COMMON_BLOCK_SMM
Varshit Pandya0a2d2a92023-10-16 17:26:35 +053040 select SOC_AMD_COMMON_BLOCK_SMU
41 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Felix Heldd1065a32023-12-12 19:36:55 +010042 select SOC_AMD_COMMON_BLOCK_SVI3
Arthur Heymans48167b12023-07-13 14:07:54 +020043 select SOC_AMD_COMMON_BLOCK_TSC
Varshit Pandya970d7702023-10-06 18:14:02 +053044 select SOC_AMD_COMMON_BLOCK_UART
Arthur Heymans5ee1d232023-07-14 23:16:22 +020045 select SOC_AMD_COMMON_BLOCK_UCODE
Arthur Heymansc666a912023-07-13 14:34:10 +020046 select SOC_AMD_COMMON_BLOCK_USE_ESPI
Martin Roth50a3d6f2023-10-25 16:17:16 -060047 select SOC_AMD_OPENSIL
Felix Held9314bb62023-12-15 11:15:26 +010048 select SOC_AMD_OPENSIL_GENOA_POC
Arthur Heymanse4eba132023-07-13 14:02:42 +020049 select X86_CUSTOM_BOOTMEDIA
Arthur Heymans6d3682e2023-07-13 12:34:04 +020050
51config USE_EXP_X86_64_SUPPORT
52 default y
53
vbpandya87d8b8c2023-09-22 20:49:37 +053054config CHIPSET_DEVICETREE
55 string
Felix Heldd123f8d2023-12-15 10:57:30 +010056 default "soc/amd/genoa_poc/chipset.cb"
vbpandya87d8b8c2023-09-22 20:49:37 +053057
Felix Heldd26f5a12023-11-20 16:31:31 +010058config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
59 int
60 default 150
61
Arthur Heymans6d3682e2023-07-13 12:34:04 +020062config EARLY_RESERVED_DRAM_BASE
63 hex
64 default 0x7000000
65 help
66 This variable defines the base address of the DRAM which is reserved
67 for usage by coreboot in early stages (i.e. before ramstage is up).
68 This memory gets reserved in BIOS tables to ensure that the OS does
69 not use it, thus preventing corruption of OS memory in case of S3
70 resume.
71
72config EARLYRAM_BSP_STACK_SIZE
73 hex
74 default 0x1000
75
Varshit Pandyaa7759582023-10-17 21:59:39 +053076config MAX_CPUS
77 int
78 default 384
79
Arthur Heymans6d3682e2023-07-13 12:34:04 +020080config PSP_APOB_DRAM_ADDRESS
81 hex
82 default 0x7001000
83 help
84 Location in DRAM where the PSP will copy the AGESA PSP Output
85 Block.
86
87config PSP_APOB_DRAM_SIZE
88 hex
89 default 0x20000
90
91config PRERAM_CBMEM_CONSOLE_SIZE
92 hex
93 default 0x1600
94 help
95 Increase this value if preram cbmem console is getting truncated
96
97config C_ENV_BOOTBLOCK_SIZE
98 hex
99 default 0x10000
100 help
101 Sets the size of the bootblock stage that should be loaded in DRAM.
102 This variable controls the DRAM allocation size in linker script
103 for bootblock stage.
104
105config ROMSTAGE_ADDR
106 hex
107 default 0x7040000
108 help
109 Sets the address in DRAM where romstage should be loaded.
110
111config ROMSTAGE_SIZE
112 hex
113 default 0x80000
114 help
115 Sets the size of DRAM allocation for romstage in linker script.
116
Arthur Heymans901f0402023-07-13 14:14:55 +0200117config ECAM_MMCONF_BASE_ADDRESS
118 hex
119 default 0xE0000000
120
121config ECAM_MMCONF_BUS_NUMBER
122 int
123 default 256
124
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200125menu "PSP Configuration Options"
126
127config AMDFW_CONFIG_FILE
128 string
Felix Heldd123f8d2023-12-15 10:57:30 +0100129 default "src/soc/amd/genoa_poc/fw.cfg"
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200130
131config PSP_DISABLE_POSTCODES
132 bool "Disable PSP post codes"
133 help
134 Disables the output of port80 post codes from PSP.
135
136config PSP_INIT_ESPI
137 bool "Initialize eSPI in PSP Stage 2 Boot Loader"
138 help
139 Select to initialize the eSPI controller in the PSP Stage 2 Boot
140 Loader.
141
142config PSP_UNLOCK_SECURE_DEBUG
143 bool
144 default y
145
146config HAVE_PSP_WHITELIST_FILE
147 bool "Include a debug whitelist file in PSP build"
148 default n
149 help
150 Support secured unlock prior to reset using a whitelisted
151 serial number. This feature requires a signed whitelist image
152 and bootloader from AMD.
153
154 If unsure, answer 'n'
155
156config PSP_WHITELIST_FILE
157 string "Debug whitelist file path"
158 depends on HAVE_PSP_WHITELIST_FILE
159
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200160config PSP_SOFTFUSE_BITS
161 string "PSP Soft Fuse bits to enable"
162 default ""
163 help
164 Space separated list of Soft Fuse bits to enable.
165 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
166 Bit 7: Disable PSP postcodes on Renoir and newer chips only
167 (Set by PSP_DISABLE_PORT80)
168 Bit 15: PSP debug output destination:
169 0=SoC MMIO UART, 1=IO port 0x3F8
170
171 See #57299 (NDA) for additional bit definitions.
172endmenu
173
Felix Held88da16b2023-12-04 18:46:38 +0100174config CONSOLE_UART_BASE_ADDRESS
175 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
176 hex
177 default 0xfedc9000 if UART_FOR_CONSOLE = 0
178 default 0xfedca000 if UART_FOR_CONSOLE = 1
179 default 0xfedce000 if UART_FOR_CONSOLE = 2
180
Arthur Heymans2e2f1662023-07-14 22:58:49 +0200181config SMM_TSEG_SIZE
182 hex
183 default 0x800000
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200184
Felix Heldd1065a32023-12-12 19:36:55 +0100185config ACPI_SSDT_PSD_INDEPENDENT
186 bool "Allow core p-state independent transitions"
187 default y
188 help
189 AMD recommends the ACPI _PSD object to be configured to cause
190 cores to transition between p-states independently. A vendor may
191 choose to generate _PSD object to allow cores to transition together.
192
Arthur Heymansb2ea2f22023-07-15 00:28:31 +0200193config ACPI_BERT
194 bool "Build ACPI BERT Table"
195 default y
196 depends on HAVE_ACPI_TABLES
197 help
198 Report Machine Check errors identified in POST to the OS in an
199 ACPI Boot Error Record Table.
200
201config ACPI_BERT_SIZE
202 hex
203 default 0x4000 if ACPI_BERT
204 default 0x0
205 help
206 Specify the amount of DRAM reserved for gathering the data used to
207 generate the ACPI table.
208
Felix Heldd123f8d2023-12-15 10:57:30 +0100209endif # SOC_AMD_GENOA_POC