blob: 6cb4a8a174c55cb8d258e482545ab11fc75b16c5 [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
Felix Heldd1065a32023-12-12 19:36:55 +01008 select ACPI_SOC_NVS
Arthur Heymans6d3682e2023-07-13 12:34:04 +02009 select ARCH_X86
Felix Heldd1065a32023-12-12 19:36:55 +010010 select HAVE_ACPI_TABLES
Arthur Heymans6d3682e2023-07-13 12:34:04 +020011 select HAVE_EXP_X86_64_SUPPORT
Arthur Heymans2e2f1662023-07-14 22:58:49 +020012 select HAVE_SMI_HANDLER
Arthur Heymans6d3682e2023-07-13 12:34:04 +020013 select RESET_VECTOR_IN_RAM
14 select SOC_AMD_COMMON
Arthur Heymans2e2f1662023-07-14 22:58:49 +020015 select SOC_AMD_COMMON_BLOCK_ACPI
Arthur Heymans6d3682e2023-07-13 12:34:04 +020016 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Heldd1065a32023-12-12 19:36:55 +010017 select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE
Arthur Heymans4da9d6b42023-07-13 14:19:09 +020018 select SOC_AMD_COMMON_BLOCK_AOAC
Varshit Pandya95d78d92023-10-04 19:30:21 +053019 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Arthur Heymans48167b12023-07-13 14:07:54 +020020 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
Felix Held926887c2023-10-13 21:19:53 +020021 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
22 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN
23 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_MULTI_PCI_SEGMENT
24 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_EXTENDED_MMIO
Arthur Heymansc666a912023-07-13 14:34:10 +020025 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Felix Heldd26f5a12023-11-20 16:31:31 +010026 select SOC_AMD_COMMON_BLOCK_I2C
Arthur Heymansc5122f92023-07-14 23:27:31 +020027 select SOC_AMD_COMMON_BLOCK_IOMMU
Arthur Heymansc666a912023-07-13 14:34:10 +020028 select SOC_AMD_COMMON_BLOCK_LPC
Arthur Heymans447e2792023-07-14 23:05:46 +020029 select SOC_AMD_COMMON_BLOCK_MCAX
Arthur Heymans6d3682e2023-07-13 12:34:04 +020030 select SOC_AMD_COMMON_BLOCK_NONCAR
31 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Felix Held0f209b52023-10-26 14:27:57 +020032 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
Felix Held51d1f302023-10-04 21:10:36 +020033 select SOC_AMD_COMMON_BLOCK_PSP_SPL
Varshit Pandyac0f19832023-10-04 19:26:21 +053034 select SOC_AMD_COMMON_BLOCK_SMI
Arthur Heymans2e2f1662023-07-14 22:58:49 +020035 select SOC_AMD_COMMON_BLOCK_SMM
Varshit Pandya0a2d2a92023-10-16 17:26:35 +053036 select SOC_AMD_COMMON_BLOCK_SMU
37 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Felix Heldd1065a32023-12-12 19:36:55 +010038 select SOC_AMD_COMMON_BLOCK_SVI3
Arthur Heymans48167b12023-07-13 14:07:54 +020039 select SOC_AMD_COMMON_BLOCK_TSC
Varshit Pandya970d7702023-10-06 18:14:02 +053040 select SOC_AMD_COMMON_BLOCK_UART
Arthur Heymans5ee1d232023-07-14 23:16:22 +020041 select SOC_AMD_COMMON_BLOCK_UCODE
Arthur Heymansc666a912023-07-13 14:34:10 +020042 select SOC_AMD_COMMON_BLOCK_USE_ESPI
Martin Roth50a3d6f2023-10-25 16:17:16 -060043 select SOC_AMD_OPENSIL
44 select SOC_AMD_OPENSIL_GENOA
Arthur Heymanse4eba132023-07-13 14:02:42 +020045 select X86_CUSTOM_BOOTMEDIA
Arthur Heymans6d3682e2023-07-13 12:34:04 +020046
47config USE_EXP_X86_64_SUPPORT
48 default y
49
vbpandya87d8b8c2023-09-22 20:49:37 +053050config CHIPSET_DEVICETREE
51 string
52 default "soc/amd/genoa/chipset.cb"
53
Felix Heldd26f5a12023-11-20 16:31:31 +010054config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
55 int
56 default 150
57
Arthur Heymans6d3682e2023-07-13 12:34:04 +020058config EARLY_RESERVED_DRAM_BASE
59 hex
60 default 0x7000000
61 help
62 This variable defines the base address of the DRAM which is reserved
63 for usage by coreboot in early stages (i.e. before ramstage is up).
64 This memory gets reserved in BIOS tables to ensure that the OS does
65 not use it, thus preventing corruption of OS memory in case of S3
66 resume.
67
68config EARLYRAM_BSP_STACK_SIZE
69 hex
70 default 0x1000
71
Varshit Pandyaa7759582023-10-17 21:59:39 +053072config MAX_CPUS
73 int
74 default 384
75
Arthur Heymans6d3682e2023-07-13 12:34:04 +020076config PSP_APOB_DRAM_ADDRESS
77 hex
78 default 0x7001000
79 help
80 Location in DRAM where the PSP will copy the AGESA PSP Output
81 Block.
82
83config PSP_APOB_DRAM_SIZE
84 hex
85 default 0x20000
86
87config PRERAM_CBMEM_CONSOLE_SIZE
88 hex
89 default 0x1600
90 help
91 Increase this value if preram cbmem console is getting truncated
92
93config C_ENV_BOOTBLOCK_SIZE
94 hex
95 default 0x10000
96 help
97 Sets the size of the bootblock stage that should be loaded in DRAM.
98 This variable controls the DRAM allocation size in linker script
99 for bootblock stage.
100
101config ROMSTAGE_ADDR
102 hex
103 default 0x7040000
104 help
105 Sets the address in DRAM where romstage should be loaded.
106
107config ROMSTAGE_SIZE
108 hex
109 default 0x80000
110 help
111 Sets the size of DRAM allocation for romstage in linker script.
112
Arthur Heymans901f0402023-07-13 14:14:55 +0200113config ECAM_MMCONF_BASE_ADDRESS
114 hex
115 default 0xE0000000
116
117config ECAM_MMCONF_BUS_NUMBER
118 int
119 default 256
120
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200121menu "PSP Configuration Options"
122
123config AMDFW_CONFIG_FILE
124 string
125 default "src/soc/amd/genoa/fw.cfg"
126
127config PSP_DISABLE_POSTCODES
128 bool "Disable PSP post codes"
129 help
130 Disables the output of port80 post codes from PSP.
131
132config PSP_INIT_ESPI
133 bool "Initialize eSPI in PSP Stage 2 Boot Loader"
134 help
135 Select to initialize the eSPI controller in the PSP Stage 2 Boot
136 Loader.
137
138config PSP_UNLOCK_SECURE_DEBUG
139 bool
140 default y
141
142config HAVE_PSP_WHITELIST_FILE
143 bool "Include a debug whitelist file in PSP build"
144 default n
145 help
146 Support secured unlock prior to reset using a whitelisted
147 serial number. This feature requires a signed whitelist image
148 and bootloader from AMD.
149
150 If unsure, answer 'n'
151
152config PSP_WHITELIST_FILE
153 string "Debug whitelist file path"
154 depends on HAVE_PSP_WHITELIST_FILE
155
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200156config PSP_SOFTFUSE_BITS
157 string "PSP Soft Fuse bits to enable"
158 default ""
159 help
160 Space separated list of Soft Fuse bits to enable.
161 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
162 Bit 7: Disable PSP postcodes on Renoir and newer chips only
163 (Set by PSP_DISABLE_PORT80)
164 Bit 15: PSP debug output destination:
165 0=SoC MMIO UART, 1=IO port 0x3F8
166
167 See #57299 (NDA) for additional bit definitions.
168endmenu
169
Felix Held88da16b2023-12-04 18:46:38 +0100170config CONSOLE_UART_BASE_ADDRESS
171 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
172 hex
173 default 0xfedc9000 if UART_FOR_CONSOLE = 0
174 default 0xfedca000 if UART_FOR_CONSOLE = 1
175 default 0xfedce000 if UART_FOR_CONSOLE = 2
176
Arthur Heymans2e2f1662023-07-14 22:58:49 +0200177config SMM_TSEG_SIZE
178 hex
179 default 0x800000
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200180
Varshit Pandya2edcd932023-11-02 19:21:01 +0530181#TODO: Check if the value of HEAP_SIZE is optimal
182config HEAP_SIZE
183 hex
184 default 0x200000
185
Felix Heldd1065a32023-12-12 19:36:55 +0100186config ACPI_SSDT_PSD_INDEPENDENT
187 bool "Allow core p-state independent transitions"
188 default y
189 help
190 AMD recommends the ACPI _PSD object to be configured to cause
191 cores to transition between p-states independently. A vendor may
192 choose to generate _PSD object to allow cores to transition together.
193
Arthur Heymans8f1c7072023-07-13 12:52:49 +0200194endif # SOC_AMD_GENOA