Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 1 | config SOC_INTEL_JASPERLAKE_COPY |
| 2 | bool |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 3 | help |
| 4 | Intel Jasperlake support |
| 5 | |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 6 | if SOC_INTEL_JASPERLAKE_COPY |
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 |
| 11 | select ARCH_BOOTBLOCK_X86_32 |
| 12 | select ARCH_RAMSTAGE_X86_32 |
| 13 | select ARCH_ROMSTAGE_X86_32 |
| 14 | select ARCH_VERSTAGE_X86_32 |
| 15 | select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH |
| 16 | select BOOT_DEVICE_SUPPORTS_WRITES |
| 17 | select CACHE_MRC_SETTINGS |
| 18 | select COMMON_FADT |
| 19 | select CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
| 20 | select FSP_M_XIP |
| 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 |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 26 | select INTEL_CAR_NEM #TODO - Enable INTEL_CAR_NEM_ENHANCED |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 27 | select INTEL_GMA_ACPI |
| 28 | select INTEL_GMA_ADD_VBT if RUN_FSP_GOP |
| 29 | select IOAPIC |
| 30 | select MRC_SETTINGS_PROTECT |
| 31 | select PARALLEL_MP |
| 32 | select PARALLEL_MP_AP_WORK |
| 33 | select MICROCODE_BLOB_UNDISCLOSED |
| 34 | select PLATFORM_USES_FSP2_1 |
| 35 | select REG_SCRIPT |
| 36 | select SMP |
| 37 | select SOC_AHCI_PORT_IMPLEMENTED_INVERT |
| 38 | select PMC_GLOBAL_RESET_ENABLE_LOCK |
| 39 | select CPU_INTEL_COMMON_SMM |
| 40 | select SOC_INTEL_COMMON |
| 41 | select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE |
| 42 | select SOC_INTEL_COMMON_BLOCK |
| 43 | select SOC_INTEL_COMMON_BLOCK_ACPI |
| 44 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
| 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 |
| 51 | select SOC_INTEL_COMMON_BLOCK_SMM |
| 52 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
| 53 | select SOC_INTEL_COMMON_PCH_BASE |
| 54 | select SOC_INTEL_COMMON_RESET |
| 55 | select SOC_INTEL_COMMON_BLOCK_CAR |
| 56 | select SSE2 |
| 57 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 58 | select TSC_MONOTONIC_TIMER |
| 59 | select UDELAY_TSC |
| 60 | select UDK_2017_BINDING |
| 61 | select DISPLAY_FSP_VERSION_INFO |
| 62 | select HECI_DISABLE_USING_SMM |
| 63 | |
| 64 | config DCACHE_RAM_BASE |
| 65 | default 0xfef00000 |
| 66 | |
| 67 | config DCACHE_RAM_SIZE |
| 68 | default 0x80000 |
| 69 | help |
| 70 | The size of the cache-as-ram region required during bootblock |
| 71 | and/or romstage. |
| 72 | |
| 73 | config DCACHE_BSP_STACK_SIZE |
| 74 | hex |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 75 | default 0x30400 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 76 | help |
| 77 | The amount of anticipated stack usage in CAR by bootblock and |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 78 | other stages. In the case of FSP_USES_CB_STACK default value |
| 79 | will be sum of FSP-M stack requirement(192 KiB) and CB romstage |
| 80 | stack requirement(~1KiB). |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 81 | |
| 82 | config FSP_TEMP_RAM_SIZE |
| 83 | hex |
| 84 | default 0x20000 |
| 85 | help |
| 86 | The amount of anticipated heap usage in CAR by FSP. |
| 87 | Refer to Platform FSP integration guide document to know |
| 88 | the exact FSP requirement for Heap setup. |
| 89 | |
| 90 | config IFD_CHIPSET |
| 91 | string |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 92 | default "jsl" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 93 | |
| 94 | config IED_REGION_SIZE |
| 95 | hex |
| 96 | default 0x400000 |
| 97 | |
| 98 | config HEAP_SIZE |
| 99 | hex |
| 100 | default 0x8000 |
| 101 | |
| 102 | config MAX_ROOT_PORTS |
| 103 | int |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 104 | default 8 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 105 | |
| 106 | config MAX_PCIE_CLOCKS |
| 107 | int |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 108 | default 6 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 109 | |
| 110 | config SMM_TSEG_SIZE |
| 111 | hex |
| 112 | default 0x800000 |
| 113 | |
| 114 | config SMM_RESERVED_SIZE |
| 115 | hex |
| 116 | default 0x200000 |
| 117 | |
| 118 | config PCR_BASE_ADDRESS |
| 119 | hex |
| 120 | default 0xfd000000 |
| 121 | help |
| 122 | This option allows you to select MMIO Base Address of sideband bus. |
| 123 | |
| 124 | config MMCONF_BASE_ADDRESS |
| 125 | hex |
| 126 | default 0xc0000000 |
| 127 | |
| 128 | config CPU_BCLK_MHZ |
| 129 | int |
| 130 | default 100 |
| 131 | |
| 132 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 133 | int |
| 134 | default 120 |
| 135 | |
| 136 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 137 | int |
| 138 | default 133 |
| 139 | |
| 140 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 141 | int |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 142 | default 3 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 143 | |
| 144 | config SOC_INTEL_I2C_DEV_MAX |
| 145 | int |
| 146 | default 6 |
| 147 | |
| 148 | config SOC_INTEL_UART_DEV_MAX |
| 149 | int |
| 150 | default 3 |
| 151 | |
| 152 | config CONSOLE_UART_BASE_ADDRESS |
| 153 | hex |
| 154 | default 0xfe032000 |
| 155 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 156 | |
| 157 | # Clock divider parameters for 115200 baud rate |
| 158 | # Baudrate = (UART source clcok * M) /(N *16) |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 159 | # JSL UART source clock: 100MHz |
| 160 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 161 | hex |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 162 | default 0x30 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 163 | |
| 164 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 165 | hex |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 166 | default 0xc35 |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 167 | |
| 168 | config CHROMEOS |
| 169 | select CHROMEOS_RAMOOPS_DYNAMIC |
| 170 | |
| 171 | config VBOOT |
| 172 | select VBOOT_SEPARATE_VERSTAGE |
| 173 | select VBOOT_MUST_REQUEST_DISPLAY |
| 174 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 175 | select VBOOT_VBNV_CMOS |
| 176 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 177 | |
| 178 | config C_ENV_BOOTBLOCK_SIZE |
| 179 | hex |
| 180 | default 0xC000 |
| 181 | |
| 182 | config CBFS_SIZE |
| 183 | hex |
| 184 | default 0x200000 |
| 185 | |
| 186 | config FSP_HEADER_PATH |
| 187 | string "Location of FSP headers" |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 188 | default "src/vendorcode/intel/fsp/fsp2_0/jasperlake/" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 189 | |
| 190 | config FSP_FD_PATH |
| 191 | string |
| 192 | depends on FSP_USE_REPO |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 193 | default "3rdparty/fsp/JasperLakeFspBinPkg/Fsp.fd" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 194 | |
Aamir Bohra | 512b77a | 2020-03-25 13:20:34 +0530 | [diff] [blame^] | 195 | config SOC_INTEL_JASPERLAKE_COPY_DEBUG_CONSENT |
| 196 | int "Debug Consent for JSL" |
Aamir Bohra | dd7acaa | 2020-03-25 11:36:22 +0530 | [diff] [blame] | 197 | # USB DBC is more common for developers so make this default to 3 if |
| 198 | # SOC_INTEL_DEBUG_CONSENT=y |
| 199 | default 3 if SOC_INTEL_DEBUG_CONSENT |
| 200 | default 0 |
| 201 | help |
| 202 | This is to control debug interface on SOC. |
| 203 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 204 | PlatformDebugConsent in FspmUpd.h has the details. |
| 205 | |
| 206 | Desired platform debug type are |
| 207 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 208 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 209 | 6:Enable (2-wire DCI OOB), 7:Manual |
| 210 | endif |