blob: f345c09f38d30cc8651cda63b4d4b034f28bcc3d [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"
6 register "deep_s5_enable_ac" = "1"
7 register "deep_s5_enable_dc" = "1"
8 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
9
10 # GPE configuration
11 # Note that GPE events called out in ASL code rely on this
12 # route. i.e. If this route changes then the affected GPE
13 # offset bits also need to be changed.
Youness Alaoui34a30a62017-05-25 13:25:41 -050014 register "gpe0_dw0" = "GPP_C"
Youness Alaoui047475c2017-05-08 16:50:23 -040015 register "gpe0_dw1" = "GPP_D"
16 register "gpe0_dw2" = "GPP_E"
17
18 # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f
19 register "gen1_dec" = "0x00fc0801"
20 register "gen2_dec" = "0x000c0201"
21
22 # Enable "Intel Speed Shift Technology"
23 register "speed_shift_enable" = "1"
24
25 # Enable DPTF
26 register "dptf_enable" = "1"
27
28 # FSP Configuration
29 register "ProbelessTrace" = "0"
30 register "EnableLan" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050031 register "EnableSata" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040032 register "SataSalpSupport" = "0"
33 register "SataMode" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050034 register "SataPortsEnable[0]" = "1"
35 register "SataPortsEnable[2]" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040036 register "EnableAzalia" = "1"
37 register "DspEnable" = "1"
38 register "IoBufferOwnership" = "3"
39 register "EnableTraceHub" = "0"
40 register "XdciEnable" = "0"
41 register "SsicPortEnable" = "0"
42 register "SmbusEnable" = "1"
43 register "Cio2Enable" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050044 register "ScsEmmcEnabled" = "0"
45 register "ScsEmmcHs400Enabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040046 register "ScsSdCardEnabled" = "0"
47 register "IshEnable" = "0"
48 register "PttSwitch" = "0"
49 register "InternalGfx" = "1"
50 register "SkipExtGfxScan" = "1"
51 register "Device4Enable" = "1"
52 register "HeciEnabled" = "0"
53 register "FspSkipMpInit" = "1"
54 register "SaGv" = "3"
55 register "SerialIrqConfigSirqEnable" = "1"
56 register "PmConfigSlpS3MinAssert" = "2" # 50ms
57 register "PmConfigSlpS4MinAssert" = "1" # 1s
58 register "PmConfigSlpSusMinAssert" = "1" # 500ms
59 register "PmConfigSlpAMinAssert" = "3" # 2s
Matt DeVillier0ff3b732017-05-25 15:31:49 -050060 register "PmTimerDisabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040061
62 register "pirqa_routing" = "PCH_IRQ11"
63 register "pirqb_routing" = "PCH_IRQ10"
64 register "pirqc_routing" = "PCH_IRQ11"
65 register "pirqd_routing" = "PCH_IRQ11"
66 register "pirqe_routing" = "PCH_IRQ11"
67 register "pirqf_routing" = "PCH_IRQ11"
68 register "pirqg_routing" = "PCH_IRQ11"
69 register "pirqh_routing" = "PCH_IRQ11"
70
71 # VR Settings Configuration for 5 Domains
72 #+----------------+-------+-------+-------------+-------------+-------+
73 #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT |
74 #+----------------+-------+-------+-------------+-------------+-------+
75 #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A |
76 #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A |
77 #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A |
78 #| Psi3Enable | 1 | 1 | 1 | 1 | 1 |
79 #| Psi4Enable | 1 | 1 | 1 | 1 | 1 |
80 #| ImonSlope | 0 | 0 | 0 | 0 | 0 |
81 #| ImonOffset | 0 | 0 | 0 | 0 | 0 |
82 #| IccMax | 7A | 34A | 34A | 35A | 35A |
83 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V |
84 #+----------------+-------+-------+-------------+-------------+-------+
85 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
86 .vr_config_enable = 1,
87 .psi1threshold = VR_CFG_AMP(20),
88 .psi2threshold = VR_CFG_AMP(4),
89 .psi3threshold = VR_CFG_AMP(1),
90 .psi3enable = 1,
91 .psi4enable = 1,
92 .imon_slope = 0x0,
93 .imon_offset = 0x0,
94 .icc_max = VR_CFG_AMP(7),
95 .voltage_limit = 1520,
96 }"
97
98 register "domain_vr_config[VR_IA_CORE]" = "{
99 .vr_config_enable = 1,
100 .psi1threshold = VR_CFG_AMP(20),
101 .psi2threshold = VR_CFG_AMP(5),
102 .psi3threshold = VR_CFG_AMP(1),
103 .psi3enable = 1,
104 .psi4enable = 1,
105 .imon_slope = 0x0,
106 .imon_offset = 0x0,
107 .icc_max = VR_CFG_AMP(34),
108 .voltage_limit = 1520,
109 }"
110
111 register "domain_vr_config[VR_RING]" = "{
112 .vr_config_enable = 1,
113 .psi1threshold = VR_CFG_AMP(20),
114 .psi2threshold = VR_CFG_AMP(5),
115 .psi3threshold = VR_CFG_AMP(1),
116 .psi3enable = 1,
117 .psi4enable = 1,
118 .imon_slope = 0x0,
119 .imon_offset = 0x0,
120 .icc_max = VR_CFG_AMP(34),
121 .voltage_limit = 1520,
122 }"
123
124 register "domain_vr_config[VR_GT_UNSLICED]" = "{
125 .vr_config_enable = 1,
126 .psi1threshold = VR_CFG_AMP(20),
127 .psi2threshold = VR_CFG_AMP(5),
128 .psi3threshold = VR_CFG_AMP(1),
129 .psi3enable = 1,
130 .psi4enable = 1,
131 .imon_slope = 0x0,
132 .imon_offset = 0x0,
133 .icc_max = VR_CFG_AMP(35),
134 .voltage_limit = 1520,
135 }"
136
137 register "domain_vr_config[VR_GT_SLICED]" = "{
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,
148 }"
149
Youness Alaouidebb7852017-05-25 15:40:13 -0500150 # Enable Root Ports 5 and 9
151 register "PcieRpEnable[4]" = "1"
152 register "PcieRpEnable[8]" = "1"
153 # Enable CLKREQ# for RP9
154 register "PcieRpClkReqSupport[8]" = "1"
155 # ClkReq for NVMe - Bruteforced (no other value works)
156 register "PcieRpClkReqNumber[8]" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -0400157
Matt DeVillier2fa66162017-05-25 15:50:59 -0500158 register "usb2_ports[0]" = "USB2_PORT_LONG(OC_SKIP)" # Type-C Port
159 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port (right)
Youness Alaoui047475c2017-05-08 16:50:23 -0400160 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Matt DeVillier2fa66162017-05-25 15:50:59 -0500161 register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
162 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port (left)
163 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # SD
Youness Alaoui047475c2017-05-08 16:50:23 -0400164
Matt DeVillier2fa66162017-05-25 15:50:59 -0500165 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-A Port (right)
166 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
Youness Alaoui047475c2017-05-08 16:50:23 -0400167
Matt DeVillier2ae27422017-05-25 15:53:29 -0500168 # PL2 override 25W
169 register "tdp_pl2_override" = "25"
Youness Alaoui047475c2017-05-08 16:50:23 -0400170
Matt DeVillier2ae27422017-05-25 15:53:29 -0500171 # Send an extra VR mailbox command for the PS4 exit issue
172 register "SendVrMbxCmd" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -0400173
174 device cpu_cluster 0 on
175 device lapic 0 on end
176 end
177 device domain 0 on
178 device pci 00.0 on end # Host Bridge
179 device pci 02.0 on end # Integrated Graphics Device
180 device pci 14.0 on end # USB xHCI
Youness Alaouidebb7852017-05-25 15:40:13 -0500181 device pci 14.1 on end # USB xDCI (OTG)
Youness Alaoui047475c2017-05-08 16:50:23 -0400182 device pci 14.2 on end # Thermal Subsystem
183 device pci 16.0 on end # Management Engine Interface 1
184 device pci 16.1 off end # Management Engine Interface 2
185 device pci 16.2 off end # Management Engine IDE-R
186 device pci 16.3 off end # Management Engine KT Redirection
187 device pci 16.4 off end # Management Engine Interface 3
188 device pci 17.0 on end # SATA
Youness Alaouidebb7852017-05-25 15:40:13 -0500189 device pci 1c.0 on end # PCI Express Port 1
Youness Alaoui047475c2017-05-08 16:50:23 -0400190 device pci 1c.1 off end # PCI Express Port 2
191 device pci 1c.2 off end # PCI Express Port 3
192 device pci 1c.3 off end # PCI Express Port 4
193 device pci 1c.4 off end # PCI Express Port 5
194 device pci 1c.5 off end # PCI Express Port 6
195 device pci 1c.6 off end # PCI Express Port 7
196 device pci 1c.7 off end # PCI Express Port 8
Youness Alaouidebb7852017-05-25 15:40:13 -0500197 device pci 1d.0 on end # PCI Express Port 9
Youness Alaoui047475c2017-05-08 16:50:23 -0400198 device pci 1d.1 off end # PCI Express Port 10
199 device pci 1d.2 off end # PCI Express Port 11
200 device pci 1d.3 off end # PCI Express Port 12
201 device pci 1f.0 on
202 chip ec/purism/librem
203 device pnp 0c09.0 on end
204 end
205 end # LPC Interface
Youness Alaouidebb7852017-05-25 15:40:13 -0500206 device pci 1f.1 on end # P2SB
Youness Alaoui047475c2017-05-08 16:50:23 -0400207 device pci 1f.2 on end # Power Management Controller
208 device pci 1f.3 on end # Intel HDA
209 device pci 1f.4 on end # SMBus
210 device pci 1f.5 on end # PCH SPI
211 device pci 1f.6 off end # GbE
212 end
213end