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