blob: 08d8397bf6230e566147f0717837f57c435a322a [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 Held8d0a6092021-01-14 01:40:50 +010031 select UDK_2017_BINDING
Felix Heldf09221c2021-01-22 23:50:54 +010032 select X86_AMD_FIXED_MTRRS
Felix Helddc2d3562020-12-02 14:38:53 +010033
Furquan Shaikh696f4ea2021-01-08 11:48:52 -080034config CHIPSET_DEVICETREE
35 string
36 default "soc/amd/cezanne/chipset.cb"
37
Felix Helddc2d3562020-12-02 14:38:53 +010038config EARLY_RESERVED_DRAM_BASE
39 hex
40 default 0x2000000
41 help
42 This variable defines the base address of the DRAM which is reserved
43 for usage by coreboot in early stages (i.e. before ramstage is up).
44 This memory gets reserved in BIOS tables to ensure that the OS does
45 not use it, thus preventing corruption of OS memory in case of S3
46 resume.
47
48config EARLYRAM_BSP_STACK_SIZE
49 hex
50 default 0x1000
51
52config PSP_APOB_DRAM_ADDRESS
53 hex
54 default 0x2001000
55 help
56 Location in DRAM where the PSP will copy the AGESA PSP Output
57 Block.
58
59config PRERAM_CBMEM_CONSOLE_SIZE
60 hex
61 default 0x1600
62 help
63 Increase this value if preram cbmem console is getting truncated
64
Felix Helddc2d3562020-12-02 14:38:53 +010065config C_ENV_BOOTBLOCK_SIZE
66 hex
67 default 0x10000
68 help
69 Sets the size of the bootblock stage that should be loaded in DRAM.
70 This variable controls the DRAM allocation size in linker script
71 for bootblock stage.
72
Felix Helddc2d3562020-12-02 14:38:53 +010073config ROMSTAGE_ADDR
74 hex
75 default 0x2040000
76 help
77 Sets the address in DRAM where romstage should be loaded.
78
79config ROMSTAGE_SIZE
80 hex
81 default 0x80000
82 help
83 Sets the size of DRAM allocation for romstage in linker script.
84
85config FSP_M_ADDR
86 hex
87 default 0x20C0000
88 help
89 Sets the address in DRAM where FSP-M should be loaded. cbfstool
90 performs relocation of FSP-M to this address.
91
92config FSP_M_SIZE
93 hex
94 default 0x80000
95 help
96 Sets the size of DRAM allocation for FSP-M in linker script.
97
Felix Held8d0a6092021-01-14 01:40:50 +010098config FSP_TEMP_RAM_SIZE
99 hex
100 default 0x40000
101 help
102 The amount of coreboot-allocated heap and stack usage by the FSP.
103
Felix Helddc2d3562020-12-02 14:38:53 +0100104config RAMBASE
105 hex
106 default 0x10000000
107
108config CPU_ADDR_BITS
109 int
110 default 48
111
112config MMCONF_BASE_ADDRESS
113 hex
114 default 0xF8000000
115
116config MMCONF_BUS_NUMBER
117 int
118 default 64
119
Felix Held88615622021-01-19 23:51:45 +0100120config MAX_CPUS
121 int
122 default 16
123
Felix Held8a3d4d52021-01-13 03:06:21 +0100124config CONSOLE_UART_BASE_ADDRESS
125 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
126 hex
127 default 0xfedc9000 if UART_FOR_CONSOLE = 0
128 default 0xfedca000 if UART_FOR_CONSOLE = 1
129
Zheng Baof51738d2021-01-20 16:43:52 +0800130menu "PSP Configuration Options"
131
132config AMD_FWM_POSITION_INDEX
133 int "Firmware Directory Table location (0 to 5)"
134 range 0 5
135 default 0 if BOARD_ROMSIZE_KB_512
136 default 1 if BOARD_ROMSIZE_KB_1024
137 default 2 if BOARD_ROMSIZE_KB_2048
138 default 3 if BOARD_ROMSIZE_KB_4096
139 default 4 if BOARD_ROMSIZE_KB_8192
140 default 5 if BOARD_ROMSIZE_KB_16384
141 help
142 Typically this is calculated by the ROM size, but there may
143 be situations where you want to put the firmware directory
144 table in a different location.
145 0: 512 KB - 0xFFFA0000
146 1: 1 MB - 0xFFF20000
147 2: 2 MB - 0xFFE20000
148 3: 4 MB - 0xFFC20000
149 4: 8 MB - 0xFF820000
150 5: 16 MB - 0xFF020000
151
152comment "AMD Firmware Directory Table set to location for 512KB ROM"
153 depends on AMD_FWM_POSITION_INDEX = 0
154comment "AMD Firmware Directory Table set to location for 1MB ROM"
155 depends on AMD_FWM_POSITION_INDEX = 1
156comment "AMD Firmware Directory Table set to location for 2MB ROM"
157 depends on AMD_FWM_POSITION_INDEX = 2
158comment "AMD Firmware Directory Table set to location for 4MB ROM"
159 depends on AMD_FWM_POSITION_INDEX = 3
160comment "AMD Firmware Directory Table set to location for 8MB ROM"
161 depends on AMD_FWM_POSITION_INDEX = 4
162comment "AMD Firmware Directory Table set to location for 16MB ROM"
163 depends on AMD_FWM_POSITION_INDEX = 5
164
165config AMDFW_CONFIG_FILE
166 string
167 default "src/soc/amd/cezanne/fw.cfg"
168
169config USE_PSPSECUREOS
170 bool
171 default y
172 help
173 Include the PspSecureOs and PspTrustlet binaries in the PSP build.
174
175 If unsure, answer 'y'
176
177config PSP_LOAD_MP2_FW
178 bool
179 default n
180 help
181 Include the MP2 firmwares and configuration into the PSP build.
182
183 If unsure, answer 'n'
184
185config PSP_LOAD_S0I3_FW
186 bool
187 default n
188 help
189 Select this item to include the S0i3 file into the PSP build.
190
191config PSP_UNLOCK_SECURE_DEBUG
192 bool "Unlock secure debug"
193 default y
194 help
195 Select this item to enable secure debug options in PSP.
196
197endmenu
198
Felix Helddc2d3562020-12-02 14:38:53 +0100199endif # SOC_AMD_CEZANNE