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