Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 3 | register "deep_s5_enable_ac" = "0" |
| 4 | register "deep_s5_enable_dc" = "0" |
| 5 | register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN" |
| 6 | |
| 7 | # GPE configuration |
| 8 | # Note that GPE events called out in ASL code rely on this |
| 9 | # route. i.e. If this route changes then the affected GPE |
| 10 | # offset bits also need to be changed. |
| 11 | register "gpe0_dw0" = "GPP_C" |
| 12 | register "gpe0_dw1" = "GPP_D" |
| 13 | register "gpe0_dw2" = "GPP_E" |
| 14 | |
Wim Vervoorn | 4f01269 | 2020-03-13 15:20:13 +0100 | [diff] [blame] | 15 | # Set the fixed lpc ranges |
| 16 | # enable COMA at 3f8 and COMB at 3e8 (instead of the default 2f8) |
| 17 | # enable the embedded controller |
| 18 | register "lpc_iod" = "0x0070" |
| 19 | register "lpc_ioe" = "LPC_IOE_COMA_EN | LPC_IOE_COMB_EN | LPC_IOE_EC_62_66" |
| 20 | |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 21 | # CPLD host command ranges are in 0x280-0x2BF |
| 22 | # EC PNP registers are at 0x6e and 0x6f |
| 23 | register "gen1_dec" = "0x003c0281" |
| 24 | register "gen3_dec" = "0x0004006d" |
| 25 | |
| 26 | # LPC serial IRQ |
| 27 | register "serirq_mode" = "SERIRQ_CONTINUOUS" |
| 28 | |
Wim Vervoorn | af995bb | 2019-12-23 16:03:55 +0100 | [diff] [blame] | 29 | # "Intel SpeedStep Technology" |
| 30 | register "eist_enable" = "1" |
| 31 | |
Wim Vervoorn | af995bb | 2019-12-23 16:03:55 +0100 | [diff] [blame] | 32 | # DPTF |
| 33 | register "dptf_enable" = "1" |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 34 | |
| 35 | # FSP Configuration |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 36 | register "ScsEmmcHs400Enabled" = "1" |
| 37 | register "SkipExtGfxScan" = "1" |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 38 | register "SaGv" = "SaGv_Enabled" |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 39 | register "HeciEnabled" = "0" |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 40 | |
Felix Singer | 0901d03 | 2020-07-29 19:57:25 +0200 | [diff] [blame] | 41 | register "SataSalpSupport" = "1" |
| 42 | register "SataPortsEnable" = "{ \ |
| 43 | [0] = 1, \ |
| 44 | [1] = 0, \ |
| 45 | [2] = 0, \ |
| 46 | [3] = 0, \ |
| 47 | [4] = 0, \ |
| 48 | [5] = 0, \ |
| 49 | [6] = 0, \ |
| 50 | [7] = 0, \ |
| 51 | }" |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 52 | |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 53 | # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch |
| 54 | # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s |
| 55 | register "PmConfigSlpS3MinAssert" = "2" |
| 56 | |
| 57 | # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s |
| 58 | register "PmConfigSlpS4MinAssert" = "4" |
| 59 | |
| 60 | # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s |
| 61 | register "PmConfigSlpSusMinAssert" = "3" |
| 62 | |
| 63 | # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s |
| 64 | register "PmConfigSlpAMinAssert" = "3" |
| 65 | |
| 66 | # VR Settings Configuration for 4 Domains |
| 67 | #+----------------+-------+-------+-------+-------+ |
| 68 | #| Domain/Setting | SA | IA | GTUS | GTS | |
| 69 | #+----------------+-------+-------+-------+-------+ |
| 70 | #| Psi1Threshold | 20A | 20A | 20A | 20A | |
| 71 | #| Psi2Threshold | 5A | 5A | 5A | 5A | |
| 72 | #| Psi3Threshold | 1A | 1A | 1A | 1A | |
| 73 | #| Psi3Enable | 1 | 1 | 1 | 1 | |
| 74 | #| Psi4Enable | 1 | 1 | 1 | 1 | |
| 75 | #| ImonSlope | 0 | 0 | 0 | 0 | |
| 76 | #| ImonOffset | 0 | 0 | 0 | 0 | |
Wim Vervoorn | 8bf921c | 2020-03-24 16:19:38 +0100 | [diff] [blame] | 77 | #| IccMax | 5.1A | 32A | 35A | 31A | |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 78 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | |
| 79 | #+----------------+-------+-------+-------+-------+ |
| 80 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 81 | .vr_config_enable = 1, \ |
| 82 | .psi1threshold = VR_CFG_AMP(20), \ |
| 83 | .psi2threshold = VR_CFG_AMP(5), \ |
| 84 | .psi3threshold = VR_CFG_AMP(1), \ |
| 85 | .psi3enable = 1, \ |
| 86 | .psi4enable = 1, \ |
| 87 | .imon_slope = 0, \ |
| 88 | .imon_offset = 0, \ |
Wim Vervoorn | b2e440a | 2020-01-15 09:23:27 +0100 | [diff] [blame] | 89 | .icc_max = VR_CFG_AMP(5.1), \ |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 90 | .voltage_limit = 1520 \ |
| 91 | }" |
| 92 | |
| 93 | register "domain_vr_config[VR_IA_CORE]" = "{ |
| 94 | .vr_config_enable = 1, \ |
| 95 | .psi1threshold = VR_CFG_AMP(20), \ |
| 96 | .psi2threshold = VR_CFG_AMP(5), \ |
| 97 | .psi3threshold = VR_CFG_AMP(1), \ |
| 98 | .psi3enable = 1, \ |
| 99 | .psi4enable = 1, \ |
| 100 | .imon_slope = 0, \ |
| 101 | .imon_offset = 0, \ |
Wim Vervoorn | b2e440a | 2020-01-15 09:23:27 +0100 | [diff] [blame] | 102 | .icc_max = VR_CFG_AMP(32), \ |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 103 | .voltage_limit = 1520 \ |
| 104 | }" |
| 105 | |
| 106 | register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
| 107 | .vr_config_enable = 1, \ |
| 108 | .psi1threshold = VR_CFG_AMP(20), \ |
| 109 | .psi2threshold = VR_CFG_AMP(5), \ |
| 110 | .psi3threshold = VR_CFG_AMP(1), \ |
| 111 | .psi3enable = 1, \ |
| 112 | .psi4enable = 1, \ |
| 113 | .imon_slope = 0, \ |
| 114 | .imon_offset = 0, \ |
| 115 | .icc_max = VR_CFG_AMP(35),\ |
| 116 | .voltage_limit = 1520 \ |
| 117 | }" |
| 118 | |
| 119 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
| 120 | .vr_config_enable = 1, \ |
| 121 | .psi1threshold = VR_CFG_AMP(20), \ |
| 122 | .psi2threshold = VR_CFG_AMP(5), \ |
| 123 | .psi3threshold = VR_CFG_AMP(1), \ |
| 124 | .psi3enable = 1, \ |
| 125 | .psi4enable = 1, \ |
| 126 | .imon_slope = 0, \ |
| 127 | .imon_offset = 0, \ |
Wim Vervoorn | 8bf921c | 2020-03-24 16:19:38 +0100 | [diff] [blame] | 128 | .icc_max = VR_CFG_AMP(31), \ |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 129 | .voltage_limit = 1520 \ |
| 130 | }" |
| 131 | |
| 132 | # Send an extra VR mailbox command for the PS4 exit issue |
| 133 | register "SendVrMbxCmd" = "2" |
| 134 | |
| 135 | # Enable Root ports. |
| 136 | # PCIE Port 1 disabled |
| 137 | # PCIE Port 2 disabled |
| 138 | |
| 139 | # PCIE Port 3 x1 -> Module x1 : Mapped to PCIe 2 on the baseboard |
| 140 | register "PcieRpEnable[2]" = "1" |
| 141 | # Disable CLKREQ# |
| 142 | register "PcieRpClkReqSupport[2]" = "0" |
Wim Vervoorn | 544cc83 | 2020-05-07 13:21:36 +0200 | [diff] [blame] | 143 | # Set MaxPayload to 256 bytes |
| 144 | register "PcieRpMaxPayload[2]" = "RpMaxPayload_256" |
| 145 | # Enable Latency Tolerance Reporting Mechanism |
| 146 | register "PcieRpLtrEnable[2]" = "1" |
| 147 | # Enable Advanced Error Reporting |
| 148 | register "PcieRpAdvancedErrorReporting[2]" = "1" |
| 149 | # Disable Aspm |
Benjamin Doron | b53858b | 2020-10-12 04:19:42 +0000 | [diff] [blame] | 150 | register "pcie_rp_aspm[2]" = "AspmDisabled" |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 151 | |
| 152 | # PCIE Port 4 disabled |
| 153 | # PCIE Port 5 x1 -> MODULE i219 |
| 154 | |
| 155 | # PCIE Port 6 x1 -> BASEBOARD x1 i210 : Mapped to PCIe 4 on the baseboard |
| 156 | register "PcieRpEnable[5]" = "1" |
| 157 | register "PcieRpClkReqSupport[5]" = "0" |
Wim Vervoorn | 544cc83 | 2020-05-07 13:21:36 +0200 | [diff] [blame] | 158 | # Set MaxPayload to 256 bytes |
| 159 | register "PcieRpMaxPayload[5]" = "RpMaxPayload_256" |
| 160 | # Enable Latency Tolerance Reporting Mechanism |
| 161 | register "PcieRpLtrEnable[5]" = "1" |
| 162 | # Enable Advanced Error Reporting |
| 163 | register "PcieRpAdvancedErrorReporting[5]" = "1" |
| 164 | # Disable Aspm |
Benjamin Doron | b53858b | 2020-10-12 04:19:42 +0000 | [diff] [blame] | 165 | register "pcie_rp_aspm[5]" = "AspmDisabled" |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 166 | |
| 167 | # PCIE Port 7 Disabled |
| 168 | # PCIE Port 8 Disabled |
| 169 | |
| 170 | # PCIE Port 9 x4 -> BASEBOARD PEG0-3 FPGA |
| 171 | register "PcieRpEnable[8]" = "1" |
| 172 | # Disable CLKREQ# |
| 173 | register "PcieRpClkReqSupport[8]" = "0" |
| 174 | # Use Hot Plug subsystem |
| 175 | register "PcieRpHotPlug[8]" = "1" |
Wim Vervoorn | 544cc83 | 2020-05-07 13:21:36 +0200 | [diff] [blame] | 176 | # Set MaxPayload to 256 bytes |
| 177 | register "PcieRpMaxPayload[8]" = "RpMaxPayload_256" |
| 178 | # Enable Latency Tolerance Reporting Mechanism |
| 179 | register "PcieRpLtrEnable[8]" = "1" |
| 180 | # Enable Advanced Error Reporting |
| 181 | register "PcieRpAdvancedErrorReporting[8]" = "1" |
| 182 | # Disable Aspm |
Benjamin Doron | b53858b | 2020-10-12 04:19:42 +0000 | [diff] [blame] | 183 | register "pcie_rp_aspm[8]" = "AspmDisabled" |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 184 | |
| 185 | # USB 2.0 Enable all ports |
| 186 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB-C Port 2 |
| 187 | register "usb2_ports[1]" = "USB2_PORT_MID(OC1)" # USB3_TYPE-A Port 1 |
| 188 | register "usb2_ports[2]" = "USB2_PORT_MID(OC1)" # USB3_TYPE-A Port 2 |
| 189 | register "usb2_ports[3]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB-C Port 1 |
| 190 | register "usb2_ports[4]" = "USB2_PORT_SHORT(OC_SKIP)" # M2 Port |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 191 | register "usb2_ports[6]" = "USB2_PORT_SHORT(OC_SKIP)" # Audio board |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 192 | |
| 193 | # USB 3.0 Enable Port 1-4. Port 5 & 6 Disabled |
| 194 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB-C Port 2 |
| 195 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3_TYPE-A Port 1 |
| 196 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3_TYPE-A Port 2 |
| 197 | register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB-C Port 1 |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 198 | |
| 199 | register "SsicPortEnable" = "0" |
| 200 | |
| 201 | # Must leave UART0 enabled or SD/eMMC will not work as PCI |
| 202 | register "SerialIoDevMode" = "{ \ |
| 203 | [PchSerialIoIndexI2C0] = PchSerialIoDisabled, \ |
| 204 | [PchSerialIoIndexI2C1] = PchSerialIoDisabled, \ |
| 205 | [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \ |
| 206 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \ |
| 207 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, \ |
| 208 | [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \ |
| 209 | [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \ |
| 210 | [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \ |
| 211 | [PchSerialIoIndexUart0] = PchSerialIoPci, \ |
| 212 | [PchSerialIoIndexUart1] = PchSerialIoDisabled, \ |
| 213 | [PchSerialIoIndexUart2] = PchSerialIoDisabled, \ |
| 214 | }" |
| 215 | |
| 216 | # Lock Down |
| 217 | register "common_soc_config" = "{ |
| 218 | .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT, |
| 219 | }" |
| 220 | |
| 221 | device cpu_cluster 0 on |
| 222 | device lapic 0 on end |
| 223 | end |
| 224 | device domain 0 on |
| 225 | device pci 00.0 on end # Host Bridge |
| 226 | device pci 02.0 on end # Integrated Graphics Device |
Wim Vervoorn | cb4fa5d | 2020-01-15 09:27:26 +0100 | [diff] [blame] | 227 | device pci 04.0 on end # Thermal Subsystem |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 228 | device pci 08.0 on end # Gaussian Mixture Model |
| 229 | device pci 14.0 on end # USB xHCI |
| 230 | device pci 14.1 on end # USB xDCI (OTG) |
| 231 | device pci 14.2 on end # Thermal Subsystem |
| 232 | device pci 17.0 on end # SATA |
| 233 | device pci 1c.2 on end # PCI Express Port 3 x1 baseboard WWAN |
| 234 | device pci 1c.5 on end # PCI Express Port 6 x1 baseboard i210 |
| 235 | device pci 1d.0 on end # PCI Express Port 9 x4 FPGA |
| 236 | device pci 1e.0 on end # UART #0 |
| 237 | device pci 1e.4 on end # eMMC |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 238 | device pci 1f.0 on # LPC Interface |
| 239 | chip drivers/pc80/tpm |
| 240 | device pnp 0c31.0 on end |
| 241 | end |
| 242 | end # LPC Bridge |
| 243 | device pci 1f.1 on end # P2SB |
| 244 | device pci 1f.2 on end # Power Management Controller |
Wim Vervoorn | 54f8116 | 2019-12-18 09:18:26 +0100 | [diff] [blame] | 245 | device pci 1f.3 on end # HDA Controller for HDMI only |
Wim Vervoorn | 7c04acf | 2019-12-05 13:45:41 +0100 | [diff] [blame] | 246 | device pci 1f.4 on end # SMBus |
| 247 | device pci 1f.5 on end # PCH SPI |
| 248 | device pci 1f.6 on end # GbE |
| 249 | end |
| 250 | end |