blob: 6c55af66cc4a65585d73e3b70407c45fc4c6db53 [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"
Matt DeVillierfb1cd092017-06-22 15:54:07 -040057 register "SataSpeedLimit" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -040058 register "EnableAzalia" = "1"
Youness Alaouieacac202017-05-17 17:16:09 -040059 register "DspEnable" = "0"
60 register "IoBufferOwnership" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040061 register "EnableTraceHub" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040062 register "SsicPortEnable" = "0"
63 register "SmbusEnable" = "1"
64 register "Cio2Enable" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050065 register "ScsEmmcEnabled" = "0"
66 register "ScsEmmcHs400Enabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040067 register "ScsSdCardEnabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040068 register "PttSwitch" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040069 register "SkipExtGfxScan" = "1"
70 register "Device4Enable" = "1"
71 register "HeciEnabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040072 register "SaGv" = "3"
Elyes HAOUASb0f19882018-06-09 11:59:00 +020073 register "PmConfigSlpS3MinAssert" = "2" # 50ms
74 register "PmConfigSlpS4MinAssert" = "1" # 1s
75 register "PmConfigSlpSusMinAssert" = "3" # 500ms
76 register "PmConfigSlpAMinAssert" = "3" # 2s
Matt DeVillier0ff3b732017-05-25 15:31:49 -050077 register "PmTimerDisabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040078
Nico Huber44e89af2019-02-23 19:24:51 +010079 # EC/KBC requires continuous mode
80 register "serirq_mode" = "SERIRQ_CONTINUOUS"
81
Youness Alaoui047475c2017-05-08 16:50:23 -040082 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 DeVillierfb1cd092017-06-22 15:54:07 -040091 # VR Settings Configuration for 4 Domains
Youness Alaoui3f42a26b2018-03-20 18:32:23 -040092 #+----------------+-----------+-----------+-------------+----------+
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 Alaoui047475c2017-05-08 16:50:23 -0400107 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 Alaoui3f42a26b2018-03-20 18:32:23 -0400118 .ac_loadline = 1500,
119 .dc_loadline = 1430,
Youness Alaoui047475c2017-05-08 16:50:23 -0400120 }"
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 Alaoui3f42a26b2018-03-20 18:32:23 -0400133 .ac_loadline = 570,
134 .dc_loadline = 483,
Youness Alaoui047475c2017-05-08 16:50:23 -0400135 }"
136
Youness Alaoui047475c2017-05-08 16:50:23 -0400137 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 Alaoui3f42a26b2018-03-20 18:32:23 -0400148 .ac_loadline = 520,
149 .dc_loadline = 420,
Youness Alaoui047475c2017-05-08 16:50:23 -0400150 }"
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 Alaoui3f42a26b2018-03-20 18:32:23 -0400163 .ac_loadline = 520,
164 .dc_loadline = 420,
Youness Alaoui047475c2017-05-08 16:50:23 -0400165 }"
166
Youness Alaouidebb7852017-05-25 15:40:13 -0500167 # Enable Root Ports 5 and 9
168 register "PcieRpEnable[4]" = "1"
169 register "PcieRpEnable[8]" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -0400170
Youness Alaouia8b35be2017-07-25 14:11:31 -0400171 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 Alaoui047475c2017-05-08 16:50:23 -0400173 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Matt DeVillier2fa66162017-05-25 15:50:59 -0500174 register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
Youness Alaouia8b35be2017-07-25 14:11:31 -0400175 register "usb2_ports[5]" = "USB2_PORT_FLEX(OC2)" # Type-A Port (left)
Matt DeVillier2fa66162017-05-25 15:50:59 -0500176 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # SD
Youness Alaoui047475c2017-05-08 16:50:23 -0400177
Youness Alaouia8b35be2017-07-25 14:11:31 -0400178 # 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 DeVillier2fa66162017-05-25 15:50:59 -0500182 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
Youness Alaoui047475c2017-05-08 16:50:23 -0400183
Matt DeVillier2ae27422017-05-25 15:53:29 -0500184 # PL2 override 25W
185 register "tdp_pl2_override" = "25"
Youness Alaoui047475c2017-05-08 16:50:23 -0400186
Matt DeVillier2ae27422017-05-25 15:53:29 -0500187 # Send an extra VR mailbox command for the PS4 exit issue
188 register "SendVrMbxCmd" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -0400189
Subrata Banikc204aaa2017-08-17 15:49:58 +0530190 # Lock Down
Subrata Banikc4986eb2018-05-09 14:55:09 +0530191 register "common_soc_config" = "{
192 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
193 }"
Subrata Banikc204aaa2017-08-17 15:49:58 +0530194
Youness Alaoui047475c2017-05-08 16:50:23 -0400195 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 Alaouidebb7852017-05-25 15:40:13 -0500202 device pci 14.1 on end # USB xDCI (OTG)
Youness Alaoui047475c2017-05-08 16:50:23 -0400203 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 Alaouidebb7852017-05-25 15:40:13 -0500210 device pci 1c.0 on end # PCI Express Port 1
Youness Alaoui047475c2017-05-08 16:50:23 -0400211 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 Alaouidebb7852017-05-25 15:40:13 -0500218 device pci 1d.0 on end # PCI Express Port 9
Youness Alaoui047475c2017-05-08 16:50:23 -0400219 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 HAOUASb0f19882018-06-09 11:59:00 +0200223 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 Alaoui047475c2017-05-08 16:50:23 -0400229 end # LPC Interface
Youness Alaouidebb7852017-05-25 15:40:13 -0500230 device pci 1f.1 on end # P2SB
Youness Alaoui047475c2017-05-08 16:50:23 -0400231 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
237end