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