blob: 9b766736f0eef2ca304bad76dc97d162256762a0 [file] [log] [blame]
Felix Helddc2d3562020-12-02 14:38:53 +01001# SPDX-License-Identifier: GPL-2.0-only
2
3config SOC_AMD_CEZANNE
4 bool
5 help
6 AMD Cezanne support
7
8if SOC_AMD_CEZANNE
9
10config SOC_SPECIFIC_OPTIONS
11 def_bool y
12 select ARCH_BOOTBLOCK_X86_32
13 select ARCH_VERSTAGE_X86_32
14 select ARCH_ROMSTAGE_X86_32
15 select ARCH_RAMSTAGE_X86_32
Felix Held44f41532020-12-09 02:01:16 +010016 select HAVE_CF9_RESET
Felix Heldcb977342021-01-19 20:36:38 +010017 select IDT_IN_EVERY_STAGE
Felix Held4be064a2020-12-08 17:21:04 +010018 select IOAPIC
Felix Held8d0a6092021-01-14 01:40:50 +010019 select PLATFORM_USES_FSP2_0
Felix Helddc2d3562020-12-02 14:38:53 +010020 select RESET_VECTOR_IN_RAM
21 select SOC_AMD_COMMON
Felix Held64de2c12020-12-05 20:53:59 +010022 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Held62ef88f2020-12-08 23:18:19 +010023 select SOC_AMD_COMMON_BLOCK_AOAC
Felix Held07462ef2020-12-11 15:55:45 +010024 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Helddc2d3562020-12-02 14:38:53 +010025 select SOC_AMD_COMMON_BLOCK_NONCAR
26 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Felix Held4be064a2020-12-08 17:21:04 +010027 select SOC_AMD_COMMON_BLOCK_SMBUS
Zheng Bao02a5ddd2020-12-15 22:16:51 +080028 select SOC_AMD_COMMON_BLOCK_SMI
Felix Held65783fb2020-12-04 17:38:46 +010029 select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H
Felix Held8a3d4d52021-01-13 03:06:21 +010030 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldcc975c52021-01-23 00:18:08 +010031 select SSE2
Felix Held8d0a6092021-01-14 01:40:50 +010032 select UDK_2017_BINDING
Felix Heldf09221c2021-01-22 23:50:54 +010033 select X86_AMD_FIXED_MTRRS
Felix Helddc2d3562020-12-02 14:38:53 +010034
Furquan Shaikh696f4ea2021-01-08 11:48:52 -080035config CHIPSET_DEVICETREE
36 string
37 default "soc/amd/cezanne/chipset.cb"
38
Felix Helddc2d3562020-12-02 14:38:53 +010039config EARLY_RESERVED_DRAM_BASE
40 hex
41 default 0x2000000
42 help
43 This variable defines the base address of the DRAM which is reserved
44 for usage by coreboot in early stages (i.e. before ramstage is up).
45 This memory gets reserved in BIOS tables to ensure that the OS does
46 not use it, thus preventing corruption of OS memory in case of S3
47 resume.
48
49config EARLYRAM_BSP_STACK_SIZE
50 hex
51 default 0x1000
52
53config PSP_APOB_DRAM_ADDRESS
54 hex
55 default 0x2001000
56 help
57 Location in DRAM where the PSP will copy the AGESA PSP Output
58 Block.
59
60config PRERAM_CBMEM_CONSOLE_SIZE
61 hex
62 default 0x1600
63 help
64 Increase this value if preram cbmem console is getting truncated
65
Felix Helddc2d3562020-12-02 14:38:53 +010066config C_ENV_BOOTBLOCK_SIZE
67 hex
68 default 0x10000
69 help
70 Sets the size of the bootblock stage that should be loaded in DRAM.
71 This variable controls the DRAM allocation size in linker script
72 for bootblock stage.
73
Felix Helddc2d3562020-12-02 14:38:53 +010074config ROMSTAGE_ADDR
75 hex
76 default 0x2040000
77 help
78 Sets the address in DRAM where romstage should be loaded.
79
80config ROMSTAGE_SIZE
81 hex
82 default 0x80000
83 help
84 Sets the size of DRAM allocation for romstage in linker script.
85
86config FSP_M_ADDR
87 hex
88 default 0x20C0000
89 help
90 Sets the address in DRAM where FSP-M should be loaded. cbfstool
91 performs relocation of FSP-M to this address.
92
93config FSP_M_SIZE
94 hex
95 default 0x80000
96 help
97 Sets the size of DRAM allocation for FSP-M in linker script.
98
Felix Held8d0a6092021-01-14 01:40:50 +010099config FSP_TEMP_RAM_SIZE
100 hex
101 default 0x40000
102 help
103 The amount of coreboot-allocated heap and stack usage by the FSP.
104
Felix Helddc2d3562020-12-02 14:38:53 +0100105config RAMBASE
106 hex
107 default 0x10000000
108
109config CPU_ADDR_BITS
110 int
111 default 48
112
113config MMCONF_BASE_ADDRESS
114 hex
115 default 0xF8000000
116
117config MMCONF_BUS_NUMBER
118 int
119 default 64
120
Felix Held88615622021-01-19 23:51:45 +0100121config MAX_CPUS
122 int
123 default 16
124
Felix Held8a3d4d52021-01-13 03:06:21 +0100125config CONSOLE_UART_BASE_ADDRESS
126 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
127 hex
128 default 0xfedc9000 if UART_FOR_CONSOLE = 0
129 default 0xfedca000 if UART_FOR_CONSOLE = 1
130
Zheng Baof51738d2021-01-20 16:43:52 +0800131menu "PSP Configuration Options"
132
133config AMD_FWM_POSITION_INDEX
134 int "Firmware Directory Table location (0 to 5)"
135 range 0 5
136 default 0 if BOARD_ROMSIZE_KB_512
137 default 1 if BOARD_ROMSIZE_KB_1024
138 default 2 if BOARD_ROMSIZE_KB_2048
139 default 3 if BOARD_ROMSIZE_KB_4096
140 default 4 if BOARD_ROMSIZE_KB_8192
141 default 5 if BOARD_ROMSIZE_KB_16384
142 help
143 Typically this is calculated by the ROM size, but there may
144 be situations where you want to put the firmware directory
145 table in a different location.
146 0: 512 KB - 0xFFFA0000
147 1: 1 MB - 0xFFF20000
148 2: 2 MB - 0xFFE20000
149 3: 4 MB - 0xFFC20000
150 4: 8 MB - 0xFF820000
151 5: 16 MB - 0xFF020000
152
153comment "AMD Firmware Directory Table set to location for 512KB ROM"
154 depends on AMD_FWM_POSITION_INDEX = 0
155comment "AMD Firmware Directory Table set to location for 1MB ROM"
156 depends on AMD_FWM_POSITION_INDEX = 1
157comment "AMD Firmware Directory Table set to location for 2MB ROM"
158 depends on AMD_FWM_POSITION_INDEX = 2
159comment "AMD Firmware Directory Table set to location for 4MB ROM"
160 depends on AMD_FWM_POSITION_INDEX = 3
161comment "AMD Firmware Directory Table set to location for 8MB ROM"
162 depends on AMD_FWM_POSITION_INDEX = 4
163comment "AMD Firmware Directory Table set to location for 16MB ROM"
164 depends on AMD_FWM_POSITION_INDEX = 5
165
166config AMDFW_CONFIG_FILE
167 string
168 default "src/soc/amd/cezanne/fw.cfg"
169
170config USE_PSPSECUREOS
171 bool
172 default y
173 help
174 Include the PspSecureOs and PspTrustlet binaries in the PSP build.
175
176 If unsure, answer 'y'
177
178config PSP_LOAD_MP2_FW
179 bool
180 default n
181 help
182 Include the MP2 firmwares and configuration into the PSP build.
183
184 If unsure, answer 'n'
185
186config PSP_LOAD_S0I3_FW
187 bool
188 default n
189 help
190 Select this item to include the S0i3 file into the PSP build.
191
192config PSP_UNLOCK_SECURE_DEBUG
193 bool "Unlock secure debug"
194 default y
195 help
196 Select this item to enable secure debug options in PSP.
197
198endmenu
199
Felix Helddc2d3562020-12-02 14:38:53 +0100200endif # SOC_AMD_CEZANNE