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