Aamir Bohra | a23e0c9 | 2020-03-25 15:31:12 +0530 | [diff] [blame] | 1 | config SOC_INTEL_JASPERLAKE |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 2 | bool |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 3 | help |
| 4 | Intel Jasperlake support |
| 5 | |
Aamir Bohra | a23e0c9 | 2020-03-25 15:31:12 +0530 | [diff] [blame] | 6 | if SOC_INTEL_JASPERLAKE |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 7 | |
| 8 | config CPU_SPECIFIC_OPTIONS |
| 9 | def_bool y |
| 10 | select ACPI_INTEL_HARDWARE_SLEEP_VALUES |
Angel Pons | 8e035e3 | 2021-06-22 12:58:20 +0200 | [diff] [blame] | 11 | select ARCH_X86 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 12 | select BOOT_DEVICE_SUPPORTS_WRITES |
| 13 | select CACHE_MRC_SETTINGS |
Sumeet R Pawnikar | e8d1bef | 2020-05-08 21:31:44 +0530 | [diff] [blame] | 14 | select CPU_INTEL_COMMON |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 15 | select CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
Michael Niewöhner | fe6070f | 2020-10-04 15:16:04 +0200 | [diff] [blame] | 16 | select CPU_SUPPORTS_PM_TIMER_EMULATION |
Aamir Bohra | 522ba1b | 2020-07-22 14:15:36 +0530 | [diff] [blame] | 17 | select COS_MAPPED_TO_MSB |
Subrata Banik | 34f26b2 | 2022-02-10 12:38:02 +0530 | [diff] [blame] | 18 | select DISPLAY_FSP_VERSION_INFO_2 |
Sean Rhodes | 7bbc9a5 | 2022-07-18 11:31:00 +0100 | [diff] [blame] | 19 | select EDK2_CPU_TIMER_LIB if PAYLOAD_EDK2 |
Karthikeyan Ramasubramanian | 8021b47 | 2020-06-16 23:54:46 -0600 | [diff] [blame] | 20 | select FSP_COMPRESS_FSP_S_LZ4 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 21 | select FSP_M_XIP |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 22 | select FSP_STATUS_GLOBAL_RESET_REQUIRED_3 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 23 | select GENERIC_GPIO_LIB |
Subrata Banik | 4225a79 | 2022-12-19 18:24:13 +0530 | [diff] [blame] | 24 | select HAVE_DPTF_EISA_HID |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 25 | select HAVE_FSP_GOP |
| 26 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
| 27 | select HAVE_SMI_HANDLER |
Subrata Banik | 34f26b2 | 2022-02-10 12:38:02 +0530 | [diff] [blame] | 28 | select HECI_DISABLE_USING_SMM if DISABLE_HECI1_AT_PRE_BOOT |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 29 | select IDT_IN_EVERY_STAGE |
Shreesh Chhabbi | 87c7ec7 | 2020-12-03 14:07:15 -0800 | [diff] [blame] | 30 | select INTEL_CAR_NEM_ENHANCED |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 31 | select INTEL_GMA_ACPI |
| 32 | select INTEL_GMA_ADD_VBT if RUN_FSP_GOP |
Aamir Bohra | 30cca6c | 2021-02-04 20:57:51 +0530 | [diff] [blame] | 33 | select MP_SERVICES_PPI_V1 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 34 | select MRC_SETTINGS_PROTECT |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 35 | select PARALLEL_MP_AP_WORK |
Ronak Kanabar | 8c4ad35 | 2020-07-24 17:46:19 +0530 | [diff] [blame] | 36 | select PLATFORM_USES_FSP2_2 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 37 | select PMC_GLOBAL_RESET_ENABLE_LOCK |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 38 | select SOC_INTEL_COMMON |
| 39 | select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE |
| 40 | select SOC_INTEL_COMMON_BLOCK |
| 41 | select SOC_INTEL_COMMON_BLOCK_ACPI |
Michael Niewöhner | 02275be | 2020-11-12 23:50:37 +0100 | [diff] [blame] | 42 | select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC |
Angel Pons | 98f672a | 2021-02-19 19:42:10 +0100 | [diff] [blame] | 43 | select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO |
Michael Niewöhner | 8a6c34e | 2021-01-01 21:26:42 +0100 | [diff] [blame] | 44 | select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT |
Tim Wawrzynczak | 77b36ab | 2021-07-01 08:44:14 -0600 | [diff] [blame] | 45 | select SOC_INTEL_COMMON_BLOCK_ACPI_PEP |
Subrata Banik | 21974ab | 2020-10-31 21:40:43 +0530 | [diff] [blame] | 46 | select SOC_INTEL_COMMON_BLOCK_CAR |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 47 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
Furquan Shaikh | 23e8813 | 2020-10-08 23:44:20 -0700 | [diff] [blame] | 48 | select SOC_INTEL_COMMON_BLOCK_CNVI |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 49 | select SOC_INTEL_COMMON_BLOCK_CPU |
| 50 | select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
Angel Pons | a4cd911 | 2021-02-19 19:23:38 +0100 | [diff] [blame] | 51 | select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 52 | select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
| 53 | select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
| 54 | select SOC_INTEL_COMMON_BLOCK_HDA |
Dinesh Gehlot | b17f9e6 | 2023-02-20 13:41:21 +0000 | [diff] [blame] | 55 | select SOC_INTEL_COMMON_BLOCK_ME_SPEC_13 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 56 | select SOC_INTEL_COMMON_BLOCK_SA |
Duncan Laurie | 1e06611 | 2020-04-08 11:35:52 -0700 | [diff] [blame] | 57 | select SOC_INTEL_COMMON_BLOCK_SCS |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 58 | select SOC_INTEL_COMMON_BLOCK_SMM |
Sumeet R Pawnikar | e8d1bef | 2020-05-08 21:31:44 +0530 | [diff] [blame] | 59 | select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 60 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
Karthikeyan Ramasubramanian | af0d516 | 2020-11-04 17:05:35 -0700 | [diff] [blame] | 61 | select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 62 | select SOC_INTEL_COMMON_FSP_RESET |
Angel Pons | eb90c51 | 2022-07-18 14:41:24 +0200 | [diff] [blame] | 63 | select SOC_INTEL_COMMON_PCH_CLIENT |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 64 | select SOC_INTEL_COMMON_RESET |
Subrata Banik | bed82b0 | 2022-11-24 21:02:00 +0530 | [diff] [blame] | 65 | select SOC_INTEL_CSE_SEND_EOP_LATE |
Tim Wawrzynczak | 82eaa21 | 2021-06-17 12:44:36 -0600 | [diff] [blame] | 66 | select SOC_INTEL_CSE_SET_EOP |
Subrata Banik | af27ac2 | 2022-02-18 00:44:15 +0530 | [diff] [blame] | 67 | select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 68 | select SSE2 |
| 69 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 70 | select TSC_MONOTONIC_TIMER |
| 71 | select UDELAY_TSC |
Ronak Kanabar | a360aad | 2020-08-19 14:40:08 +0530 | [diff] [blame] | 72 | select UDK_202005_BINDING |
Subrata Banik | 34f26b2 | 2022-02-10 12:38:02 +0530 | [diff] [blame] | 73 | select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM |
| 74 | select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT |
| 75 | select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE |
Sean Rhodes | 21e61847 | 2023-04-19 08:48:33 +0100 | [diff] [blame] | 76 | select SOC_INTEL_COMMON_BASECODE |
| 77 | select SOC_INTEL_COMMON_BASECODE_RAMTOP |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 78 | |
| 79 | config DCACHE_RAM_BASE |
| 80 | default 0xfef00000 |
| 81 | |
| 82 | config DCACHE_RAM_SIZE |
| 83 | default 0x80000 |
| 84 | help |
| 85 | The size of the cache-as-ram region required during bootblock |
| 86 | and/or romstage. |
| 87 | |
| 88 | config DCACHE_BSP_STACK_SIZE |
| 89 | hex |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 90 | default 0x30400 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 91 | help |
| 92 | The amount of anticipated stack usage in CAR by bootblock and |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 93 | other stages. In the case of FSP_USES_CB_STACK default value |
| 94 | will be sum of FSP-M stack requirement(192 KiB) and CB romstage |
| 95 | stack requirement(~1KiB). |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 96 | |
| 97 | config FSP_TEMP_RAM_SIZE |
| 98 | hex |
| 99 | default 0x20000 |
| 100 | help |
| 101 | The amount of anticipated heap usage in CAR by FSP. |
| 102 | Refer to Platform FSP integration guide document to know |
| 103 | the exact FSP requirement for Heap setup. |
| 104 | |
| 105 | config IFD_CHIPSET |
| 106 | string |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 107 | default "jsl" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 108 | |
| 109 | config IED_REGION_SIZE |
| 110 | hex |
| 111 | default 0x400000 |
| 112 | |
| 113 | config HEAP_SIZE |
| 114 | hex |
| 115 | default 0x8000 |
| 116 | |
| 117 | config MAX_ROOT_PORTS |
| 118 | int |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 119 | default 8 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 120 | |
Rizwan Qureshi | a979460 | 2021-04-08 20:31:47 +0530 | [diff] [blame] | 121 | config MAX_PCIE_CLOCK_SRC |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 122 | int |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 123 | default 6 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 124 | |
| 125 | config SMM_TSEG_SIZE |
| 126 | hex |
| 127 | default 0x800000 |
| 128 | |
| 129 | config SMM_RESERVED_SIZE |
| 130 | hex |
| 131 | default 0x200000 |
| 132 | |
| 133 | config PCR_BASE_ADDRESS |
| 134 | hex |
| 135 | default 0xfd000000 |
| 136 | help |
| 137 | This option allows you to select MMIO Base Address of sideband bus. |
| 138 | |
Shelley Chen | 4e9bb33 | 2021-10-20 15:43:45 -0700 | [diff] [blame] | 139 | config ECAM_MMCONF_BASE_ADDRESS |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 140 | default 0xc0000000 |
| 141 | |
| 142 | config CPU_BCLK_MHZ |
| 143 | int |
| 144 | default 100 |
| 145 | |
| 146 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 147 | int |
| 148 | default 120 |
| 149 | |
| 150 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 151 | int |
| 152 | default 133 |
| 153 | |
Michael Niewöhner | dadcbfb | 2020-10-04 14:48:05 +0200 | [diff] [blame] | 154 | config CPU_XTAL_HZ |
| 155 | default 38400000 |
| 156 | |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 157 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 158 | int |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 159 | default 3 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 160 | |
| 161 | config SOC_INTEL_I2C_DEV_MAX |
| 162 | int |
| 163 | default 6 |
| 164 | |
| 165 | config SOC_INTEL_UART_DEV_MAX |
| 166 | int |
| 167 | default 3 |
| 168 | |
| 169 | config CONSOLE_UART_BASE_ADDRESS |
| 170 | hex |
| 171 | default 0xfe032000 |
| 172 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 173 | |
| 174 | # Clock divider parameters for 115200 baud rate |
Angel Pons | 054ff5e | 2022-06-26 10:19:53 +0200 | [diff] [blame] | 175 | # Baudrate = (UART source clock * M) /(N *16) |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 176 | # JSL UART source clock: 100MHz |
| 177 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 178 | hex |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 179 | default 0x30 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 180 | |
| 181 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 182 | hex |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 183 | default 0xc35 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 184 | |
Seunghwan Kim | 024b2bd | 2021-08-27 18:49:47 +0900 | [diff] [blame] | 185 | config VBT_DATA_SIZE_KB |
| 186 | int |
| 187 | default 9 |
| 188 | |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 189 | config VBOOT |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 190 | select VBOOT_MUST_REQUEST_DISPLAY |
| 191 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 192 | select VBOOT_VBNV_CMOS |
| 193 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 194 | |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 195 | config CBFS_SIZE |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 196 | default 0x200000 |
| 197 | |
| 198 | config FSP_HEADER_PATH |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 199 | default "src/vendorcode/intel/fsp/fsp2_0/jasperlake/" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 200 | |
| 201 | config FSP_FD_PATH |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 202 | default "3rdparty/fsp/JasperLakeFspBinPkg/Fsp.fd" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 203 | |
Aamir Bohra | a23e0c9 | 2020-03-25 15:31:12 +0530 | [diff] [blame] | 204 | config SOC_INTEL_JASPERLAKE_DEBUG_CONSENT |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 205 | int "Debug Consent for JSL" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 206 | # USB DBC is more common for developers so make this default to 3 if |
| 207 | # SOC_INTEL_DEBUG_CONSENT=y |
| 208 | default 3 if SOC_INTEL_DEBUG_CONSENT |
| 209 | default 0 |
| 210 | help |
| 211 | This is to control debug interface on SOC. |
| 212 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 213 | PlatformDebugConsent in FspmUpd.h has the details. |
| 214 | |
| 215 | Desired platform debug type are |
| 216 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 217 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 218 | 6:Enable (2-wire DCI OOB), 7:Manual |
Subrata Banik | ebf1daa | 2020-05-19 12:32:41 +0530 | [diff] [blame] | 219 | |
| 220 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 221 | hex |
Meera Ravindranath | 6aa6f1f | 2020-08-10 15:19:23 +0530 | [diff] [blame] | 222 | default 0x1400 |
Matt DeVillier | e30d204 | 2023-01-23 10:23:55 -0600 | [diff] [blame] | 223 | |
| 224 | config INTEL_GMA_BCLV_OFFSET |
| 225 | default 0xc8258 |
| 226 | |
| 227 | config INTEL_GMA_BCLV_WIDTH |
| 228 | default 32 |
| 229 | |
| 230 | config INTEL_GMA_BCLM_OFFSET |
| 231 | default 0xc8254 |
| 232 | |
| 233 | config INTEL_GMA_BCLM_WIDTH |
| 234 | default 32 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 235 | endif |