blob: 3d63f90f72d10139d3d902331035ba483bc58c94 [file] [log] [blame]
Youness Alaoui047475c2017-05-08 16:50:23 -04001chip soc/intel/skylake
2
3 # Enable deep Sx states
4 register "deep_s3_enable_ac" = "0"
5 register "deep_s3_enable_dc" = "0"
Youness Alaouic5b96582017-06-19 20:47:27 -04006 register "deep_s5_enable_ac" = "0"
7 register "deep_s5_enable_dc" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -04008 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
9
Youness Alaoui0601f1e2018-02-09 18:44:45 -050010 register "eist_enable" = "1"
11 register "VmxEnable" = "1"
12
Youness Alaouicb8f04d2018-03-02 16:12:04 -050013 # Set the Thermal Control Circuit (TCC) activaction value to 95C
14 # even though FSP integration guide says to set it to 100C for SKL-U
15 # (offset at 0), because when the TCC activates at 100C, the CPU
16 # will have already shut itself down from overheating protection.
17 register "tcc_offset" = "5" # TCC of 95C
18
Youness Alaoui047475c2017-05-08 16:50:23 -040019 # GPE configuration
20 # Note that GPE events called out in ASL code rely on this
21 # route. i.e. If this route changes then the affected GPE
22 # offset bits also need to be changed.
Youness Alaoui34a30a62017-05-25 13:25:41 -050023 register "gpe0_dw0" = "GPP_C"
Youness Alaoui047475c2017-05-08 16:50:23 -040024 register "gpe0_dw1" = "GPP_D"
25 register "gpe0_dw2" = "GPP_E"
26
Youness Alaoui6aa28d92018-03-13 16:53:30 -040027 # EC host command ranges are in 0x380-0x383 & 0x80-0x8f
28 register "gen1_dec" = "0x00000381"
29 register "gen2_dec" = "0x000c0081"
Youness Alaoui047475c2017-05-08 16:50:23 -040030
31 # Enable "Intel Speed Shift Technology"
32 register "speed_shift_enable" = "1"
33
34 # Enable DPTF
35 register "dptf_enable" = "1"
36
37 # FSP Configuration
38 register "ProbelessTrace" = "0"
39 register "EnableLan" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050040 register "EnableSata" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040041 register "SataSalpSupport" = "0"
42 register "SataMode" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050043 register "SataPortsEnable[0]" = "1"
Youness Alaouic5b96582017-06-19 20:47:27 -040044 register "SataPortsEnable[1]" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050045 register "SataPortsEnable[2]" = "1"
Youness Alaouic5b96582017-06-19 20:47:27 -040046 register "SataPortsDevSlp[0]" = "0"
47 register "SataPortsDevSlp[2]" = "0"
Matt DeVillierfb1cd092017-06-22 15:54:07 -040048 register "SataSpeedLimit" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -040049 register "EnableAzalia" = "1"
Youness Alaouieacac202017-05-17 17:16:09 -040050 register "DspEnable" = "0"
51 register "IoBufferOwnership" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040052 register "EnableTraceHub" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040053 register "SsicPortEnable" = "0"
54 register "SmbusEnable" = "1"
55 register "Cio2Enable" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050056 register "ScsEmmcEnabled" = "0"
57 register "ScsEmmcHs400Enabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040058 register "ScsSdCardEnabled" = "0"
59 register "IshEnable" = "0"
60 register "PttSwitch" = "0"
61 register "InternalGfx" = "1"
62 register "SkipExtGfxScan" = "1"
63 register "Device4Enable" = "1"
64 register "HeciEnabled" = "0"
65 register "FspSkipMpInit" = "1"
66 register "SaGv" = "3"
67 register "SerialIrqConfigSirqEnable" = "1"
68 register "PmConfigSlpS3MinAssert" = "2" # 50ms
69 register "PmConfigSlpS4MinAssert" = "1" # 1s
Youness Alaouic5b96582017-06-19 20:47:27 -040070 register "PmConfigSlpSusMinAssert" = "3" # 500ms
Youness Alaoui047475c2017-05-08 16:50:23 -040071 register "PmConfigSlpAMinAssert" = "3" # 2s
Matt DeVillier0ff3b732017-05-25 15:31:49 -050072 register "PmTimerDisabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040073
74 register "pirqa_routing" = "PCH_IRQ11"
75 register "pirqb_routing" = "PCH_IRQ10"
76 register "pirqc_routing" = "PCH_IRQ11"
77 register "pirqd_routing" = "PCH_IRQ11"
78 register "pirqe_routing" = "PCH_IRQ11"
79 register "pirqf_routing" = "PCH_IRQ11"
80 register "pirqg_routing" = "PCH_IRQ11"
81 register "pirqh_routing" = "PCH_IRQ11"
82
Matt DeVillierfb1cd092017-06-22 15:54:07 -040083 # VR Settings Configuration for 4 Domains
84 #+----------------+-------+-------+-------------+-------+
85 #| Domain/Setting | SA | IA | GT Unsliced | GT |
86 #+----------------+-------+-------+-------------+-------+
87 #| Psi1Threshold | 20A | 20A | 20A | 20A |
88 #| Psi2Threshold | 4A | 5A | 5A | 5A |
89 #| Psi3Threshold | 1A | 1A | 1A | 1A |
90 #| Psi3Enable | 1 | 1 | 1 | 1 |
91 #| Psi4Enable | 1 | 1 | 1 | 1 |
92 #| ImonSlope | 0 | 0 | 0 | 0 |
93 #| ImonOffset | 0 | 0 | 0 | 0 |
94 #| IccMax | 7A | 34A | 35A | 35A |
95 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
96 #+----------------+-------+-------+-------------+-------+
Youness Alaoui047475c2017-05-08 16:50:23 -040097 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
98 .vr_config_enable = 1,
99 .psi1threshold = VR_CFG_AMP(20),
100 .psi2threshold = VR_CFG_AMP(4),
101 .psi3threshold = VR_CFG_AMP(1),
102 .psi3enable = 1,
103 .psi4enable = 1,
104 .imon_slope = 0x0,
105 .imon_offset = 0x0,
106 .icc_max = VR_CFG_AMP(7),
107 .voltage_limit = 1520,
108 }"
109
110 register "domain_vr_config[VR_IA_CORE]" = "{
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(34),
120 .voltage_limit = 1520,
121 }"
122
Youness Alaoui047475c2017-05-08 16:50:23 -0400123 register "domain_vr_config[VR_GT_UNSLICED]" = "{
124 .vr_config_enable = 1,
125 .psi1threshold = VR_CFG_AMP(20),
126 .psi2threshold = VR_CFG_AMP(5),
127 .psi3threshold = VR_CFG_AMP(1),
128 .psi3enable = 1,
129 .psi4enable = 1,
130 .imon_slope = 0x0,
131 .imon_offset = 0x0,
132 .icc_max = VR_CFG_AMP(35),
133 .voltage_limit = 1520,
134 }"
135
136 register "domain_vr_config[VR_GT_SLICED]" = "{
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,
147 }"
148
Youness Alaouidebb7852017-05-25 15:40:13 -0500149 # Enable Root Ports 5 and 9
150 register "PcieRpEnable[4]" = "1"
151 register "PcieRpEnable[8]" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -0400152
Youness Alaouia8b35be2017-07-25 14:11:31 -0400153 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port
154 register "usb2_ports[1]" = "USB2_PORT_MID(OC0)" # Type-A Port (right)
Youness Alaoui047475c2017-05-08 16:50:23 -0400155 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Matt DeVillier2fa66162017-05-25 15:50:59 -0500156 register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
Youness Alaouia8b35be2017-07-25 14:11:31 -0400157 register "usb2_ports[5]" = "USB2_PORT_FLEX(OC2)" # Type-A Port (left)
Matt DeVillier2fa66162017-05-25 15:50:59 -0500158 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # SD
Youness Alaoui047475c2017-05-08 16:50:23 -0400159
Youness Alaouia8b35be2017-07-25 14:11:31 -0400160 # OC1 should be for Type-C but it seems to not have been wired, according to
161 # the available schematics, even though it is labeled as USB_OC_TYPEC.
162 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
163 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # Type-A Port (right)
Matt DeVillier2fa66162017-05-25 15:50:59 -0500164 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
Youness Alaoui047475c2017-05-08 16:50:23 -0400165
Matt DeVillier2ae27422017-05-25 15:53:29 -0500166 # PL2 override 25W
167 register "tdp_pl2_override" = "25"
Youness Alaoui047475c2017-05-08 16:50:23 -0400168
Matt DeVillier2ae27422017-05-25 15:53:29 -0500169 # Send an extra VR mailbox command for the PS4 exit issue
170 register "SendVrMbxCmd" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -0400171
Subrata Banikc204aaa2017-08-17 15:49:58 +0530172 # Lock Down
173 register "chipset_lockdown" = "CHIPSET_LOCKDOWN_COREBOOT"
174
Youness Alaoui047475c2017-05-08 16:50:23 -0400175 device cpu_cluster 0 on
176 device lapic 0 on end
177 end
178 device domain 0 on
179 device pci 00.0 on end # Host Bridge
180 device pci 02.0 on end # Integrated Graphics Device
181 device pci 14.0 on end # USB xHCI
Youness Alaouidebb7852017-05-25 15:40:13 -0500182 device pci 14.1 on end # USB xDCI (OTG)
Youness Alaoui047475c2017-05-08 16:50:23 -0400183 device pci 14.2 on end # Thermal Subsystem
184 device pci 16.0 on end # Management Engine Interface 1
185 device pci 16.1 off end # Management Engine Interface 2
186 device pci 16.2 off end # Management Engine IDE-R
187 device pci 16.3 off end # Management Engine KT Redirection
188 device pci 16.4 off end # Management Engine Interface 3
189 device pci 17.0 on end # SATA
Youness Alaouidebb7852017-05-25 15:40:13 -0500190 device pci 1c.0 on end # PCI Express Port 1
Youness Alaoui047475c2017-05-08 16:50:23 -0400191 device pci 1c.1 off end # PCI Express Port 2
192 device pci 1c.2 off end # PCI Express Port 3
193 device pci 1c.3 off end # PCI Express Port 4
194 device pci 1c.4 off end # PCI Express Port 5
195 device pci 1c.5 off end # PCI Express Port 6
196 device pci 1c.6 off end # PCI Express Port 7
197 device pci 1c.7 off end # PCI Express Port 8
Youness Alaouidebb7852017-05-25 15:40:13 -0500198 device pci 1d.0 on end # PCI Express Port 9
Youness Alaoui047475c2017-05-08 16:50:23 -0400199 device pci 1d.1 off end # PCI Express Port 10
200 device pci 1d.2 off end # PCI Express Port 11
201 device pci 1d.3 off end # PCI Express Port 12
202 device pci 1f.0 on
203 chip ec/purism/librem
204 device pnp 0c09.0 on end
205 end
Youness Alaoui59d89a82018-02-09 18:42:49 -0500206 chip drivers/pc80/tpm
207 device pnp 0c31.0 on end
208 end
Youness Alaoui047475c2017-05-08 16:50:23 -0400209 end # LPC Interface
Youness Alaouidebb7852017-05-25 15:40:13 -0500210 device pci 1f.1 on end # P2SB
Youness Alaoui047475c2017-05-08 16:50:23 -0400211 device pci 1f.2 on end # Power Management Controller
212 device pci 1f.3 on end # Intel HDA
213 device pci 1f.4 on end # SMBus
214 device pci 1f.5 on end # PCH SPI
215 device pci 1f.6 off end # GbE
216 end
217end