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 | a32df26 | 2020-09-25 10:20:11 +0200 | [diff] [blame] | 11 | select ARCH_ALL_STAGES_X86_32 |
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 |
Karthikeyan Ramasubramanian | 8021b47 | 2020-06-16 23:54:46 -0600 | [diff] [blame] | 18 | select FSP_COMPRESS_FSP_S_LZ4 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 19 | select FSP_M_XIP |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 20 | select FSP_STATUS_GLOBAL_RESET_REQUIRED_3 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 21 | select GENERIC_GPIO_LIB |
| 22 | select HAVE_FSP_GOP |
| 23 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
| 24 | select HAVE_SMI_HANDLER |
| 25 | select IDT_IN_EVERY_STAGE |
| 26 | select INTEL_GMA_ACPI |
| 27 | select INTEL_GMA_ADD_VBT if RUN_FSP_GOP |
| 28 | select IOAPIC |
| 29 | select MRC_SETTINGS_PROTECT |
| 30 | select PARALLEL_MP |
| 31 | select PARALLEL_MP_AP_WORK |
| 32 | select MICROCODE_BLOB_UNDISCLOSED |
Ronak Kanabar | 8c4ad35 | 2020-07-24 17:46:19 +0530 | [diff] [blame] | 33 | select PLATFORM_USES_FSP2_2 |
Jonathan Zhang | 01e3855 | 2020-06-17 16:03:18 -0700 | [diff] [blame] | 34 | select FSP_PEIM_TO_PEIM_INTERFACE |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 35 | select REG_SCRIPT |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 36 | select PMC_GLOBAL_RESET_ENABLE_LOCK |
Subrata Banik | 0359d9d | 2020-09-28 18:43:47 +0530 | [diff] [blame] | 37 | select PMC_LOW_POWER_MODE_PROGRAM |
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 |
Subrata Banik | 21974ab | 2020-10-31 21:40:43 +0530 | [diff] [blame] | 42 | select SOC_INTEL_COMMON_BLOCK_CAR |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 43 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
Furquan Shaikh | 23e8813 | 2020-10-08 23:44:20 -0700 | [diff] [blame] | 44 | select SOC_INTEL_COMMON_BLOCK_CNVI |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 45 | select SOC_INTEL_COMMON_BLOCK_CPU |
| 46 | select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
| 47 | select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
| 48 | select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
| 49 | select SOC_INTEL_COMMON_BLOCK_HDA |
| 50 | select SOC_INTEL_COMMON_BLOCK_SA |
Duncan Laurie | 1e06611 | 2020-04-08 11:35:52 -0700 | [diff] [blame] | 51 | select SOC_INTEL_COMMON_BLOCK_SCS |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 52 | select SOC_INTEL_COMMON_BLOCK_SMM |
Sumeet R Pawnikar | e8d1bef | 2020-05-08 21:31:44 +0530 | [diff] [blame] | 53 | select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 54 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 55 | select SOC_INTEL_COMMON_FSP_RESET |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 56 | select SOC_INTEL_COMMON_PCH_BASE |
| 57 | select SOC_INTEL_COMMON_RESET |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 58 | select SSE2 |
| 59 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 60 | select TSC_MONOTONIC_TIMER |
| 61 | select UDELAY_TSC |
Ronak Kanabar | a360aad | 2020-08-19 14:40:08 +0530 | [diff] [blame] | 62 | select UDK_202005_BINDING |
Aamir Bohra | 522ba1b | 2020-07-22 14:15:36 +0530 | [diff] [blame] | 63 | select USE_CAR_NEM_ENHANCED_V1 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 64 | select DISPLAY_FSP_VERSION_INFO |
| 65 | select HECI_DISABLE_USING_SMM |
| 66 | |
| 67 | config DCACHE_RAM_BASE |
| 68 | default 0xfef00000 |
| 69 | |
| 70 | config DCACHE_RAM_SIZE |
| 71 | default 0x80000 |
| 72 | help |
| 73 | The size of the cache-as-ram region required during bootblock |
| 74 | and/or romstage. |
| 75 | |
| 76 | config DCACHE_BSP_STACK_SIZE |
| 77 | hex |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 78 | default 0x30400 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 79 | help |
| 80 | The amount of anticipated stack usage in CAR by bootblock and |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 81 | other stages. In the case of FSP_USES_CB_STACK default value |
| 82 | will be sum of FSP-M stack requirement(192 KiB) and CB romstage |
| 83 | stack requirement(~1KiB). |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 84 | |
| 85 | config FSP_TEMP_RAM_SIZE |
| 86 | hex |
| 87 | default 0x20000 |
| 88 | help |
| 89 | The amount of anticipated heap usage in CAR by FSP. |
| 90 | Refer to Platform FSP integration guide document to know |
| 91 | the exact FSP requirement for Heap setup. |
| 92 | |
| 93 | config IFD_CHIPSET |
| 94 | string |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 95 | default "jsl" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 96 | |
| 97 | config IED_REGION_SIZE |
| 98 | hex |
| 99 | default 0x400000 |
| 100 | |
| 101 | config HEAP_SIZE |
| 102 | hex |
| 103 | default 0x8000 |
| 104 | |
| 105 | config MAX_ROOT_PORTS |
| 106 | int |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 107 | default 8 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 108 | |
| 109 | config MAX_PCIE_CLOCKS |
| 110 | int |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 111 | default 6 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 112 | |
| 113 | config SMM_TSEG_SIZE |
| 114 | hex |
| 115 | default 0x800000 |
| 116 | |
| 117 | config SMM_RESERVED_SIZE |
| 118 | hex |
| 119 | default 0x200000 |
| 120 | |
| 121 | config PCR_BASE_ADDRESS |
| 122 | hex |
| 123 | default 0xfd000000 |
| 124 | help |
| 125 | This option allows you to select MMIO Base Address of sideband bus. |
| 126 | |
| 127 | config MMCONF_BASE_ADDRESS |
| 128 | hex |
| 129 | default 0xc0000000 |
| 130 | |
| 131 | config CPU_BCLK_MHZ |
| 132 | int |
| 133 | default 100 |
| 134 | |
| 135 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 136 | int |
| 137 | default 120 |
| 138 | |
| 139 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 140 | int |
| 141 | default 133 |
| 142 | |
Michael Niewöhner | dadcbfb | 2020-10-04 14:48:05 +0200 | [diff] [blame] | 143 | config CPU_XTAL_HZ |
| 144 | default 38400000 |
| 145 | |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 146 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 147 | int |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 148 | default 3 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 149 | |
| 150 | config SOC_INTEL_I2C_DEV_MAX |
| 151 | int |
| 152 | default 6 |
| 153 | |
| 154 | config SOC_INTEL_UART_DEV_MAX |
| 155 | int |
| 156 | default 3 |
| 157 | |
| 158 | config CONSOLE_UART_BASE_ADDRESS |
| 159 | hex |
| 160 | default 0xfe032000 |
| 161 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 162 | |
| 163 | # Clock divider parameters for 115200 baud rate |
| 164 | # Baudrate = (UART source clcok * M) /(N *16) |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 165 | # JSL UART source clock: 100MHz |
| 166 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 167 | hex |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 168 | default 0x30 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 169 | |
| 170 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 171 | hex |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 172 | default 0xc35 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 173 | |
| 174 | config CHROMEOS |
| 175 | select CHROMEOS_RAMOOPS_DYNAMIC |
| 176 | |
| 177 | config VBOOT |
| 178 | select VBOOT_SEPARATE_VERSTAGE |
| 179 | select VBOOT_MUST_REQUEST_DISPLAY |
| 180 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 181 | select VBOOT_VBNV_CMOS |
| 182 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 183 | |
| 184 | config C_ENV_BOOTBLOCK_SIZE |
| 185 | hex |
| 186 | default 0xC000 |
| 187 | |
| 188 | config CBFS_SIZE |
| 189 | hex |
| 190 | default 0x200000 |
| 191 | |
| 192 | config FSP_HEADER_PATH |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 193 | default "src/vendorcode/intel/fsp/fsp2_0/jasperlake/" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 194 | |
| 195 | config FSP_FD_PATH |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 196 | default "3rdparty/fsp/JasperLakeFspBinPkg/Fsp.fd" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 197 | |
Aamir Bohra | a23e0c9 | 2020-03-25 15:31:12 +0530 | [diff] [blame] | 198 | config SOC_INTEL_JASPERLAKE_DEBUG_CONSENT |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame] | 199 | int "Debug Consent for JSL" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 200 | # USB DBC is more common for developers so make this default to 3 if |
| 201 | # SOC_INTEL_DEBUG_CONSENT=y |
| 202 | default 3 if SOC_INTEL_DEBUG_CONSENT |
| 203 | default 0 |
| 204 | help |
| 205 | This is to control debug interface on SOC. |
| 206 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 207 | PlatformDebugConsent in FspmUpd.h has the details. |
| 208 | |
| 209 | Desired platform debug type are |
| 210 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 211 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 212 | 6:Enable (2-wire DCI OOB), 7:Manual |
Subrata Banik | ebf1daa | 2020-05-19 12:32:41 +0530 | [diff] [blame] | 213 | |
| 214 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 215 | hex |
Meera Ravindranath | 6aa6f1f | 2020-08-10 15:19:23 +0530 | [diff] [blame] | 216 | default 0x1400 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 217 | endif |