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