Maulik V Vaghela | 2c3d91c | 2019-11-21 21:20:17 +0530 | [diff] [blame] | 1 | config SOC_INTEL_TIGERLAKE_BASE |
| 2 | bool |
| 3 | |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 4 | config SOC_INTEL_TIGERLAKE |
| 5 | bool |
Maulik V Vaghela | 2c3d91c | 2019-11-21 21:20:17 +0530 | [diff] [blame] | 6 | select SOC_INTEL_TIGERLAKE_BASE |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 7 | #TODO - Enable INTEL_CAR_NEM_ENHANCED |
| 8 | select INTEL_CAR_NEM |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 9 | help |
| 10 | Intel Tigerlake support |
| 11 | |
Maulik V Vaghela | 2c3d91c | 2019-11-21 21:20:17 +0530 | [diff] [blame] | 12 | config SOC_INTEL_JASPERLAKE |
| 13 | bool |
| 14 | select SOC_INTEL_TIGERLAKE_BASE |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 15 | select INTEL_CAR_NEM_ENHANCED |
Maulik V Vaghela | 2c3d91c | 2019-11-21 21:20:17 +0530 | [diff] [blame] | 16 | help |
| 17 | Intel Jasperlake support |
| 18 | |
| 19 | if SOC_INTEL_TIGERLAKE_BASE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 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 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 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 |
Kyösti Mälkki | b0f15f0 | 2019-11-22 23:15:29 +0200 | [diff] [blame] | 51 | select CPU_INTEL_COMMON_SMM |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 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 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 59 | select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
| 60 | select SOC_INTEL_COMMON_BLOCK_HDA |
| 61 | select SOC_INTEL_COMMON_BLOCK_SA |
| 62 | select SOC_INTEL_COMMON_BLOCK_SMM |
| 63 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
| 64 | select SOC_INTEL_COMMON_PCH_BASE |
| 65 | select SOC_INTEL_COMMON_RESET |
Arthur Heymans | c6872f5 | 2019-11-11 12:29:56 +0100 | [diff] [blame] | 66 | select SOC_INTEL_COMMON_BLOCK_CAR |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 67 | select SSE2 |
| 68 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 69 | select TSC_MONOTONIC_TIMER |
| 70 | select UDELAY_TSC |
| 71 | select UDK_2017_BINDING |
| 72 | select DISPLAY_FSP_VERSION_INFO |
| 73 | select HECI_DISABLE_USING_SMM |
| 74 | |
| 75 | config DCACHE_RAM_BASE |
| 76 | default 0xfef00000 |
| 77 | |
| 78 | config DCACHE_RAM_SIZE |
Maulik V Vaghela | e9b1e0f | 2019-12-16 16:39:53 +0530 | [diff] [blame] | 79 | default 0x80000 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 80 | help |
| 81 | The size of the cache-as-ram region required during bootblock |
| 82 | and/or romstage. |
| 83 | |
| 84 | config DCACHE_BSP_STACK_SIZE |
| 85 | hex |
Maulik V Vaghela | e9b1e0f | 2019-12-16 16:39:53 +0530 | [diff] [blame] | 86 | default 0x30400 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 87 | help |
| 88 | The amount of anticipated stack usage in CAR by bootblock and |
| 89 | other stages. In the case of FSP_USES_CB_STACK default value will be |
Maulik V Vaghela | e9b1e0f | 2019-12-16 16:39:53 +0530 | [diff] [blame] | 90 | sum of FSP-M stack requirement (192KiB) and CB romstage stack requirement (~1KiB). |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 91 | |
| 92 | config FSP_TEMP_RAM_SIZE |
| 93 | hex |
Maulik V Vaghela | e9b1e0f | 2019-12-16 16:39:53 +0530 | [diff] [blame] | 94 | default 0x20000 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 95 | help |
| 96 | The amount of anticipated heap usage in CAR by FSP. |
| 97 | Refer to Platform FSP integration guide document to know |
| 98 | the exact FSP requirement for Heap setup. |
| 99 | |
| 100 | config IFD_CHIPSET |
| 101 | string |
Maulik V Vaghela | c2a05d1 | 2019-11-27 14:31:38 +0530 | [diff] [blame] | 102 | default "jsl" if SOC_INTEL_JASPERLAKE |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 103 | default "tgl" if SOC_INTEL_TIGERLAKE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 104 | |
| 105 | config IED_REGION_SIZE |
| 106 | hex |
| 107 | default 0x400000 |
| 108 | |
| 109 | config HEAP_SIZE |
| 110 | hex |
| 111 | default 0x8000 |
| 112 | |
| 113 | config MAX_ROOT_PORTS |
| 114 | int |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 115 | default 16 if SOC_INTEL_JASPERLAKE |
| 116 | default 12 if SOC_INTEL_TIGERLAKE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 117 | |
Ravi Sarawadi | 2fd4972 | 2019-12-16 23:41:36 -0800 | [diff] [blame] | 118 | config MAX_PCIE_CLOCKS |
| 119 | int |
| 120 | default 7 if SOC_INTEL_TIGERLAKE |
| 121 | default 16 if SOC_INTEL_JASPERLAKE |
| 122 | |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 123 | config SMM_TSEG_SIZE |
| 124 | hex |
| 125 | default 0x800000 |
| 126 | |
| 127 | config SMM_RESERVED_SIZE |
| 128 | hex |
| 129 | default 0x200000 |
| 130 | |
| 131 | config PCR_BASE_ADDRESS |
| 132 | hex |
| 133 | default 0xfd000000 |
| 134 | help |
| 135 | This option allows you to select MMIO Base Address of sideband bus. |
| 136 | |
| 137 | config MMCONF_BASE_ADDRESS |
| 138 | hex |
| 139 | default 0xc0000000 |
| 140 | |
| 141 | config CPU_BCLK_MHZ |
| 142 | int |
| 143 | default 100 |
| 144 | |
| 145 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 146 | int |
| 147 | default 120 |
| 148 | |
| 149 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 150 | int |
| 151 | default 133 |
| 152 | |
| 153 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 154 | int |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 155 | default 3 if SOC_INTEL_JASPERLAKE |
| 156 | default 4 if SOC_INTEL_TIGERLAKE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 157 | |
| 158 | config SOC_INTEL_I2C_DEV_MAX |
| 159 | int |
| 160 | default 6 |
| 161 | |
| 162 | config SOC_INTEL_UART_DEV_MAX |
| 163 | int |
| 164 | default 3 |
| 165 | |
| 166 | config CONSOLE_UART_BASE_ADDRESS |
| 167 | hex |
| 168 | default 0xfe032000 |
| 169 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 170 | |
| 171 | # Clock divider parameters for 115200 baud rate |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 172 | # Baudrate = (UART source clcok * M) /(N *16) |
| 173 | # TGL UART source clock: 120MHz |
| 174 | # JSL UART source clock: 100MHz |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 175 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 176 | hex |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 177 | default 0x30 if SOC_INTEL_JASPERLAKE |
| 178 | default 0x25a if SOC_INTEL_TIGERLAKE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 179 | |
| 180 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 181 | hex |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 182 | default 0xc35 if SOC_INTEL_JASPERLAKE |
| 183 | default 0x7fff if SOC_INTEL_TIGERLAKE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 184 | |
| 185 | config CHROMEOS |
| 186 | select CHROMEOS_RAMOOPS_DYNAMIC |
| 187 | |
| 188 | config VBOOT |
| 189 | select VBOOT_SEPARATE_VERSTAGE |
| 190 | select VBOOT_MUST_REQUEST_DISPLAY |
| 191 | select VBOOT_SAVE_RECOVERY_REASON_ON_REBOOT |
| 192 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 193 | select VBOOT_VBNV_CMOS |
| 194 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 195 | |
| 196 | config C_ENV_BOOTBLOCK_SIZE |
| 197 | hex |
| 198 | default 0xC000 |
| 199 | |
| 200 | config CBFS_SIZE |
| 201 | hex |
| 202 | default 0x200000 |
| 203 | |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 204 | config FSP_HEADER_PATH |
| 205 | string "Location of FSP headers" |
Aamir Bohra | bf14c00 | 2019-12-06 19:39:36 +0530 | [diff] [blame] | 206 | default "src/vendorcode/intel/fsp/fsp2_0/jasperlake/" if SOC_INTEL_JASPERLAKE |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 207 | default "src/vendorcode/intel/fsp/fsp2_0/tigerlake/" if SOC_INTEL_TIGERLAKE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 208 | |
| 209 | config FSP_FD_PATH |
| 210 | string |
| 211 | depends on FSP_USE_REPO |
Aamir Bohra | bf14c00 | 2019-12-06 19:39:36 +0530 | [diff] [blame] | 212 | default "3rdparty/fsp/JasperLakeFspBinPkg/Fsp.fd" if SOC_INTEL_JASPERLAKE |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 213 | default "3rdparty/fsp/TigerLakeFspBinPkg/Fsp.fd" if SOC_INTEL_TIGERLAKE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 214 | |
| 215 | endif |