Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
| 3 | # Enable deep Sx states |
| 4 | register "deep_s3_enable_ac" = "0" |
| 5 | register "deep_s3_enable_dc" = "0" |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 6 | register "deep_s5_enable_ac" = "0" |
| 7 | register "deep_s5_enable_dc" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 8 | register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN" |
| 9 | |
Youness Alaoui | 0601f1e | 2018-02-09 18:44:45 -0500 | [diff] [blame^] | 10 | register "eist_enable" = "1" |
| 11 | register "VmxEnable" = "1" |
| 12 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 13 | # GPE configuration |
| 14 | # Note that GPE events called out in ASL code rely on this |
| 15 | # route. i.e. If this route changes then the affected GPE |
| 16 | # offset bits also need to be changed. |
Youness Alaoui | 34a30a6 | 2017-05-25 13:25:41 -0500 | [diff] [blame] | 17 | register "gpe0_dw0" = "GPP_C" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 18 | register "gpe0_dw1" = "GPP_D" |
| 19 | register "gpe0_dw2" = "GPP_E" |
| 20 | |
Youness Alaoui | 6aa28d9 | 2018-03-13 16:53:30 -0400 | [diff] [blame] | 21 | # EC host command ranges are in 0x380-0x383 & 0x80-0x8f |
| 22 | register "gen1_dec" = "0x00000381" |
| 23 | register "gen2_dec" = "0x000c0081" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 24 | |
| 25 | # Enable "Intel Speed Shift Technology" |
| 26 | register "speed_shift_enable" = "1" |
| 27 | |
| 28 | # Enable DPTF |
| 29 | register "dptf_enable" = "1" |
| 30 | |
| 31 | # FSP Configuration |
| 32 | register "ProbelessTrace" = "0" |
| 33 | register "EnableLan" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 34 | register "EnableSata" = "1" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 35 | register "SataSalpSupport" = "0" |
| 36 | register "SataMode" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 37 | register "SataPortsEnable[0]" = "1" |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 38 | register "SataPortsEnable[1]" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 39 | register "SataPortsEnable[2]" = "1" |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 40 | register "SataPortsDevSlp[0]" = "0" |
| 41 | register "SataPortsDevSlp[2]" = "0" |
Matt DeVillier | fb1cd09 | 2017-06-22 15:54:07 -0400 | [diff] [blame] | 42 | register "SataSpeedLimit" = "2" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 43 | register "EnableAzalia" = "1" |
Youness Alaoui | eacac20 | 2017-05-17 17:16:09 -0400 | [diff] [blame] | 44 | register "DspEnable" = "0" |
| 45 | register "IoBufferOwnership" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 46 | register "EnableTraceHub" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 47 | register "SsicPortEnable" = "0" |
| 48 | register "SmbusEnable" = "1" |
| 49 | register "Cio2Enable" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 50 | register "ScsEmmcEnabled" = "0" |
| 51 | register "ScsEmmcHs400Enabled" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 52 | register "ScsSdCardEnabled" = "0" |
| 53 | register "IshEnable" = "0" |
| 54 | register "PttSwitch" = "0" |
| 55 | register "InternalGfx" = "1" |
| 56 | register "SkipExtGfxScan" = "1" |
| 57 | register "Device4Enable" = "1" |
| 58 | register "HeciEnabled" = "0" |
| 59 | register "FspSkipMpInit" = "1" |
| 60 | register "SaGv" = "3" |
| 61 | register "SerialIrqConfigSirqEnable" = "1" |
| 62 | register "PmConfigSlpS3MinAssert" = "2" # 50ms |
| 63 | register "PmConfigSlpS4MinAssert" = "1" # 1s |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 64 | register "PmConfigSlpSusMinAssert" = "3" # 500ms |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 65 | register "PmConfigSlpAMinAssert" = "3" # 2s |
Matt DeVillier | 0ff3b73 | 2017-05-25 15:31:49 -0500 | [diff] [blame] | 66 | register "PmTimerDisabled" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 67 | |
| 68 | register "pirqa_routing" = "PCH_IRQ11" |
| 69 | register "pirqb_routing" = "PCH_IRQ10" |
| 70 | register "pirqc_routing" = "PCH_IRQ11" |
| 71 | register "pirqd_routing" = "PCH_IRQ11" |
| 72 | register "pirqe_routing" = "PCH_IRQ11" |
| 73 | register "pirqf_routing" = "PCH_IRQ11" |
| 74 | register "pirqg_routing" = "PCH_IRQ11" |
| 75 | register "pirqh_routing" = "PCH_IRQ11" |
| 76 | |
Matt DeVillier | fb1cd09 | 2017-06-22 15:54:07 -0400 | [diff] [blame] | 77 | # VR Settings Configuration for 4 Domains |
| 78 | #+----------------+-------+-------+-------------+-------+ |
| 79 | #| Domain/Setting | SA | IA | GT Unsliced | GT | |
| 80 | #+----------------+-------+-------+-------------+-------+ |
| 81 | #| Psi1Threshold | 20A | 20A | 20A | 20A | |
| 82 | #| Psi2Threshold | 4A | 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 | |
| 88 | #| IccMax | 7A | 34A | 35A | 35A | |
| 89 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | |
| 90 | #+----------------+-------+-------+-------------+-------+ |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 91 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 92 | .vr_config_enable = 1, |
| 93 | .psi1threshold = VR_CFG_AMP(20), |
| 94 | .psi2threshold = VR_CFG_AMP(4), |
| 95 | .psi3threshold = VR_CFG_AMP(1), |
| 96 | .psi3enable = 1, |
| 97 | .psi4enable = 1, |
| 98 | .imon_slope = 0x0, |
| 99 | .imon_offset = 0x0, |
| 100 | .icc_max = VR_CFG_AMP(7), |
| 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 = 0x0, |
| 112 | .imon_offset = 0x0, |
| 113 | .icc_max = VR_CFG_AMP(34), |
| 114 | .voltage_limit = 1520, |
| 115 | }" |
| 116 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 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 = 0x0, |
| 125 | .imon_offset = 0x0, |
| 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 = 0x0, |
| 138 | .imon_offset = 0x0, |
| 139 | .icc_max = VR_CFG_AMP(35), |
| 140 | .voltage_limit = 1520, |
| 141 | }" |
| 142 | |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 143 | # Enable Root Ports 5 and 9 |
| 144 | register "PcieRpEnable[4]" = "1" |
| 145 | register "PcieRpEnable[8]" = "1" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 146 | |
Youness Alaoui | a8b35be | 2017-07-25 14:11:31 -0400 | [diff] [blame] | 147 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port |
| 148 | register "usb2_ports[1]" = "USB2_PORT_MID(OC0)" # Type-A Port (right) |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 149 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth |
Matt DeVillier | 2fa6616 | 2017-05-25 15:50:59 -0500 | [diff] [blame] | 150 | register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera |
Youness Alaoui | a8b35be | 2017-07-25 14:11:31 -0400 | [diff] [blame] | 151 | register "usb2_ports[5]" = "USB2_PORT_FLEX(OC2)" # Type-A Port (left) |
Matt DeVillier | 2fa6616 | 2017-05-25 15:50:59 -0500 | [diff] [blame] | 152 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # SD |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 153 | |
Youness Alaoui | a8b35be | 2017-07-25 14:11:31 -0400 | [diff] [blame] | 154 | # OC1 should be for Type-C but it seems to not have been wired, according to |
| 155 | # the available schematics, even though it is labeled as USB_OC_TYPEC. |
| 156 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port |
| 157 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # Type-A Port (right) |
Matt DeVillier | 2fa6616 | 2017-05-25 15:50:59 -0500 | [diff] [blame] | 158 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 159 | |
Matt DeVillier | 2ae2742 | 2017-05-25 15:53:29 -0500 | [diff] [blame] | 160 | # PL2 override 25W |
| 161 | register "tdp_pl2_override" = "25" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 162 | |
Matt DeVillier | 2ae2742 | 2017-05-25 15:53:29 -0500 | [diff] [blame] | 163 | # Send an extra VR mailbox command for the PS4 exit issue |
| 164 | register "SendVrMbxCmd" = "2" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 165 | |
Subrata Banik | c204aaa | 2017-08-17 15:49:58 +0530 | [diff] [blame] | 166 | # Lock Down |
| 167 | register "chipset_lockdown" = "CHIPSET_LOCKDOWN_COREBOOT" |
| 168 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 169 | device cpu_cluster 0 on |
| 170 | device lapic 0 on end |
| 171 | end |
| 172 | device domain 0 on |
| 173 | device pci 00.0 on end # Host Bridge |
| 174 | device pci 02.0 on end # Integrated Graphics Device |
| 175 | device pci 14.0 on end # USB xHCI |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 176 | device pci 14.1 on end # USB xDCI (OTG) |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 177 | device pci 14.2 on end # Thermal Subsystem |
| 178 | device pci 16.0 on end # Management Engine Interface 1 |
| 179 | device pci 16.1 off end # Management Engine Interface 2 |
| 180 | device pci 16.2 off end # Management Engine IDE-R |
| 181 | device pci 16.3 off end # Management Engine KT Redirection |
| 182 | device pci 16.4 off end # Management Engine Interface 3 |
| 183 | device pci 17.0 on end # SATA |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 184 | device pci 1c.0 on end # PCI Express Port 1 |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 185 | device pci 1c.1 off end # PCI Express Port 2 |
| 186 | device pci 1c.2 off end # PCI Express Port 3 |
| 187 | device pci 1c.3 off end # PCI Express Port 4 |
| 188 | device pci 1c.4 off end # PCI Express Port 5 |
| 189 | device pci 1c.5 off end # PCI Express Port 6 |
| 190 | device pci 1c.6 off end # PCI Express Port 7 |
| 191 | device pci 1c.7 off end # PCI Express Port 8 |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 192 | device pci 1d.0 on end # PCI Express Port 9 |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 193 | device pci 1d.1 off end # PCI Express Port 10 |
| 194 | device pci 1d.2 off end # PCI Express Port 11 |
| 195 | device pci 1d.3 off end # PCI Express Port 12 |
| 196 | device pci 1f.0 on |
| 197 | chip ec/purism/librem |
| 198 | device pnp 0c09.0 on end |
| 199 | end |
Youness Alaoui | 59d89a8 | 2018-02-09 18:42:49 -0500 | [diff] [blame] | 200 | chip drivers/pc80/tpm |
| 201 | device pnp 0c31.0 on end |
| 202 | end |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 203 | end # LPC Interface |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 204 | device pci 1f.1 on end # P2SB |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 205 | device pci 1f.2 on end # Power Management Controller |
| 206 | device pci 1f.3 on end # Intel HDA |
| 207 | device pci 1f.4 on end # SMBus |
| 208 | device pci 1f.5 on end # PCH SPI |
| 209 | device pci 1f.6 off end # GbE |
| 210 | end |
| 211 | end |