blob: 84932b20247797fdf8a42df9a0f8ab10e19863a8 [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 Alaoui047475c2017-05-08 16:50:23 -040013 # GPE configuration
14 # Note that GPE events called out in ASL code rely on this
15 # route. i.e. If this route changes then the affected GPE
16 # offset bits also need to be changed.
Youness Alaoui34a30a62017-05-25 13:25:41 -050017 register "gpe0_dw0" = "GPP_C"
Youness Alaoui047475c2017-05-08 16:50:23 -040018 register "gpe0_dw1" = "GPP_D"
19 register "gpe0_dw2" = "GPP_E"
20
Youness Alaoui6aa28d92018-03-13 16:53:30 -040021 # EC host command ranges are in 0x380-0x383 & 0x80-0x8f
22 register "gen1_dec" = "0x00000381"
23 register "gen2_dec" = "0x000c0081"
Youness Alaoui047475c2017-05-08 16:50:23 -040024
25 # Enable "Intel Speed Shift Technology"
26 register "speed_shift_enable" = "1"
27
28 # Enable DPTF
29 register "dptf_enable" = "1"
30
31 # FSP Configuration
32 register "ProbelessTrace" = "0"
33 register "EnableLan" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050034 register "EnableSata" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040035 register "SataSalpSupport" = "0"
36 register "SataMode" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050037 register "SataPortsEnable[0]" = "1"
Youness Alaouic5b96582017-06-19 20:47:27 -040038 register "SataPortsEnable[1]" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050039 register "SataPortsEnable[2]" = "1"
Youness Alaouic5b96582017-06-19 20:47:27 -040040 register "SataPortsDevSlp[0]" = "0"
41 register "SataPortsDevSlp[2]" = "0"
Matt DeVillierfb1cd092017-06-22 15:54:07 -040042 register "SataSpeedLimit" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -040043 register "EnableAzalia" = "1"
Youness Alaouieacac202017-05-17 17:16:09 -040044 register "DspEnable" = "0"
45 register "IoBufferOwnership" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040046 register "EnableTraceHub" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040047 register "SsicPortEnable" = "0"
48 register "SmbusEnable" = "1"
49 register "Cio2Enable" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050050 register "ScsEmmcEnabled" = "0"
51 register "ScsEmmcHs400Enabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040052 register "ScsSdCardEnabled" = "0"
53 register "IshEnable" = "0"
54 register "PttSwitch" = "0"
55 register "InternalGfx" = "1"
56 register "SkipExtGfxScan" = "1"
57 register "Device4Enable" = "1"
58 register "HeciEnabled" = "0"
59 register "FspSkipMpInit" = "1"
60 register "SaGv" = "3"
61 register "SerialIrqConfigSirqEnable" = "1"
62 register "PmConfigSlpS3MinAssert" = "2" # 50ms
63 register "PmConfigSlpS4MinAssert" = "1" # 1s
Youness Alaouic5b96582017-06-19 20:47:27 -040064 register "PmConfigSlpSusMinAssert" = "3" # 500ms
Youness Alaoui047475c2017-05-08 16:50:23 -040065 register "PmConfigSlpAMinAssert" = "3" # 2s
Matt DeVillier0ff3b732017-05-25 15:31:49 -050066 register "PmTimerDisabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040067
68 register "pirqa_routing" = "PCH_IRQ11"
69 register "pirqb_routing" = "PCH_IRQ10"
70 register "pirqc_routing" = "PCH_IRQ11"
71 register "pirqd_routing" = "PCH_IRQ11"
72 register "pirqe_routing" = "PCH_IRQ11"
73 register "pirqf_routing" = "PCH_IRQ11"
74 register "pirqg_routing" = "PCH_IRQ11"
75 register "pirqh_routing" = "PCH_IRQ11"
76
Matt DeVillierfb1cd092017-06-22 15:54:07 -040077 # VR Settings Configuration for 4 Domains
78 #+----------------+-------+-------+-------------+-------+
79 #| Domain/Setting | SA | IA | GT Unsliced | GT |
80 #+----------------+-------+-------+-------------+-------+
81 #| Psi1Threshold | 20A | 20A | 20A | 20A |
82 #| Psi2Threshold | 4A | 5A | 5A | 5A |
83 #| Psi3Threshold | 1A | 1A | 1A | 1A |
84 #| Psi3Enable | 1 | 1 | 1 | 1 |
85 #| Psi4Enable | 1 | 1 | 1 | 1 |
86 #| ImonSlope | 0 | 0 | 0 | 0 |
87 #| ImonOffset | 0 | 0 | 0 | 0 |
88 #| IccMax | 7A | 34A | 35A | 35A |
89 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
90 #+----------------+-------+-------+-------------+-------+
Youness Alaoui047475c2017-05-08 16:50:23 -040091 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
92 .vr_config_enable = 1,
93 .psi1threshold = VR_CFG_AMP(20),
94 .psi2threshold = VR_CFG_AMP(4),
95 .psi3threshold = VR_CFG_AMP(1),
96 .psi3enable = 1,
97 .psi4enable = 1,
98 .imon_slope = 0x0,
99 .imon_offset = 0x0,
100 .icc_max = VR_CFG_AMP(7),
101 .voltage_limit = 1520,
102 }"
103
104 register "domain_vr_config[VR_IA_CORE]" = "{
105 .vr_config_enable = 1,
106 .psi1threshold = VR_CFG_AMP(20),
107 .psi2threshold = VR_CFG_AMP(5),
108 .psi3threshold = VR_CFG_AMP(1),
109 .psi3enable = 1,
110 .psi4enable = 1,
111 .imon_slope = 0x0,
112 .imon_offset = 0x0,
113 .icc_max = VR_CFG_AMP(34),
114 .voltage_limit = 1520,
115 }"
116
Youness Alaoui047475c2017-05-08 16:50:23 -0400117 register "domain_vr_config[VR_GT_UNSLICED]" = "{
118 .vr_config_enable = 1,
119 .psi1threshold = VR_CFG_AMP(20),
120 .psi2threshold = VR_CFG_AMP(5),
121 .psi3threshold = VR_CFG_AMP(1),
122 .psi3enable = 1,
123 .psi4enable = 1,
124 .imon_slope = 0x0,
125 .imon_offset = 0x0,
126 .icc_max = VR_CFG_AMP(35),
127 .voltage_limit = 1520,
128 }"
129
130 register "domain_vr_config[VR_GT_SLICED]" = "{
131 .vr_config_enable = 1,
132 .psi1threshold = VR_CFG_AMP(20),
133 .psi2threshold = VR_CFG_AMP(5),
134 .psi3threshold = VR_CFG_AMP(1),
135 .psi3enable = 1,
136 .psi4enable = 1,
137 .imon_slope = 0x0,
138 .imon_offset = 0x0,
139 .icc_max = VR_CFG_AMP(35),
140 .voltage_limit = 1520,
141 }"
142
Youness Alaouidebb7852017-05-25 15:40:13 -0500143 # Enable Root Ports 5 and 9
144 register "PcieRpEnable[4]" = "1"
145 register "PcieRpEnable[8]" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -0400146
Youness Alaouia8b35be2017-07-25 14:11:31 -0400147 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port
148 register "usb2_ports[1]" = "USB2_PORT_MID(OC0)" # Type-A Port (right)
Youness Alaoui047475c2017-05-08 16:50:23 -0400149 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Matt DeVillier2fa66162017-05-25 15:50:59 -0500150 register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
Youness Alaouia8b35be2017-07-25 14:11:31 -0400151 register "usb2_ports[5]" = "USB2_PORT_FLEX(OC2)" # Type-A Port (left)
Matt DeVillier2fa66162017-05-25 15:50:59 -0500152 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # SD
Youness Alaoui047475c2017-05-08 16:50:23 -0400153
Youness Alaouia8b35be2017-07-25 14:11:31 -0400154 # OC1 should be for Type-C but it seems to not have been wired, according to
155 # the available schematics, even though it is labeled as USB_OC_TYPEC.
156 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
157 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # Type-A Port (right)
Matt DeVillier2fa66162017-05-25 15:50:59 -0500158 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
Youness Alaoui047475c2017-05-08 16:50:23 -0400159
Matt DeVillier2ae27422017-05-25 15:53:29 -0500160 # PL2 override 25W
161 register "tdp_pl2_override" = "25"
Youness Alaoui047475c2017-05-08 16:50:23 -0400162
Matt DeVillier2ae27422017-05-25 15:53:29 -0500163 # Send an extra VR mailbox command for the PS4 exit issue
164 register "SendVrMbxCmd" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -0400165
Subrata Banikc204aaa2017-08-17 15:49:58 +0530166 # Lock Down
167 register "chipset_lockdown" = "CHIPSET_LOCKDOWN_COREBOOT"
168
Youness Alaoui047475c2017-05-08 16:50:23 -0400169 device cpu_cluster 0 on
170 device lapic 0 on end
171 end
172 device domain 0 on
173 device pci 00.0 on end # Host Bridge
174 device pci 02.0 on end # Integrated Graphics Device
175 device pci 14.0 on end # USB xHCI
Youness Alaouidebb7852017-05-25 15:40:13 -0500176 device pci 14.1 on end # USB xDCI (OTG)
Youness Alaoui047475c2017-05-08 16:50:23 -0400177 device pci 14.2 on end # Thermal Subsystem
178 device pci 16.0 on end # Management Engine Interface 1
179 device pci 16.1 off end # Management Engine Interface 2
180 device pci 16.2 off end # Management Engine IDE-R
181 device pci 16.3 off end # Management Engine KT Redirection
182 device pci 16.4 off end # Management Engine Interface 3
183 device pci 17.0 on end # SATA
Youness Alaouidebb7852017-05-25 15:40:13 -0500184 device pci 1c.0 on end # PCI Express Port 1
Youness Alaoui047475c2017-05-08 16:50:23 -0400185 device pci 1c.1 off end # PCI Express Port 2
186 device pci 1c.2 off end # PCI Express Port 3
187 device pci 1c.3 off end # PCI Express Port 4
188 device pci 1c.4 off end # PCI Express Port 5
189 device pci 1c.5 off end # PCI Express Port 6
190 device pci 1c.6 off end # PCI Express Port 7
191 device pci 1c.7 off end # PCI Express Port 8
Youness Alaouidebb7852017-05-25 15:40:13 -0500192 device pci 1d.0 on end # PCI Express Port 9
Youness Alaoui047475c2017-05-08 16:50:23 -0400193 device pci 1d.1 off end # PCI Express Port 10
194 device pci 1d.2 off end # PCI Express Port 11
195 device pci 1d.3 off end # PCI Express Port 12
196 device pci 1f.0 on
197 chip ec/purism/librem
198 device pnp 0c09.0 on end
199 end
Youness Alaoui59d89a82018-02-09 18:42:49 -0500200 chip drivers/pc80/tpm
201 device pnp 0c31.0 on end
202 end
Youness Alaoui047475c2017-05-08 16:50:23 -0400203 end # LPC Interface
Youness Alaouidebb7852017-05-25 15:40:13 -0500204 device pci 1f.1 on end # P2SB
Youness Alaoui047475c2017-05-08 16:50:23 -0400205 device pci 1f.2 on end # Power Management Controller
206 device pci 1f.3 on end # Intel HDA
207 device pci 1f.4 on end # SMBus
208 device pci 1f.5 on end # PCH SPI
209 device pci 1f.6 off end # GbE
210 end
211end