blob: a439e0268953fb6941bbc2f755301ee1f280ae2e [file] [log] [blame]
Youness Alaoui047475c2017-05-08 16:50:23 -04001chip soc/intel/skylake
2
Matt DeVillier42238802018-12-19 02:13:58 -06003 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 Doronac08c812020-04-04 05:58:54 +000011 # IGD Displays
12 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
13
Youness Alaoui047475c2017-05-08 16:50:23 -040014 register "deep_s3_enable_ac" = "0"
15 register "deep_s3_enable_dc" = "0"
Youness Alaouic5b96582017-06-19 20:47:27 -040016 register "deep_s5_enable_ac" = "0"
17 register "deep_s5_enable_dc" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040018 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
19
Youness Alaoui0601f1e2018-02-09 18:44:45 -050020 register "eist_enable" = "1"
Youness Alaoui0601f1e2018-02-09 18:44:45 -050021
Youness Alaouicb8f04d2018-03-02 16:12:04 -050022 # 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 Alaoui047475c2017-05-08 16:50:23 -040028 # 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 Alaoui34a30a62017-05-25 13:25:41 -050032 register "gpe0_dw0" = "GPP_C"
Youness Alaoui047475c2017-05-08 16:50:23 -040033 register "gpe0_dw1" = "GPP_D"
34 register "gpe0_dw2" = "GPP_E"
35
Youness Alaoui6aa28d92018-03-13 16:53:30 -040036 # EC host command ranges are in 0x380-0x383 & 0x80-0x8f
37 register "gen1_dec" = "0x00000381"
38 register "gen2_dec" = "0x000c0081"
Youness Alaoui047475c2017-05-08 16:50:23 -040039
40 # Enable "Intel Speed Shift Technology"
41 register "speed_shift_enable" = "1"
42
Youness Alaoui3f42a26b2018-03-20 18:32:23 -040043 # Disable DPTF
44 register "dptf_enable" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040045
46 # FSP Configuration
47 register "ProbelessTrace" = "0"
48 register "EnableLan" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050049 register "EnableSata" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040050 register "SataSalpSupport" = "0"
51 register "SataMode" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050052 register "SataPortsEnable[0]" = "1"
Youness Alaouic5b96582017-06-19 20:47:27 -040053 register "SataPortsEnable[1]" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050054 register "SataPortsEnable[2]" = "1"
Youness Alaouic5b96582017-06-19 20:47:27 -040055 register "SataPortsDevSlp[0]" = "0"
56 register "SataPortsDevSlp[2]" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040057 register "EnableAzalia" = "1"
Youness Alaouieacac202017-05-17 17:16:09 -040058 register "DspEnable" = "0"
59 register "IoBufferOwnership" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040060 register "EnableTraceHub" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040061 register "SsicPortEnable" = "0"
62 register "SmbusEnable" = "1"
63 register "Cio2Enable" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050064 register "ScsEmmcEnabled" = "0"
65 register "ScsEmmcHs400Enabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040066 register "ScsSdCardEnabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040067 register "PttSwitch" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040068 register "SkipExtGfxScan" = "1"
69 register "Device4Enable" = "1"
70 register "HeciEnabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040071 register "SaGv" = "3"
Elyes HAOUASb0f19882018-06-09 11:59:00 +020072 register "PmConfigSlpS3MinAssert" = "2" # 50ms
73 register "PmConfigSlpS4MinAssert" = "1" # 1s
74 register "PmConfigSlpSusMinAssert" = "3" # 500ms
75 register "PmConfigSlpAMinAssert" = "3" # 2s
Matt DeVillier0ff3b732017-05-25 15:31:49 -050076 register "PmTimerDisabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040077
Nico Huber44e89af2019-02-23 19:24:51 +010078 # EC/KBC requires continuous mode
79 register "serirq_mode" = "SERIRQ_CONTINUOUS"
80
Youness Alaoui047475c2017-05-08 16:50:23 -040081 register "pirqa_routing" = "PCH_IRQ11"
82 register "pirqb_routing" = "PCH_IRQ10"
83 register "pirqc_routing" = "PCH_IRQ11"
84 register "pirqd_routing" = "PCH_IRQ11"
85 register "pirqe_routing" = "PCH_IRQ11"
86 register "pirqf_routing" = "PCH_IRQ11"
87 register "pirqg_routing" = "PCH_IRQ11"
88 register "pirqh_routing" = "PCH_IRQ11"
89
Matt DeVillierfb1cd092017-06-22 15:54:07 -040090 # VR Settings Configuration for 4 Domains
Youness Alaoui3f42a26b2018-03-20 18:32:23 -040091 #+----------------+-----------+-----------+-------------+----------+
92 #| Domain/Setting | SA | IA | GT Unsliced | GT |
93 #+----------------+-----------+-----------+-------------+----------+
94 #| Psi1Threshold | 20A | 20A | 20A | 20A |
95 #| Psi2Threshold | 4A | 5A | 5A | 5A |
96 #| Psi3Threshold | 1A | 1A | 1A | 1A |
97 #| Psi3Enable | 1 | 1 | 1 | 1 |
98 #| Psi4Enable | 1 | 1 | 1 | 1 |
99 #| ImonSlope | 0 | 0 | 0 | 0 |
100 #| ImonOffset | 0 | 0 | 0 | 0 |
101 #| IccMax | 7A | 34A | 35A | 35A |
102 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
103 #| AC LoadLine | 15 mOhm | 5.7 mOhm | 5.2 mOhm | 5.2 mOhm |
104 #| DC LoadLine | 14.3 mOhm | 4.83 mOhm | 4.2 mOhm | 4.2 mOhm |
105 #+----------------+-----------+-----------+-------------+----------+
Youness Alaoui047475c2017-05-08 16:50:23 -0400106 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
107 .vr_config_enable = 1,
108 .psi1threshold = VR_CFG_AMP(20),
109 .psi2threshold = VR_CFG_AMP(4),
110 .psi3threshold = VR_CFG_AMP(1),
111 .psi3enable = 1,
112 .psi4enable = 1,
113 .imon_slope = 0x0,
114 .imon_offset = 0x0,
115 .icc_max = VR_CFG_AMP(7),
116 .voltage_limit = 1520,
Youness Alaoui3f42a26b2018-03-20 18:32:23 -0400117 .ac_loadline = 1500,
118 .dc_loadline = 1430,
Youness Alaoui047475c2017-05-08 16:50:23 -0400119 }"
120
121 register "domain_vr_config[VR_IA_CORE]" = "{
122 .vr_config_enable = 1,
123 .psi1threshold = VR_CFG_AMP(20),
124 .psi2threshold = VR_CFG_AMP(5),
125 .psi3threshold = VR_CFG_AMP(1),
126 .psi3enable = 1,
127 .psi4enable = 1,
128 .imon_slope = 0x0,
129 .imon_offset = 0x0,
130 .icc_max = VR_CFG_AMP(34),
131 .voltage_limit = 1520,
Youness Alaoui3f42a26b2018-03-20 18:32:23 -0400132 .ac_loadline = 570,
133 .dc_loadline = 483,
Youness Alaoui047475c2017-05-08 16:50:23 -0400134 }"
135
Youness Alaoui047475c2017-05-08 16:50:23 -0400136 register "domain_vr_config[VR_GT_UNSLICED]" = "{
137 .vr_config_enable = 1,
138 .psi1threshold = VR_CFG_AMP(20),
139 .psi2threshold = VR_CFG_AMP(5),
140 .psi3threshold = VR_CFG_AMP(1),
141 .psi3enable = 1,
142 .psi4enable = 1,
143 .imon_slope = 0x0,
144 .imon_offset = 0x0,
145 .icc_max = VR_CFG_AMP(35),
146 .voltage_limit = 1520,
Youness Alaoui3f42a26b2018-03-20 18:32:23 -0400147 .ac_loadline = 520,
148 .dc_loadline = 420,
Youness Alaoui047475c2017-05-08 16:50:23 -0400149 }"
150
151 register "domain_vr_config[VR_GT_SLICED]" = "{
152 .vr_config_enable = 1,
153 .psi1threshold = VR_CFG_AMP(20),
154 .psi2threshold = VR_CFG_AMP(5),
155 .psi3threshold = VR_CFG_AMP(1),
156 .psi3enable = 1,
157 .psi4enable = 1,
158 .imon_slope = 0x0,
159 .imon_offset = 0x0,
160 .icc_max = VR_CFG_AMP(35),
161 .voltage_limit = 1520,
Youness Alaoui3f42a26b2018-03-20 18:32:23 -0400162 .ac_loadline = 520,
163 .dc_loadline = 420,
Youness Alaoui047475c2017-05-08 16:50:23 -0400164 }"
165
Youness Alaouidebb7852017-05-25 15:40:13 -0500166 # Enable Root Ports 5 and 9
167 register "PcieRpEnable[4]" = "1"
168 register "PcieRpEnable[8]" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -0400169
Matt DeVillier2ae27422017-05-25 15:53:29 -0500170 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530171 register "power_limits_config" = "{
172 .tdp_pl2_override = 25,
173 }"
Youness Alaoui047475c2017-05-08 16:50:23 -0400174
Matt DeVillier2ae27422017-05-25 15:53:29 -0500175 # Send an extra VR mailbox command for the PS4 exit issue
176 register "SendVrMbxCmd" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -0400177
Subrata Banikc204aaa2017-08-17 15:49:58 +0530178 # Lock Down
Subrata Banikc4986eb2018-05-09 14:55:09 +0530179 register "common_soc_config" = "{
180 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
181 }"
Subrata Banikc204aaa2017-08-17 15:49:58 +0530182
Youness Alaoui047475c2017-05-08 16:50:23 -0400183 device cpu_cluster 0 on
184 device lapic 0 on end
185 end
186 device domain 0 on
187 device pci 00.0 on end # Host Bridge
188 device pci 02.0 on end # Integrated Graphics Device
189 device pci 14.0 on end # USB xHCI
Youness Alaouidebb7852017-05-25 15:40:13 -0500190 device pci 14.1 on end # USB xDCI (OTG)
Youness Alaoui047475c2017-05-08 16:50:23 -0400191 device pci 14.2 on end # Thermal Subsystem
192 device pci 16.0 on end # Management Engine Interface 1
193 device pci 16.1 off end # Management Engine Interface 2
194 device pci 16.2 off end # Management Engine IDE-R
195 device pci 16.3 off end # Management Engine KT Redirection
196 device pci 16.4 off end # Management Engine Interface 3
197 device pci 17.0 on end # SATA
Youness Alaouidebb7852017-05-25 15:40:13 -0500198 device pci 1c.0 on end # PCI Express Port 1
Youness Alaoui047475c2017-05-08 16:50:23 -0400199 device pci 1c.1 off end # PCI Express Port 2
200 device pci 1c.2 off end # PCI Express Port 3
201 device pci 1c.3 off end # PCI Express Port 4
202 device pci 1c.4 off end # PCI Express Port 5
203 device pci 1c.5 off end # PCI Express Port 6
204 device pci 1c.6 off end # PCI Express Port 7
205 device pci 1c.7 off end # PCI Express Port 8
Youness Alaouidebb7852017-05-25 15:40:13 -0500206 device pci 1d.0 on end # PCI Express Port 9
Youness Alaoui047475c2017-05-08 16:50:23 -0400207 device pci 1d.1 off end # PCI Express Port 10
208 device pci 1d.2 off end # PCI Express Port 11
209 device pci 1d.3 off end # PCI Express Port 12
210 device pci 1f.0 on
Elyes HAOUASb0f19882018-06-09 11:59:00 +0200211 chip ec/purism/librem
212 device pnp 0c09.0 on end
213 end
214 chip drivers/pc80/tpm
215 device pnp 0c31.0 on end
216 end
Youness Alaoui047475c2017-05-08 16:50:23 -0400217 end # LPC Interface
Youness Alaouidebb7852017-05-25 15:40:13 -0500218 device pci 1f.1 on end # P2SB
Youness Alaoui047475c2017-05-08 16:50:23 -0400219 device pci 1f.2 on end # Power Management Controller
220 device pci 1f.3 on end # Intel HDA
221 device pci 1f.4 on end # SMBus
222 device pci 1f.5 on end # PCH SPI
223 device pci 1f.6 off end # GbE
224 end
225end