Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
Matt DeVillier | 4223880 | 2018-12-19 02:13:58 -0600 | [diff] [blame] | 3 | register "gpu_pp_up_delay_ms" = "200" |
| 4 | register "gpu_pp_down_delay_ms" = " 50" |
| 5 | register "gpu_pp_cycle_delay_ms" = "500" |
| 6 | register "gpu_pp_backlight_on_delay_ms" = " 1" |
| 7 | register "gpu_pp_backlight_off_delay_ms" = "200" |
| 8 | |
| 9 | register "gpu_pch_backlight_pwm_hz" = "200" |
| 10 | |
Benjamin Doron | ac08c81 | 2020-04-04 05:58:54 +0000 | [diff] [blame^] | 11 | # IGD Displays |
| 12 | register "gfx" = "GMA_STATIC_DISPLAYS(0)" |
| 13 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 14 | register "deep_s3_enable_ac" = "0" |
| 15 | register "deep_s3_enable_dc" = "0" |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 16 | register "deep_s5_enable_ac" = "0" |
| 17 | register "deep_s5_enable_dc" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 18 | register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN" |
| 19 | |
Youness Alaoui | 0601f1e | 2018-02-09 18:44:45 -0500 | [diff] [blame] | 20 | register "eist_enable" = "1" |
Youness Alaoui | 0601f1e | 2018-02-09 18:44:45 -0500 | [diff] [blame] | 21 | |
Youness Alaoui | cb8f04d | 2018-03-02 16:12:04 -0500 | [diff] [blame] | 22 | # Set the Thermal Control Circuit (TCC) activaction value to 95C |
| 23 | # even though FSP integration guide says to set it to 100C for SKL-U |
| 24 | # (offset at 0), because when the TCC activates at 100C, the CPU |
| 25 | # will have already shut itself down from overheating protection. |
| 26 | register "tcc_offset" = "5" # TCC of 95C |
| 27 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 28 | # GPE configuration |
| 29 | # Note that GPE events called out in ASL code rely on this |
| 30 | # route. i.e. If this route changes then the affected GPE |
| 31 | # offset bits also need to be changed. |
Youness Alaoui | 34a30a6 | 2017-05-25 13:25:41 -0500 | [diff] [blame] | 32 | register "gpe0_dw0" = "GPP_C" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 33 | register "gpe0_dw1" = "GPP_D" |
| 34 | register "gpe0_dw2" = "GPP_E" |
| 35 | |
Youness Alaoui | 6aa28d9 | 2018-03-13 16:53:30 -0400 | [diff] [blame] | 36 | # EC host command ranges are in 0x380-0x383 & 0x80-0x8f |
| 37 | register "gen1_dec" = "0x00000381" |
| 38 | register "gen2_dec" = "0x000c0081" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 39 | |
| 40 | # Enable "Intel Speed Shift Technology" |
| 41 | register "speed_shift_enable" = "1" |
| 42 | |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 43 | # Disable DPTF |
| 44 | register "dptf_enable" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 45 | |
| 46 | # FSP Configuration |
| 47 | register "ProbelessTrace" = "0" |
| 48 | register "EnableLan" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 49 | register "EnableSata" = "1" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 50 | register "SataSalpSupport" = "0" |
| 51 | register "SataMode" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 52 | register "SataPortsEnable[0]" = "1" |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 53 | register "SataPortsEnable[1]" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 54 | register "SataPortsEnable[2]" = "1" |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 55 | register "SataPortsDevSlp[0]" = "0" |
| 56 | register "SataPortsDevSlp[2]" = "0" |
Matt DeVillier | fb1cd09 | 2017-06-22 15:54:07 -0400 | [diff] [blame] | 57 | register "SataSpeedLimit" = "2" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 58 | register "EnableAzalia" = "1" |
Youness Alaoui | eacac20 | 2017-05-17 17:16:09 -0400 | [diff] [blame] | 59 | register "DspEnable" = "0" |
| 60 | register "IoBufferOwnership" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 61 | register "EnableTraceHub" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 62 | register "SsicPortEnable" = "0" |
| 63 | register "SmbusEnable" = "1" |
| 64 | register "Cio2Enable" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 65 | register "ScsEmmcEnabled" = "0" |
| 66 | register "ScsEmmcHs400Enabled" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 67 | register "ScsSdCardEnabled" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 68 | register "PttSwitch" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 69 | register "SkipExtGfxScan" = "1" |
| 70 | register "Device4Enable" = "1" |
| 71 | register "HeciEnabled" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 72 | register "SaGv" = "3" |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 73 | register "PmConfigSlpS3MinAssert" = "2" # 50ms |
| 74 | register "PmConfigSlpS4MinAssert" = "1" # 1s |
| 75 | register "PmConfigSlpSusMinAssert" = "3" # 500ms |
| 76 | register "PmConfigSlpAMinAssert" = "3" # 2s |
Matt DeVillier | 0ff3b73 | 2017-05-25 15:31:49 -0500 | [diff] [blame] | 77 | register "PmTimerDisabled" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 78 | |
Nico Huber | 44e89af | 2019-02-23 19:24:51 +0100 | [diff] [blame] | 79 | # EC/KBC requires continuous mode |
| 80 | register "serirq_mode" = "SERIRQ_CONTINUOUS" |
| 81 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 82 | register "pirqa_routing" = "PCH_IRQ11" |
| 83 | register "pirqb_routing" = "PCH_IRQ10" |
| 84 | register "pirqc_routing" = "PCH_IRQ11" |
| 85 | register "pirqd_routing" = "PCH_IRQ11" |
| 86 | register "pirqe_routing" = "PCH_IRQ11" |
| 87 | register "pirqf_routing" = "PCH_IRQ11" |
| 88 | register "pirqg_routing" = "PCH_IRQ11" |
| 89 | register "pirqh_routing" = "PCH_IRQ11" |
| 90 | |
Matt DeVillier | fb1cd09 | 2017-06-22 15:54:07 -0400 | [diff] [blame] | 91 | # VR Settings Configuration for 4 Domains |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 92 | #+----------------+-----------+-----------+-------------+----------+ |
| 93 | #| Domain/Setting | SA | IA | GT Unsliced | GT | |
| 94 | #+----------------+-----------+-----------+-------------+----------+ |
| 95 | #| Psi1Threshold | 20A | 20A | 20A | 20A | |
| 96 | #| Psi2Threshold | 4A | 5A | 5A | 5A | |
| 97 | #| Psi3Threshold | 1A | 1A | 1A | 1A | |
| 98 | #| Psi3Enable | 1 | 1 | 1 | 1 | |
| 99 | #| Psi4Enable | 1 | 1 | 1 | 1 | |
| 100 | #| ImonSlope | 0 | 0 | 0 | 0 | |
| 101 | #| ImonOffset | 0 | 0 | 0 | 0 | |
| 102 | #| IccMax | 7A | 34A | 35A | 35A | |
| 103 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | |
| 104 | #| AC LoadLine | 15 mOhm | 5.7 mOhm | 5.2 mOhm | 5.2 mOhm | |
| 105 | #| DC LoadLine | 14.3 mOhm | 4.83 mOhm | 4.2 mOhm | 4.2 mOhm | |
| 106 | #+----------------+-----------+-----------+-------------+----------+ |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 107 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 108 | .vr_config_enable = 1, |
| 109 | .psi1threshold = VR_CFG_AMP(20), |
| 110 | .psi2threshold = VR_CFG_AMP(4), |
| 111 | .psi3threshold = VR_CFG_AMP(1), |
| 112 | .psi3enable = 1, |
| 113 | .psi4enable = 1, |
| 114 | .imon_slope = 0x0, |
| 115 | .imon_offset = 0x0, |
| 116 | .icc_max = VR_CFG_AMP(7), |
| 117 | .voltage_limit = 1520, |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 118 | .ac_loadline = 1500, |
| 119 | .dc_loadline = 1430, |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 120 | }" |
| 121 | |
| 122 | register "domain_vr_config[VR_IA_CORE]" = "{ |
| 123 | .vr_config_enable = 1, |
| 124 | .psi1threshold = VR_CFG_AMP(20), |
| 125 | .psi2threshold = VR_CFG_AMP(5), |
| 126 | .psi3threshold = VR_CFG_AMP(1), |
| 127 | .psi3enable = 1, |
| 128 | .psi4enable = 1, |
| 129 | .imon_slope = 0x0, |
| 130 | .imon_offset = 0x0, |
| 131 | .icc_max = VR_CFG_AMP(34), |
| 132 | .voltage_limit = 1520, |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 133 | .ac_loadline = 570, |
| 134 | .dc_loadline = 483, |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 135 | }" |
| 136 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 137 | register "domain_vr_config[VR_GT_UNSLICED]" = "{ |
| 138 | .vr_config_enable = 1, |
| 139 | .psi1threshold = VR_CFG_AMP(20), |
| 140 | .psi2threshold = VR_CFG_AMP(5), |
| 141 | .psi3threshold = VR_CFG_AMP(1), |
| 142 | .psi3enable = 1, |
| 143 | .psi4enable = 1, |
| 144 | .imon_slope = 0x0, |
| 145 | .imon_offset = 0x0, |
| 146 | .icc_max = VR_CFG_AMP(35), |
| 147 | .voltage_limit = 1520, |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 148 | .ac_loadline = 520, |
| 149 | .dc_loadline = 420, |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 150 | }" |
| 151 | |
| 152 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
| 153 | .vr_config_enable = 1, |
| 154 | .psi1threshold = VR_CFG_AMP(20), |
| 155 | .psi2threshold = VR_CFG_AMP(5), |
| 156 | .psi3threshold = VR_CFG_AMP(1), |
| 157 | .psi3enable = 1, |
| 158 | .psi4enable = 1, |
| 159 | .imon_slope = 0x0, |
| 160 | .imon_offset = 0x0, |
| 161 | .icc_max = VR_CFG_AMP(35), |
| 162 | .voltage_limit = 1520, |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 163 | .ac_loadline = 520, |
| 164 | .dc_loadline = 420, |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 165 | }" |
| 166 | |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 167 | # Enable Root Ports 5 and 9 |
| 168 | register "PcieRpEnable[4]" = "1" |
| 169 | register "PcieRpEnable[8]" = "1" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 170 | |
Youness Alaoui | a8b35be | 2017-07-25 14:11:31 -0400 | [diff] [blame] | 171 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port |
| 172 | register "usb2_ports[1]" = "USB2_PORT_MID(OC0)" # Type-A Port (right) |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 173 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth |
Matt DeVillier | 2fa6616 | 2017-05-25 15:50:59 -0500 | [diff] [blame] | 174 | register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera |
Youness Alaoui | a8b35be | 2017-07-25 14:11:31 -0400 | [diff] [blame] | 175 | register "usb2_ports[5]" = "USB2_PORT_FLEX(OC2)" # Type-A Port (left) |
Matt DeVillier | 2fa6616 | 2017-05-25 15:50:59 -0500 | [diff] [blame] | 176 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # SD |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 177 | |
Youness Alaoui | a8b35be | 2017-07-25 14:11:31 -0400 | [diff] [blame] | 178 | # OC1 should be for Type-C but it seems to not have been wired, according to |
| 179 | # the available schematics, even though it is labeled as USB_OC_TYPEC. |
| 180 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port |
| 181 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # Type-A Port (right) |
Matt DeVillier | 2fa6616 | 2017-05-25 15:50:59 -0500 | [diff] [blame] | 182 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 183 | |
Matt DeVillier | 2ae2742 | 2017-05-25 15:53:29 -0500 | [diff] [blame] | 184 | # PL2 override 25W |
| 185 | register "tdp_pl2_override" = "25" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 186 | |
Matt DeVillier | 2ae2742 | 2017-05-25 15:53:29 -0500 | [diff] [blame] | 187 | # Send an extra VR mailbox command for the PS4 exit issue |
| 188 | register "SendVrMbxCmd" = "2" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 189 | |
Subrata Banik | c204aaa | 2017-08-17 15:49:58 +0530 | [diff] [blame] | 190 | # Lock Down |
Subrata Banik | c4986eb | 2018-05-09 14:55:09 +0530 | [diff] [blame] | 191 | register "common_soc_config" = "{ |
| 192 | .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT, |
| 193 | }" |
Subrata Banik | c204aaa | 2017-08-17 15:49:58 +0530 | [diff] [blame] | 194 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 195 | device cpu_cluster 0 on |
| 196 | device lapic 0 on end |
| 197 | end |
| 198 | device domain 0 on |
| 199 | device pci 00.0 on end # Host Bridge |
| 200 | device pci 02.0 on end # Integrated Graphics Device |
| 201 | device pci 14.0 on end # USB xHCI |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 202 | device pci 14.1 on end # USB xDCI (OTG) |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 203 | device pci 14.2 on end # Thermal Subsystem |
| 204 | device pci 16.0 on end # Management Engine Interface 1 |
| 205 | device pci 16.1 off end # Management Engine Interface 2 |
| 206 | device pci 16.2 off end # Management Engine IDE-R |
| 207 | device pci 16.3 off end # Management Engine KT Redirection |
| 208 | device pci 16.4 off end # Management Engine Interface 3 |
| 209 | device pci 17.0 on end # SATA |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 210 | device pci 1c.0 on end # PCI Express Port 1 |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 211 | device pci 1c.1 off end # PCI Express Port 2 |
| 212 | device pci 1c.2 off end # PCI Express Port 3 |
| 213 | device pci 1c.3 off end # PCI Express Port 4 |
| 214 | device pci 1c.4 off end # PCI Express Port 5 |
| 215 | device pci 1c.5 off end # PCI Express Port 6 |
| 216 | device pci 1c.6 off end # PCI Express Port 7 |
| 217 | device pci 1c.7 off end # PCI Express Port 8 |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 218 | device pci 1d.0 on end # PCI Express Port 9 |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 219 | device pci 1d.1 off end # PCI Express Port 10 |
| 220 | device pci 1d.2 off end # PCI Express Port 11 |
| 221 | device pci 1d.3 off end # PCI Express Port 12 |
| 222 | device pci 1f.0 on |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 223 | chip ec/purism/librem |
| 224 | device pnp 0c09.0 on end |
| 225 | end |
| 226 | chip drivers/pc80/tpm |
| 227 | device pnp 0c31.0 on end |
| 228 | end |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 229 | end # LPC Interface |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 230 | device pci 1f.1 on end # P2SB |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 231 | device pci 1f.2 on end # Power Management Controller |
| 232 | device pci 1f.3 on end # Intel HDA |
| 233 | device pci 1f.4 on end # SMBus |
| 234 | device pci 1f.5 on end # PCH SPI |
| 235 | device pci 1f.6 off end # GbE |
| 236 | end |
| 237 | end |