blob: 798d473cad9df9d5481206b9c158c9bb04574e19 [file] [log] [blame]
Elyes HAOUASf7b2fe62020-05-07 12:38:15 +02001# SPDX-License-Identifier: GPL-2.0-only
Mariusz Szafranskia4041332017-08-02 17:28:17 +02002
3config SOC_INTEL_DENVERTON_NS
4 bool
5 help
6 Intel Denverton-NS SoC support
7
8if SOC_INTEL_DENVERTON_NS
9
10config CPU_SPECIFIC_OPTIONS
11 def_bool y
Angel Ponsa32df262020-09-25 10:20:11 +020012 select ARCH_ALL_STAGES_X86_32
Mariusz Szafranskia4041332017-08-02 17:28:17 +020013 select BOOT_DEVICE_SUPPORTS_WRITES
Nico Huber371a6672018-11-13 22:06:40 +010014 select DEBUG_GPIO
Mariusz Szafranskia4041332017-08-02 17:28:17 +020015 select SOC_INTEL_COMMON
16 select SOC_INTEL_COMMON_RESET
17 select PLATFORM_USES_FSP2_0
Mariusz Szafranskia4041332017-08-02 17:28:17 +020018 select IOAPIC
Johanna Schander8a6e0362019-12-08 15:54:09 +010019 select HAVE_INTEL_FSP_REPO
Mariusz Szafranskia4041332017-08-02 17:28:17 +020020 select HAVE_SMI_HANDLER
Mariusz Szafranskia4041332017-08-02 17:28:17 +020021 select CACHE_MRC_SETTINGS
Mariusz Szafranskia4041332017-08-02 17:28:17 +020022 select PARALLEL_MP
Julien Viard de Galbert3ac3a682018-03-29 11:36:21 +020023 select PCR_COMMON_IOSF_1_0
Stefan Tauneref8b9572018-09-06 00:34:28 +020024 select INTEL_DESCRIPTOR_MODE_CAPABLE
Mariusz Szafranskia4041332017-08-02 17:28:17 +020025 select SOC_INTEL_COMMON_BLOCK
Julien Viard de Galbert5a1f5402018-02-08 14:03:28 +010026 select SOC_INTEL_COMMON_BLOCK_CPU
Julien Viard de Galbertcf2b72f2018-04-05 11:24:45 +020027 select SOC_INTEL_COMMON_BLOCK_ACPI
Julien Viard de Galbert2912e8e2018-08-14 16:15:26 +020028 select SOC_INTEL_COMMON_BLOCK_PMC
29 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Mariusz Szafranskia4041332017-08-02 17:28:17 +020030 select SOC_INTEL_COMMON_BLOCK_FAST_SPI
Julien Viard de Galbert3ac3a682018-03-29 11:36:21 +020031 select SOC_INTEL_COMMON_BLOCK_GPIO
Julien Viard de Galbert3ac3a682018-03-29 11:36:21 +020032 select SOC_INTEL_COMMON_BLOCK_PCR
Mariusz Szafranskia4041332017-08-02 17:28:17 +020033 select TSC_MONOTONIC_TIMER
34 select TSC_SYNC_MFENCE
35 select UDELAY_TSC
Subrata Banik74558812018-01-25 11:41:04 +053036 select UDK_2015_BINDING
Vanessa Eusebiocd979822018-06-06 13:12:53 -070037 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Felix Singere0b74a12020-03-03 22:39:02 +010038 select SUPPORT_CPU_UCODE_IN_CBFS
Mariusz Szafranskia4041332017-08-02 17:28:17 +020039
Andrey Petrovdafd5142019-12-30 09:58:47 -080040config MMCONF_BASE_ADDRESS
41 hex
42 default 0xe0000000
43
Mariusz Szafranskia4041332017-08-02 17:28:17 +020044config FSP_T_ADDR
Elyes HAOUASef906092020-02-20 19:41:17 +010045 hex "Intel FSP-T (temp RAM init) binary location"
Mariusz Szafranskia4041332017-08-02 17:28:17 +020046 depends on ADD_FSP_BINARIES && FSP_CAR
47 default 0xfff30000
48 help
49 The memory location of the Intel FSP-T binary for this platform.
50
51config FSP_M_ADDR
52 hex "Intel FSP-M (memory init) binary location"
53 depends on ADD_FSP_BINARIES
54 default 0xfff32000
55 help
56 The memory location of the Intel FSP-M binary for this platform.
57
58config FSP_S_ADDR
59 hex "Intel FSP-S (silicon init) binary location"
60 depends on ADD_FSP_BINARIES
61 default 0xfffc3000
62 help
63 The memory location of the Intel FSP-S binary for this platform.
64
Felix Singerfdccfc62019-01-15 07:29:57 +010065config FSP_HEADER_PATH
Felix Singerfdccfc62019-01-15 07:29:57 +010066 default "3rdparty/fsp/DenvertonNSFspBinPkg/Include/"
67
68config FSP_FD_PATH
Felix Singerfdccfc62019-01-15 07:29:57 +010069 default "3rdparty/fsp/DenvertonNSFspBinPkg/FspBin/DenvertonNSFsp.fd"
70
Mariusz Szafranskia4041332017-08-02 17:28:17 +020071# CAR memory layout on DENVERTON_NS hardware:
72## CAR base address - 0xfef00000
73## CAR size 1MB - 0x100 (0xfff00)
74## coreboot usage:
75## DCACHE base - 0xfef00000
76## DCACHE size - 0xb0000
77## FSP usage:
78## FSP base - 0xfefb0000
79## FSP size - 0x50000 - 0x100 (0x4ff00)
80config MAX_CPUS
81 int
82 default 16
83
Julien Viard de Galbert3ac3a682018-03-29 11:36:21 +020084config PCR_BASE_ADDRESS
85 hex
86 default 0xfd000000
87 help
88 This option allows you to select MMIO Base Address of sideband bus.
89
Mariusz Szafranskia4041332017-08-02 17:28:17 +020090config DCACHE_RAM_BASE
91 hex
92 default 0xfef00000
93
94config DCACHE_RAM_SIZE
95 hex
96 default 0xb0000 if FSP_CAR
97 default 0x100000 if !FSP_CAR
98
99config DCACHE_BSP_STACK_SIZE
100 hex
101 default 0x10000
102
Julien Viard de Galbert5a1f5402018-02-08 14:03:28 +0100103config CPU_BCLK_MHZ
104 int
105 default 100
106
Mariusz Szafranskia4041332017-08-02 17:28:17 +0200107config SMM_TSEG_SIZE
108 hex
109 default 0x200000
110
111config SMM_RESERVED_SIZE
112 hex
113 default 0x000000
114
115config IQAT_ENABLE
116 bool "Enable IQAT"
117 default y
118
Mariusz Szafranskia4041332017-08-02 17:28:17 +0200119config HSUART_DEV
120 hex
121 default 0x1a
122
Mariusz Szafranskia4041332017-08-02 17:28:17 +0200123choice
124 prompt "UART mode selection"
125 default NON_LEGACY_UART_MODE
126
127config NON_LEGACY_UART_MODE
128 bool "Non Legacy Mode"
129 help
130 Disable legacy UART mode
131
132config LEGACY_UART_MODE
133 bool "Legacy Mode"
134 help
135 Enable legacy UART mode
136endchoice
137
138config ENABLE_HSUART
Nico Huber3eb720c2018-11-11 00:27:41 +0100139 depends on NON_LEGACY_UART_MODE
Mariusz Szafranskia4041332017-08-02 17:28:17 +0200140 bool "Enable High-speed UART debug port selected by UART_FOR_CONSOLE."
141 default n
142 select CONSOLE_SERIAL
143 select DRIVERS_UART
144 select DRIVERS_UART_8250MEM
145
146config CONSOLE_UART_BASE_ADDRESS
147 depends on ENABLE_HSUART
148 hex "MMIO base address for UART"
149 default 0xd4000000
150
151config C_ENV_BOOTBLOCK_SIZE
152 hex
153 default 0x8000
154
155config DENVERTON_NS_CAR_NEM_ENHANCED
156 bool "Enhanced Non-evict mode"
157 depends on !FSP_CAR
158 default y
159 select SOC_INTEL_COMMON_BLOCK_CAR
Aamir Bohrac1d227d2020-07-16 09:03:06 +0530160 select USE_CAR_NEM_ENHANCED_V1
Mariusz Szafranskia4041332017-08-02 17:28:17 +0200161 help
162 A current limitation of NEM (Non-Evict mode) is that code and data sizes
163 are derived from the requirement to not write out any modified cache line.
164 With NEM, if there is no physical memory behind the cached area,
165 the modified data will be lost and NEM results will be inconsistent.
166 ENHANCED NEM guarantees that modified data is always
167 kept in cache while clean data is replaced.
168
169endif ## SOC_INTEL_DENVERTON_NS