blob: ac166c30382a7886246bb0f05baa434ae587103f [file] [log] [blame]
Andrey Petrov2e410752020-03-20 12:08:32 -07001## SPDX-License-Identifier: GPL-2.0-only
Andrey Petrov2e410752020-03-20 12:08:32 -07002
Elyes Haouas171ad512023-08-04 07:42:33 +02003config SOC_INTEL_COOPERLAKE_SP
4 bool
5 select XEON_SP_COMMON_BASE
6 select PLATFORM_USES_FSP2_2
7 select CACHE_MRC_SETTINGS
8 select NO_FSP_TEMP_RAM_EXIT
Arthur Heymansffa61b02021-09-07 14:16:50 +02009 select HAVE_INTEL_FSP_REPO
Elyes Haouas171ad512023-08-04 07:42:33 +020010 help
11 Intel Cooper Lake-SP support
12
13if SOC_INTEL_COOPERLAKE_SP
Arthur Heymans86d195b2020-12-11 09:46:03 +010014
Andrey Petrov2e410752020-03-20 12:08:32 -070015config FSP_HEADER_PATH
Arthur Heymansffa61b02021-09-07 14:16:50 +020016 default "3rdparty/fsp/CedarIslandFspBinPkg/Include"
17
18config FSP_FD_PATH
19 default "3rdparty/fsp/CedarIslandFspBinPkg/Fsp.fd"
Andrey Petrov2e410752020-03-20 12:08:32 -070020
21config MAX_SOCKET
22 int
23 default 2
24
25config MAX_CPUS
26 int
Andrey Petrove37d1f72020-04-20 21:11:51 -070027 default 255
Andrey Petrov2e410752020-03-20 12:08:32 -070028
29config PCR_BASE_ADDRESS
30 hex
31 default 0xfd000000
32 help
33 This option allows you to select MMIO Base Address of sideband bus.
34
Andrey Petrov2e410752020-03-20 12:08:32 -070035config DCACHE_RAM_BASE
36 hex
Arthur Heymansb38d6bb2020-10-28 18:24:56 +010037 default 0xfe800000
Andrey Petrov2e410752020-03-20 12:08:32 -070038
39config DCACHE_RAM_SIZE
40 hex
Arthur Heymansb38d6bb2020-10-28 18:24:56 +010041 default 0x1fff00
Jonathan Zhangd4efb332020-07-22 12:39:40 -070042 help
43 The size of the cache-as-ram region required during bootblock
Arthur Heymansb38d6bb2020-10-28 18:24:56 +010044 and/or romstage. FSP-T reserves the upper 0x100 for
45 FspReservedBuffer.
Andrey Petrov2e410752020-03-20 12:08:32 -070046
47config DCACHE_BSP_STACK_SIZE
48 hex
Arthur Heymans7a5c3692021-01-04 12:49:39 +010049 default 0x40000
Jonathan Zhangd4efb332020-07-22 12:39:40 -070050 help
51 The amount of anticipated stack usage in CAR by bootblock and
52 other stages. It needs to include FSP-M stack requirement and
Arthur Heymansb38d6bb2020-10-28 18:24:56 +010053 CB romstage stack requirement. The integration documentation
Arthur Heymans7a5c3692021-01-04 12:49:39 +010054 says this needs to be 256KiB.
55
56config FSP_M_RC_HEAP_SIZE
57 hex
58 default 0x130000
59 help
60 On xeon_sp/cpx FSP-M has two separate heap managers, one regular
61 whose size and base are controllable via the StackBase and
62 StackSize UPDs and a 'rc' heap manager that is statically
63 allocated at 0xfe800000 (the CAR base) and consumes about 0x130000
64 bytes of memory.
Andrey Petrov2e410752020-03-20 12:08:32 -070065
66config CPU_MICROCODE_CBFS_LOC
67 hex
68 default 0xfff0fdc0
69
70config CPU_MICROCODE_CBFS_LEN
71 hex
72 default 0x7C00
73
Jonathan Zhang4337a9a2020-07-31 17:35:25 -070074config STACK_SIZE
75 hex
76 default 0x4000
77
Andrey Petrov2e410752020-03-20 12:08:32 -070078config FSP_TEMP_RAM_SIZE
79 hex
80 depends on FSP_USES_CB_STACK
Arthur Heymansb38d6bb2020-10-28 18:24:56 +010081 default 0x40000
Andrey Petrov2e410752020-03-20 12:08:32 -070082 help
83 The amount of anticipated heap usage in CAR by FSP.
84 Refer to Platform FSP integration guide document to know
Arthur Heymansb38d6bb2020-10-28 18:24:56 +010085 the exact FSP requirement for Heap setup. The FSP integration
86 documentation says this needs to be at least 128KiB, but practice
87 show this needs to be 256KiB or more.
Andrey Petrov2e410752020-03-20 12:08:32 -070088
Rocky Phagura17a798b2020-10-08 13:32:41 -070089config IED_REGION_SIZE
90 hex
91 default 0x400000
92
Johnny Linc05aa262021-06-22 11:35:41 +080093config IFD_CHIPSET
94 string
95 default "lbg"
96
Andrey Petrovcf270f02020-04-30 13:36:38 -070097config SOC_INTEL_COMMON_BLOCK_P2SB
98 def_bool y
99
Jingle Hsua41b12c2020-08-11 20:48:45 +0800100config CPU_BCLK_MHZ
101 int
102 default 100
103
Jonathan Zhangdecf7dc2020-07-27 15:26:30 -0700104# CPX-SP has 2 IMCs, 3 channels per IMC, 2 DIMMs per channel
105# Default value is set to one socket, full config.
106config DIMM_MAX
Jonathan Zhangdecf7dc2020-07-27 15:26:30 -0700107 default 12
108
109# DDR4
110config DIMM_SPD_SIZE
Jonathan Zhangdecf7dc2020-07-27 15:26:30 -0700111 default 512
112
Christian Walter106def92022-06-29 18:23:51 +0200113config XEON_SP_HAVE_IIO_IOAPIC
114 bool
115 default y
116
Arthur Heymans9059a892020-10-23 11:08:41 +0200117if INTEL_TXT
118
119config INTEL_TXT_SINIT_SIZE
120 hex
121 default 0x50000
122 help
123 According to document number 572782 this needs to be 256KiB
124 for the SINIT module and 64KiB for SINIT data.
125
126config INTEL_TXT_HEAP_SIZE
127 hex
128 default 0xf0000
129 help
130 This must be 960KiB according to 572782.
131
132endif # INTEL_TXT
133
Andrey Petrov2e410752020-03-20 12:08:32 -0700134endif