Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | |
Benjamin Doron | ac08c81 | 2020-04-04 05:58:54 +0000 | [diff] [blame] | 3 | # IGD Displays |
| 4 | register "gfx" = "GMA_STATIC_DISPLAYS(0)" |
| 5 | |
Michael Niewöhner | 97e21d3 | 2020-12-28 00:49:33 +0100 | [diff] [blame] | 6 | register "panel_cfg" = "{ |
| 7 | .up_delay_ms = 200, |
| 8 | .down_delay_ms = 50, |
| 9 | .cycle_delay_ms = 500, |
| 10 | .backlight_on_delay_ms = 1, |
| 11 | .backlight_off_delay_ms = 200, |
| 12 | .backlight_pwm_hz = 200, |
| 13 | }" |
| 14 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 15 | register "deep_s3_enable_ac" = "0" |
| 16 | register "deep_s3_enable_dc" = "0" |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 17 | register "deep_s5_enable_ac" = "0" |
| 18 | register "deep_s5_enable_dc" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 19 | register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN" |
| 20 | |
Youness Alaoui | 0601f1e | 2018-02-09 18:44:45 -0500 | [diff] [blame] | 21 | register "eist_enable" = "1" |
Youness Alaoui | 0601f1e | 2018-02-09 18:44:45 -0500 | [diff] [blame] | 22 | |
Youness Alaoui | cb8f04d | 2018-03-02 16:12:04 -0500 | [diff] [blame] | 23 | # Set the Thermal Control Circuit (TCC) activaction value to 95C |
| 24 | # even though FSP integration guide says to set it to 100C for SKL-U |
| 25 | # (offset at 0), because when the TCC activates at 100C, the CPU |
| 26 | # will have already shut itself down from overheating protection. |
| 27 | register "tcc_offset" = "5" # TCC of 95C |
| 28 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 29 | # GPE configuration |
| 30 | # Note that GPE events called out in ASL code rely on this |
| 31 | # route. i.e. If this route changes then the affected GPE |
| 32 | # offset bits also need to be changed. |
Youness Alaoui | 34a30a6 | 2017-05-25 13:25:41 -0500 | [diff] [blame] | 33 | register "gpe0_dw0" = "GPP_C" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 34 | register "gpe0_dw1" = "GPP_D" |
| 35 | register "gpe0_dw2" = "GPP_E" |
| 36 | |
Youness Alaoui | 6aa28d9 | 2018-03-13 16:53:30 -0400 | [diff] [blame] | 37 | # EC host command ranges are in 0x380-0x383 & 0x80-0x8f |
| 38 | register "gen1_dec" = "0x00000381" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 39 | |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 40 | # Disable DPTF |
| 41 | register "dptf_enable" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 42 | |
| 43 | # FSP Configuration |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 44 | register "SataSalpSupport" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 45 | register "SataPortsEnable[0]" = "1" |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 46 | register "SataPortsEnable[1]" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 47 | register "SataPortsEnable[2]" = "1" |
Youness Alaoui | c5b9658 | 2017-06-19 20:47:27 -0400 | [diff] [blame] | 48 | register "SataPortsDevSlp[0]" = "0" |
| 49 | register "SataPortsDevSlp[2]" = "0" |
Youness Alaoui | eacac20 | 2017-05-17 17:16:09 -0400 | [diff] [blame] | 50 | register "DspEnable" = "0" |
| 51 | register "IoBufferOwnership" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 52 | register "SsicPortEnable" = "0" |
Youness Alaoui | 9d8cd50 | 2017-05-25 15:30:35 -0500 | [diff] [blame] | 53 | register "ScsEmmcHs400Enabled" = "0" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 54 | register "SkipExtGfxScan" = "1" |
Angel Pons | 6fadde0 | 2021-04-04 16:11:53 +0200 | [diff] [blame] | 55 | register "SaGv" = "SaGv_Enabled" |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 56 | register "PmConfigSlpS3MinAssert" = "2" # 50ms |
| 57 | register "PmConfigSlpS4MinAssert" = "1" # 1s |
| 58 | register "PmConfigSlpSusMinAssert" = "3" # 500ms |
| 59 | register "PmConfigSlpAMinAssert" = "3" # 2s |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 60 | |
Nico Huber | 44e89af | 2019-02-23 19:24:51 +0100 | [diff] [blame] | 61 | # EC/KBC requires continuous mode |
| 62 | register "serirq_mode" = "SERIRQ_CONTINUOUS" |
| 63 | |
Matt DeVillier | fb1cd09 | 2017-06-22 15:54:07 -0400 | [diff] [blame] | 64 | # VR Settings Configuration for 4 Domains |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 65 | #+----------------+-----------+-----------+-------------+----------+ |
| 66 | #| Domain/Setting | SA | IA | GT Unsliced | GT | |
| 67 | #+----------------+-----------+-----------+-------------+----------+ |
| 68 | #| Psi1Threshold | 20A | 20A | 20A | 20A | |
| 69 | #| Psi2Threshold | 4A | 5A | 5A | 5A | |
| 70 | #| Psi3Threshold | 1A | 1A | 1A | 1A | |
| 71 | #| Psi3Enable | 1 | 1 | 1 | 1 | |
| 72 | #| Psi4Enable | 1 | 1 | 1 | 1 | |
| 73 | #| ImonSlope | 0 | 0 | 0 | 0 | |
| 74 | #| ImonOffset | 0 | 0 | 0 | 0 | |
| 75 | #| IccMax | 7A | 34A | 35A | 35A | |
| 76 | #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | |
| 77 | #| AC LoadLine | 15 mOhm | 5.7 mOhm | 5.2 mOhm | 5.2 mOhm | |
| 78 | #| DC LoadLine | 14.3 mOhm | 4.83 mOhm | 4.2 mOhm | 4.2 mOhm | |
| 79 | #+----------------+-----------+-----------+-------------+----------+ |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 80 | register "domain_vr_config[VR_SYSTEM_AGENT]" = "{ |
| 81 | .vr_config_enable = 1, |
| 82 | .psi1threshold = VR_CFG_AMP(20), |
| 83 | .psi2threshold = VR_CFG_AMP(4), |
| 84 | .psi3threshold = VR_CFG_AMP(1), |
| 85 | .psi3enable = 1, |
| 86 | .psi4enable = 1, |
| 87 | .imon_slope = 0x0, |
| 88 | .imon_offset = 0x0, |
| 89 | .icc_max = VR_CFG_AMP(7), |
| 90 | .voltage_limit = 1520, |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 91 | .ac_loadline = 1500, |
| 92 | .dc_loadline = 1430, |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 93 | }" |
| 94 | |
| 95 | register "domain_vr_config[VR_IA_CORE]" = "{ |
| 96 | .vr_config_enable = 1, |
| 97 | .psi1threshold = VR_CFG_AMP(20), |
| 98 | .psi2threshold = VR_CFG_AMP(5), |
| 99 | .psi3threshold = VR_CFG_AMP(1), |
| 100 | .psi3enable = 1, |
| 101 | .psi4enable = 1, |
| 102 | .imon_slope = 0x0, |
| 103 | .imon_offset = 0x0, |
| 104 | .icc_max = VR_CFG_AMP(34), |
| 105 | .voltage_limit = 1520, |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 106 | .ac_loadline = 570, |
| 107 | .dc_loadline = 483, |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 108 | }" |
| 109 | |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 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 = 0x0, |
| 118 | .imon_offset = 0x0, |
| 119 | .icc_max = VR_CFG_AMP(35), |
| 120 | .voltage_limit = 1520, |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 121 | .ac_loadline = 520, |
| 122 | .dc_loadline = 420, |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 123 | }" |
| 124 | |
| 125 | register "domain_vr_config[VR_GT_SLICED]" = "{ |
| 126 | .vr_config_enable = 1, |
| 127 | .psi1threshold = VR_CFG_AMP(20), |
| 128 | .psi2threshold = VR_CFG_AMP(5), |
| 129 | .psi3threshold = VR_CFG_AMP(1), |
| 130 | .psi3enable = 1, |
| 131 | .psi4enable = 1, |
| 132 | .imon_slope = 0x0, |
| 133 | .imon_offset = 0x0, |
| 134 | .icc_max = VR_CFG_AMP(35), |
| 135 | .voltage_limit = 1520, |
Youness Alaoui | 3f42a26b | 2018-03-20 18:32:23 -0400 | [diff] [blame] | 136 | .ac_loadline = 520, |
| 137 | .dc_loadline = 420, |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 138 | }" |
| 139 | |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 140 | # Enable Root Ports 5 and 9 |
| 141 | register "PcieRpEnable[4]" = "1" |
| 142 | register "PcieRpEnable[8]" = "1" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 143 | |
Matt DeVillier | 2ae2742 | 2017-05-25 15:53:29 -0500 | [diff] [blame] | 144 | # PL2 override 25W |
Sumeet R Pawnikar | 97c5464 | 2020-05-10 01:24:11 +0530 | [diff] [blame] | 145 | register "power_limits_config" = "{ |
| 146 | .tdp_pl2_override = 25, |
| 147 | }" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 148 | |
Matt DeVillier | 2ae2742 | 2017-05-25 15:53:29 -0500 | [diff] [blame] | 149 | # Send an extra VR mailbox command for the PS4 exit issue |
| 150 | register "SendVrMbxCmd" = "2" |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 151 | |
Arthur Heymans | 69cd729 | 2022-11-07 13:52:11 +0100 | [diff] [blame^] | 152 | device cpu_cluster 0 on end |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 153 | device domain 0 on |
| 154 | device pci 00.0 on end # Host Bridge |
| 155 | device pci 02.0 on end # Integrated Graphics Device |
Felix Singer | 9c1c009 | 2020-07-29 20:48:08 +0200 | [diff] [blame] | 156 | device pci 04.0 on end # SA thermal subsystem |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 157 | device pci 14.0 on end # USB xHCI |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 158 | device pci 14.1 on end # USB xDCI (OTG) |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 159 | device pci 14.2 on end # Thermal Subsystem |
Felix Singer | e218667 | 2020-07-29 23:20:52 +0200 | [diff] [blame] | 160 | device pci 14.3 off end # Camera |
Matt DeVillier | 3b6d202 | 2022-01-25 19:52:44 -0600 | [diff] [blame] | 161 | device pci 16.0 off end # Management Engine Interface 1 |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 162 | device pci 16.1 off end # Management Engine Interface 2 |
| 163 | device pci 16.2 off end # Management Engine IDE-R |
| 164 | device pci 16.3 off end # Management Engine KT Redirection |
| 165 | device pci 16.4 off end # Management Engine Interface 3 |
| 166 | device pci 17.0 on end # SATA |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 167 | device pci 1c.0 on end # PCI Express Port 1 |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 168 | device pci 1c.1 off end # PCI Express Port 2 |
| 169 | device pci 1c.2 off end # PCI Express Port 3 |
| 170 | device pci 1c.3 off end # PCI Express Port 4 |
| 171 | device pci 1c.4 off end # PCI Express Port 5 |
| 172 | device pci 1c.5 off end # PCI Express Port 6 |
| 173 | device pci 1c.6 off end # PCI Express Port 7 |
| 174 | device pci 1c.7 off end # PCI Express Port 8 |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 175 | device pci 1d.0 on end # PCI Express Port 9 |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 176 | device pci 1d.1 off end # PCI Express Port 10 |
| 177 | device pci 1d.2 off end # PCI Express Port 11 |
| 178 | device pci 1d.3 off end # PCI Express Port 12 |
Felix Singer | 5291952 | 2020-07-29 21:44:36 +0200 | [diff] [blame] | 179 | device pci 1e.6 off end # SDXC |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 180 | device pci 1f.0 on |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 181 | chip drivers/pc80/tpm |
| 182 | device pnp 0c31.0 on end |
| 183 | end |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 184 | end # LPC Interface |
Youness Alaoui | debb785 | 2017-05-25 15:40:13 -0500 | [diff] [blame] | 185 | device pci 1f.1 on end # P2SB |
Youness Alaoui | 047475c | 2017-05-08 16:50:23 -0400 | [diff] [blame] | 186 | device pci 1f.2 on end # Power Management Controller |
| 187 | device pci 1f.3 on end # Intel HDA |
| 188 | device pci 1f.4 on end # SMBus |
| 189 | device pci 1f.5 on end # PCH SPI |
| 190 | device pci 1f.6 off end # GbE |
| 191 | end |
| 192 | end |