Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Subrata Banik | a4b11e5c | 2017-02-03 18:57:49 +0530 | [diff] [blame] | 4 | * Copyright (C) 2016-2017 Intel Corporation. |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 16 | #include <chip.h> |
Duncan Laurie | 7d48410 | 2017-01-09 22:23:39 -0800 | [diff] [blame] | 17 | #include <bootmode.h> |
Rizwan Qureshi | 1222a73 | 2016-08-23 14:31:23 +0530 | [diff] [blame] | 18 | #include <bootstate.h> |
| 19 | #include <device/pci.h> |
| 20 | #include <fsp/api.h> |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 21 | #include <arch/acpi.h> |
| 22 | #include <chip.h> |
| 23 | #include <bootstate.h> |
| 24 | #include <console/console.h> |
| 25 | #include <device/device.h> |
| 26 | #include <device/pci.h> |
| 27 | #include <fsp/api.h> |
| 28 | #include <fsp/util.h> |
Brandon Breitenstein | c6ec8dd | 2016-11-17 12:23:04 -0800 | [diff] [blame] | 29 | #include <romstage_handoff.h> |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 30 | #include <soc/acpi.h> |
Patrick Georgi | c6a0050 | 2017-10-05 18:19:29 +0200 | [diff] [blame] | 31 | #include <soc/intel/common/vbt.h> |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 32 | #include <soc/interrupt.h> |
| 33 | #include <soc/irq.h> |
| 34 | #include <soc/pci_devs.h> |
| 35 | #include <soc/ramstage.h> |
| 36 | #include <string.h> |
| 37 | |
| 38 | void soc_init_pre_device(void *chip_info) |
| 39 | { |
| 40 | /* Perform silicon specific init. */ |
Aaron Durbin | 6c191d8 | 2016-11-29 21:22:42 -0600 | [diff] [blame] | 41 | fsp_silicon_init(romstage_handoff_is_resume()); |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 42 | } |
| 43 | |
Furquan Shaikh | c248044 | 2017-02-20 13:41:56 -0800 | [diff] [blame] | 44 | void soc_fsp_load(void) |
| 45 | { |
| 46 | fsps_load(romstage_handoff_is_resume()); |
| 47 | } |
| 48 | |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 49 | static void pci_domain_set_resources(device_t dev) |
| 50 | { |
| 51 | assign_resources(dev->link_list); |
| 52 | } |
| 53 | |
| 54 | static struct device_operations pci_domain_ops = { |
| 55 | .read_resources = &pci_domain_read_resources, |
| 56 | .set_resources = &pci_domain_set_resources, |
| 57 | .scan_bus = &pci_domain_scan_bus, |
| 58 | .ops_pci_bus = &pci_bus_default_ops, |
| 59 | #if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES) |
| 60 | .acpi_name = &soc_acpi_name, |
| 61 | #endif |
| 62 | }; |
| 63 | |
| 64 | static struct device_operations cpu_bus_ops = { |
| 65 | .read_resources = DEVICE_NOOP, |
| 66 | .set_resources = DEVICE_NOOP, |
| 67 | .enable_resources = DEVICE_NOOP, |
Subrata Banik | a4b11e5c | 2017-02-03 18:57:49 +0530 | [diff] [blame] | 68 | .init = DEVICE_NOOP, |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 69 | #if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES) |
| 70 | .acpi_fill_ssdt_generator = generate_cpu_entries, |
| 71 | #endif |
| 72 | }; |
| 73 | |
| 74 | static void soc_enable(device_t dev) |
| 75 | { |
| 76 | /* Set the operations if it is a special bus type */ |
Subrata Banik | 3c838c7 | 2017-12-06 18:14:01 +0530 | [diff] [blame] | 77 | if (dev->path.type == DEVICE_PATH_DOMAIN) |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 78 | dev->ops = &pci_domain_ops; |
Subrata Banik | 3c838c7 | 2017-12-06 18:14:01 +0530 | [diff] [blame] | 79 | else if (dev->path.type == DEVICE_PATH_CPU_CLUSTER) |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 80 | dev->ops = &cpu_bus_ops; |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 81 | } |
| 82 | |
| 83 | struct chip_operations soc_intel_skylake_ops = { |
| 84 | CHIP_NAME("Intel 6th Gen") |
| 85 | .enable_dev = &soc_enable, |
| 86 | .init = &soc_init_pre_device, |
| 87 | }; |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 88 | |
Rizwan Qureshi | 1222a73 | 2016-08-23 14:31:23 +0530 | [diff] [blame] | 89 | /* UPD parameters to be initialized before SiliconInit */ |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 90 | void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd) |
Rizwan Qureshi | 1222a73 | 2016-08-23 14:31:23 +0530 | [diff] [blame] | 91 | { |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 92 | FSP_S_CONFIG *params = &supd->FspsConfig; |
| 93 | FSP_S_TEST_CONFIG *tconfig = &supd->FspsTestConfig; |
| 94 | static struct soc_intel_skylake_config *config; |
| 95 | uintptr_t vbt_data = 0; |
| 96 | |
| 97 | int i; |
| 98 | |
| 99 | int is_s3_wakeup = acpi_is_wakeup_s3(); |
| 100 | |
| 101 | struct device *dev = SA_DEV_ROOT; |
| 102 | if (!dev || !dev->chip_info) { |
| 103 | printk(BIOS_ERR, "BUG! Could not find SOC devicetree config\n"); |
| 104 | return; |
| 105 | } |
| 106 | config = dev->chip_info; |
| 107 | |
| 108 | mainboard_silicon_init_params(params); |
| 109 | |
| 110 | /* Load VBT */ |
Duncan Laurie | 7d48410 | 2017-01-09 22:23:39 -0800 | [diff] [blame] | 111 | if (is_s3_wakeup) { |
| 112 | printk(BIOS_DEBUG, "S3 resume do not pass VBT to GOP\n"); |
Patrick Georgi | c6a0050 | 2017-10-05 18:19:29 +0200 | [diff] [blame] | 113 | } else if (display_init_required() && IS_ENABLED(CONFIG_RUN_FSP_GOP)) { |
Duncan Laurie | 7d48410 | 2017-01-09 22:23:39 -0800 | [diff] [blame] | 114 | /* Get VBT data */ |
Patrick Georgi | c6a0050 | 2017-10-05 18:19:29 +0200 | [diff] [blame] | 115 | vbt_data = (uintptr_t)locate_vbt(); |
Duncan Laurie | 7d48410 | 2017-01-09 22:23:39 -0800 | [diff] [blame] | 116 | if (vbt_data) |
| 117 | printk(BIOS_DEBUG, "Passing VBT to GOP\n"); |
| 118 | else |
| 119 | printk(BIOS_DEBUG, "VBT not found!\n"); |
| 120 | } else { |
| 121 | printk(BIOS_DEBUG, "Not passing VBT to GOP\n"); |
| 122 | } |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 123 | params->GraphicsConfigPtr = (u32) vbt_data; |
| 124 | |
| 125 | for (i = 0; i < ARRAY_SIZE(config->usb2_ports); i++) { |
| 126 | params->PortUsb20Enable[i] = |
| 127 | config->usb2_ports[i].enable; |
Subrata Banik | 2c3054c | 2016-11-22 20:21:49 +0530 | [diff] [blame] | 128 | params->Usb2OverCurrentPin[i] = |
| 129 | config->usb2_ports[i].ocpin; |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 130 | params->Usb2AfePetxiset[i] = |
| 131 | config->usb2_ports[i].pre_emp_bias; |
| 132 | params->Usb2AfeTxiset[i] = |
| 133 | config->usb2_ports[i].tx_bias; |
| 134 | params->Usb2AfePredeemp[i] = |
| 135 | config->usb2_ports[i].tx_emp_enable; |
| 136 | params->Usb2AfePehalfbit[i] = |
| 137 | config->usb2_ports[i].pre_emp_bit; |
| 138 | } |
| 139 | |
| 140 | for (i = 0; i < ARRAY_SIZE(config->usb3_ports); i++) { |
| 141 | params->PortUsb30Enable[i] = config->usb3_ports[i].enable; |
Subrata Banik | 2c3054c | 2016-11-22 20:21:49 +0530 | [diff] [blame] | 142 | params->Usb3OverCurrentPin[i] = config->usb3_ports[i].ocpin; |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 143 | if (config->usb3_ports[i].tx_de_emp) { |
| 144 | params->Usb3HsioTxDeEmphEnable[i] = 1; |
| 145 | params->Usb3HsioTxDeEmph[i] = |
| 146 | config->usb3_ports[i].tx_de_emp; |
| 147 | } |
| 148 | if (config->usb3_ports[i].tx_downscale_amp) { |
| 149 | params->Usb3HsioTxDownscaleAmpEnable[i] = 1; |
| 150 | params->Usb3HsioTxDownscaleAmp[i] = |
| 151 | config->usb3_ports[i].tx_downscale_amp; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | memcpy(params->SataPortsEnable, config->SataPortsEnable, |
| 156 | sizeof(params->SataPortsEnable)); |
| 157 | memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp, |
| 158 | sizeof(params->SataPortsDevSlp)); |
| 159 | memcpy(params->PcieRpClkReqSupport, config->PcieRpClkReqSupport, |
| 160 | sizeof(params->PcieRpClkReqSupport)); |
| 161 | memcpy(params->PcieRpClkReqNumber, config->PcieRpClkReqNumber, |
| 162 | sizeof(params->PcieRpClkReqNumber)); |
Rizwan Qureshi | 6ab4ed4 | 2017-09-05 14:18:25 +0530 | [diff] [blame] | 163 | memcpy(params->PcieRpAdvancedErrorReporting, |
| 164 | config->PcieRpAdvancedErrorReporting, |
| 165 | sizeof(params->PcieRpAdvancedErrorReporting)); |
Rizwan Qureshi | 0393739 | 2017-09-16 01:54:20 +0530 | [diff] [blame] | 166 | memcpy(params->PcieRpLtrEnable, config->PcieRpLtrEnable, |
| 167 | sizeof(params->PcieRpLtrEnable)); |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 168 | |
Divya Chellap | e7fb7ce | 2017-12-19 20:16:50 +0530 | [diff] [blame] | 169 | /* |
| 170 | * PcieRpClkSrcNumber UPD is set to clock source number(0-6) for |
| 171 | * all the enabled PCIe root ports, invalid(0x1F) is set for |
| 172 | * disabled PCIe root ports. |
| 173 | */ |
| 174 | for (i = 0; i < CONFIG_MAX_ROOT_PORTS; i++) { |
| 175 | if (config->PcieRpClkReqSupport[i]) |
| 176 | params->PcieRpClkSrcNumber[i] = |
| 177 | config->PcieRpClkSrcNumber[i]; |
| 178 | else |
| 179 | params->PcieRpClkSrcNumber[i] = 0x1F; |
| 180 | } |
| 181 | |
Naresh G Solanki | eedf6d8 | 2016-11-16 21:27:38 +0530 | [diff] [blame] | 182 | /* disable Legacy PME */ |
| 183 | memset(params->PcieRpPmSci, 0, sizeof(params->PcieRpPmSci)); |
| 184 | |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 185 | memcpy(params->SerialIoDevMode, config->SerialIoDevMode, |
| 186 | sizeof(params->SerialIoDevMode)); |
| 187 | |
| 188 | params->PchCio2Enable = config->Cio2Enable; |
Rizwan Qureshi | c2c8a74 | 2017-01-13 22:04:11 +0530 | [diff] [blame] | 189 | params->SaImguEnable = config->SaImguEnable; |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 190 | params->Heci3Enabled = config->Heci3Enabled; |
| 191 | |
| 192 | params->LogoPtr = config->LogoPtr; |
| 193 | params->LogoSize = config->LogoSize; |
| 194 | |
| 195 | params->CpuConfig.Bits.VmxEnable = config->VmxEnable; |
| 196 | |
| 197 | params->PchPmWoWlanEnable = config->PchPmWoWlanEnable; |
| 198 | params->PchPmWoWlanDeepSxEnable = config->PchPmWoWlanDeepSxEnable; |
| 199 | params->PchPmLanWakeFromDeepSx = config->WakeConfigPcieWakeFromDeepSx; |
| 200 | |
| 201 | params->PchLanEnable = config->EnableLan; |
Duncan Laurie | 14485ef | 2017-12-13 13:58:35 -0800 | [diff] [blame] | 202 | if (config->EnableLan) { |
| 203 | params->PchLanLtrEnable = config->EnableLanLtr; |
| 204 | params->PchLanK1OffEnable = config->EnableLanK1Off; |
| 205 | params->PchLanClkReqSupported = config->LanClkReqSupported; |
| 206 | params->PchLanClkReqNumber = config->LanClkReqNumber; |
| 207 | } |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 208 | params->SataSalpSupport = config->SataSalpSupport; |
| 209 | params->SsicPortEnable = config->SsicPortEnable; |
| 210 | params->ScsEmmcEnabled = config->ScsEmmcEnabled; |
| 211 | params->ScsEmmcHs400Enabled = config->ScsEmmcHs400Enabled; |
| 212 | params->ScsSdCardEnabled = config->ScsSdCardEnabled; |
| 213 | params->PchIshEnable = config->IshEnable; |
| 214 | params->PchHdaEnable = config->EnableAzalia; |
| 215 | params->PchHdaIoBufferOwnership = config->IoBufferOwnership; |
| 216 | params->PchHdaDspEnable = config->DspEnable; |
| 217 | params->XdciEnable = config->XdciEnable; |
| 218 | params->Device4Enable = config->Device4Enable; |
| 219 | params->SataEnable = config->EnableSata; |
| 220 | params->SataMode = config->SataMode; |
Matt DeVillier | 9e0d69b | 2017-10-10 14:03:36 -0500 | [diff] [blame] | 221 | params->SataSpeedLimit = config->SataSpeedLimit; |
Kane Chen | 14e0fa5 | 2017-12-27 12:11:23 +0800 | [diff] [blame^] | 222 | params->SataPwrOptEnable = config->SataPwrOptEnable; |
Matt DeVillier | 9e0d69b | 2017-10-10 14:03:36 -0500 | [diff] [blame] | 223 | |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 224 | tconfig->PchLockDownGlobalSmi = config->LockDownConfigGlobalSmi; |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 225 | tconfig->PchLockDownRtcLock = config->LockDownConfigRtcLock; |
Barnali Sarkar | fbf1018 | 2017-08-11 18:38:38 +0530 | [diff] [blame] | 226 | /* |
| 227 | * To disable HECI, the Psf needs to be left unlocked |
| 228 | * by FSP till end of post sequence. Based on the devicetree |
| 229 | * setting, we set the appropriate PsfUnlock policy in FSP, |
| 230 | * do the changes and then lock it back in coreboot during finalize. |
| 231 | */ |
| 232 | tconfig->PchSbAccessUnlock = (config->HeciEnabled == 0) ? 1 : 0; |
Subrata Banik | c204aaa | 2017-08-17 15:49:58 +0530 | [diff] [blame] | 233 | if (config->chipset_lockdown == CHIPSET_LOCKDOWN_COREBOOT) { |
| 234 | tconfig->PchLockDownBiosInterface = 0; |
| 235 | params->PchLockDownBiosLock = 0; |
| 236 | params->PchLockDownSpiEiss = 0; |
| 237 | /* |
| 238 | * Skip Spi Flash Lockdown from inside FSP. |
| 239 | * Making this config "0" means FSP won't set the FLOCKDN bit |
| 240 | * of SPIBAR + 0x04 (i.e., Bit 15 of BIOS_HSFSTS_CTL). |
| 241 | * So, it becomes coreboot's responsibility to set this bit |
| 242 | * before end of POST for security concerns. |
| 243 | */ |
| 244 | params->SpiFlashCfgLockDown = 0; |
| 245 | } |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 246 | params->PchSubSystemVendorId = config->PchConfigSubSystemVendorId; |
| 247 | params->PchSubSystemId = config->PchConfigSubSystemId; |
| 248 | params->PchPmWolEnableOverride = config->WakeConfigWolEnableOverride; |
| 249 | params->PchPmPcieWakeFromDeepSx = config->WakeConfigPcieWakeFromDeepSx; |
| 250 | params->PchPmDeepSxPol = config->PmConfigDeepSxPol; |
Duncan Laurie | 25c7d93 | 2017-02-17 17:16:43 -0800 | [diff] [blame] | 251 | params->PchPmSlpS0Enable = config->s0ix_enable; |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 252 | params->PchPmSlpS3MinAssert = config->PmConfigSlpS3MinAssert; |
| 253 | params->PchPmSlpS4MinAssert = config->PmConfigSlpS4MinAssert; |
| 254 | params->PchPmSlpSusMinAssert = config->PmConfigSlpSusMinAssert; |
| 255 | params->PchPmSlpAMinAssert = config->PmConfigSlpAMinAssert; |
| 256 | params->PchPmLpcClockRun = config->PmConfigPciClockRun; |
| 257 | params->PchPmSlpStrchSusUp = config->PmConfigSlpStrchSusUp; |
| 258 | params->PchPmPwrBtnOverridePeriod = |
| 259 | config->PmConfigPwrBtnOverridePeriod; |
| 260 | params->PchPmPwrCycDur = config->PmConfigPwrCycDur; |
Rizwan Qureshi | 0da186c | 2017-02-23 14:43:39 +0530 | [diff] [blame] | 261 | |
| 262 | /* Indicate whether platform supports Voltage Margining */ |
| 263 | params->PchPmSlpS0VmEnable = config->PchPmSlpS0VmEnable; |
| 264 | |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 265 | params->PchSirqEnable = config->SerialIrqConfigSirqEnable; |
| 266 | params->PchSirqMode = config->SerialIrqConfigSirqMode; |
| 267 | |
| 268 | params->CpuConfig.Bits.SkipMpInit = config->FspSkipMpInit; |
| 269 | |
| 270 | for (i = 0; i < ARRAY_SIZE(config->i2c); i++) |
Aaron Durbin | ed14a4e | 2016-11-09 17:04:15 -0600 | [diff] [blame] | 271 | params->SerialIoI2cVoltage[i] = config->i2c_voltage[i]; |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 272 | |
| 273 | for (i = 0; i < ARRAY_SIZE(config->domain_vr_config); i++) |
| 274 | fill_vr_domain_config(params, i, &config->domain_vr_config[i]); |
| 275 | |
| 276 | /* Show SPI controller if enabled in devicetree.cb */ |
| 277 | dev = dev_find_slot(0, PCH_DEVFN_SPI); |
| 278 | params->ShowSpiController = dev->enabled; |
| 279 | |
Rizwan Qureshi | 6467014 | 2016-11-23 15:25:19 +0530 | [diff] [blame] | 280 | /* |
| 281 | * Send VR specific mailbox commands: |
| 282 | * 000b - no VR specific command sent |
| 283 | * 001b - VR mailbox command specifically for the MPS IMPV8 VR |
Lee Leahy | f4c4ab9 | 2017-03-16 17:08:03 -0700 | [diff] [blame] | 284 | * will be sent |
Rizwan Qureshi | 6467014 | 2016-11-23 15:25:19 +0530 | [diff] [blame] | 285 | * 010b - VR specific command sent for PS4 exit issue |
| 286 | * 100b - VR specific command sent for MPS VR decay issue |
| 287 | */ |
| 288 | params->SendVrMbxCmd1 = config->SendVrMbxCmd; |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 289 | |
Rizwan Qureshi | b3e18c7 | 2017-09-25 17:35:15 +0530 | [diff] [blame] | 290 | /* |
| 291 | * Activates VR mailbox command for Intersil VR C-state issues. |
| 292 | * 0 - no mailbox command sent. |
| 293 | * 1 - VR mailbox command sent for IA/GT rails only. |
| 294 | * 2 - VR mailbox command sent for IA/GT/SA rails. |
| 295 | */ |
| 296 | params->IslVrCmd = config->IslVrCmd; |
| 297 | |
Duncan Laurie | b2aac85 | 2017-03-07 19:12:02 -0800 | [diff] [blame] | 298 | /* Acoustic Noise Mitigation */ |
| 299 | params->AcousticNoiseMitigation = config->AcousticNoiseMitigation; |
| 300 | params->SlowSlewRateForIa = config->SlowSlewRateForIa; |
| 301 | params->SlowSlewRateForGt = config->SlowSlewRateForGt; |
| 302 | params->SlowSlewRateForSa = config->SlowSlewRateForSa; |
| 303 | params->FastPkgCRampDisableIa = config->FastPkgCRampDisableIa; |
| 304 | params->FastPkgCRampDisableGt = config->FastPkgCRampDisableGt; |
| 305 | params->FastPkgCRampDisableSa = config->FastPkgCRampDisableSa; |
| 306 | |
Rizwan Qureshi | ffe5810 | 2017-02-10 15:58:24 +0530 | [diff] [blame] | 307 | /* Enable PMC XRAM read */ |
| 308 | tconfig->PchPmPmcReadDisable = config->PchPmPmcReadDisable; |
| 309 | |
Subrata Banik | 6b45ee4 | 2017-05-12 11:43:57 +0530 | [diff] [blame] | 310 | /* Enable/Disable EIST */ |
| 311 | tconfig->Eist = config->eist_enable; |
| 312 | |
marxwang | ec5a947 | 2017-12-11 14:57:49 +0800 | [diff] [blame] | 313 | /* Set TccActivationOffset */ |
| 314 | tconfig->TccActivationOffset = config->tcc_offset; |
| 315 | |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 316 | soc_irq_settings(params); |
Rizwan Qureshi | 1222a73 | 2016-08-23 14:31:23 +0530 | [diff] [blame] | 317 | } |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 318 | |
Naresh G Solanki | a2d4062 | 2016-08-30 20:47:13 +0530 | [diff] [blame] | 319 | /* Mainboard GPIO Configuration */ |
| 320 | __attribute__((weak)) void mainboard_silicon_init_params(FSP_S_CONFIG *params) |
| 321 | { |
| 322 | printk(BIOS_DEBUG, "WEAK: %s/%s called\n", __FILE__, __func__); |
| 323 | } |