blob: 50e484b0df436ce497151cf0e19c6c214c7fba93 [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
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
Youness Alaoui6aa28d92018-03-13 16:53:30 -040018 # EC host command ranges are in 0x380-0x383 & 0x80-0x8f
19 register "gen1_dec" = "0x00000381"
20 register "gen2_dec" = "0x000c0081"
Youness Alaoui047475c2017-05-08 16:50:23 -040021
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"
Youness Alaouic5b96582017-06-19 20:47:27 -040035 register "SataPortsEnable[1]" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050036 register "SataPortsEnable[2]" = "1"
Youness Alaouic5b96582017-06-19 20:47:27 -040037 register "SataPortsDevSlp[0]" = "0"
38 register "SataPortsDevSlp[2]" = "0"
Matt DeVillierfb1cd092017-06-22 15:54:07 -040039 register "SataSpeedLimit" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -040040 register "EnableAzalia" = "1"
Youness Alaouieacac202017-05-17 17:16:09 -040041 register "DspEnable" = "0"
42 register "IoBufferOwnership" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040043 register "EnableTraceHub" = "0"
44 register "XdciEnable" = "0"
45 register "SsicPortEnable" = "0"
46 register "SmbusEnable" = "1"
47 register "Cio2Enable" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050048 register "ScsEmmcEnabled" = "0"
49 register "ScsEmmcHs400Enabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040050 register "ScsSdCardEnabled" = "0"
51 register "IshEnable" = "0"
52 register "PttSwitch" = "0"
53 register "InternalGfx" = "1"
54 register "SkipExtGfxScan" = "1"
55 register "Device4Enable" = "1"
56 register "HeciEnabled" = "0"
57 register "FspSkipMpInit" = "1"
58 register "SaGv" = "3"
59 register "SerialIrqConfigSirqEnable" = "1"
60 register "PmConfigSlpS3MinAssert" = "2" # 50ms
61 register "PmConfigSlpS4MinAssert" = "1" # 1s
Youness Alaouic5b96582017-06-19 20:47:27 -040062 register "PmConfigSlpSusMinAssert" = "3" # 500ms
Youness Alaoui047475c2017-05-08 16:50:23 -040063 register "PmConfigSlpAMinAssert" = "3" # 2s
Matt DeVillier0ff3b732017-05-25 15:31:49 -050064 register "PmTimerDisabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040065
66 register "pirqa_routing" = "PCH_IRQ11"
67 register "pirqb_routing" = "PCH_IRQ10"
68 register "pirqc_routing" = "PCH_IRQ11"
69 register "pirqd_routing" = "PCH_IRQ11"
70 register "pirqe_routing" = "PCH_IRQ11"
71 register "pirqf_routing" = "PCH_IRQ11"
72 register "pirqg_routing" = "PCH_IRQ11"
73 register "pirqh_routing" = "PCH_IRQ11"
74
Matt DeVillierfb1cd092017-06-22 15:54:07 -040075 # VR Settings Configuration for 4 Domains
76 #+----------------+-------+-------+-------------+-------+
77 #| Domain/Setting | SA | IA | GT Unsliced | GT |
78 #+----------------+-------+-------+-------------+-------+
79 #| Psi1Threshold | 20A | 20A | 20A | 20A |
80 #| Psi2Threshold | 4A | 5A | 5A | 5A |
81 #| Psi3Threshold | 1A | 1A | 1A | 1A |
82 #| Psi3Enable | 1 | 1 | 1 | 1 |
83 #| Psi4Enable | 1 | 1 | 1 | 1 |
84 #| ImonSlope | 0 | 0 | 0 | 0 |
85 #| ImonOffset | 0 | 0 | 0 | 0 |
86 #| IccMax | 7A | 34A | 35A | 35A |
87 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
88 #+----------------+-------+-------+-------------+-------+
Youness Alaoui047475c2017-05-08 16:50:23 -040089 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
90 .vr_config_enable = 1,
91 .psi1threshold = VR_CFG_AMP(20),
92 .psi2threshold = VR_CFG_AMP(4),
93 .psi3threshold = VR_CFG_AMP(1),
94 .psi3enable = 1,
95 .psi4enable = 1,
96 .imon_slope = 0x0,
97 .imon_offset = 0x0,
98 .icc_max = VR_CFG_AMP(7),
99 .voltage_limit = 1520,
100 }"
101
102 register "domain_vr_config[VR_IA_CORE]" = "{
103 .vr_config_enable = 1,
104 .psi1threshold = VR_CFG_AMP(20),
105 .psi2threshold = VR_CFG_AMP(5),
106 .psi3threshold = VR_CFG_AMP(1),
107 .psi3enable = 1,
108 .psi4enable = 1,
109 .imon_slope = 0x0,
110 .imon_offset = 0x0,
111 .icc_max = VR_CFG_AMP(34),
112 .voltage_limit = 1520,
113 }"
114
Youness Alaoui047475c2017-05-08 16:50:23 -0400115 register "domain_vr_config[VR_GT_UNSLICED]" = "{
116 .vr_config_enable = 1,
117 .psi1threshold = VR_CFG_AMP(20),
118 .psi2threshold = VR_CFG_AMP(5),
119 .psi3threshold = VR_CFG_AMP(1),
120 .psi3enable = 1,
121 .psi4enable = 1,
122 .imon_slope = 0x0,
123 .imon_offset = 0x0,
124 .icc_max = VR_CFG_AMP(35),
125 .voltage_limit = 1520,
126 }"
127
128 register "domain_vr_config[VR_GT_SLICED]" = "{
129 .vr_config_enable = 1,
130 .psi1threshold = VR_CFG_AMP(20),
131 .psi2threshold = VR_CFG_AMP(5),
132 .psi3threshold = VR_CFG_AMP(1),
133 .psi3enable = 1,
134 .psi4enable = 1,
135 .imon_slope = 0x0,
136 .imon_offset = 0x0,
137 .icc_max = VR_CFG_AMP(35),
138 .voltage_limit = 1520,
139 }"
140
Youness Alaouidebb7852017-05-25 15:40:13 -0500141 # Enable Root Ports 5 and 9
142 register "PcieRpEnable[4]" = "1"
143 register "PcieRpEnable[8]" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -0400144
Youness Alaouia8b35be2017-07-25 14:11:31 -0400145 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # Type-C Port
146 register "usb2_ports[1]" = "USB2_PORT_MID(OC0)" # Type-A Port (right)
Youness Alaoui047475c2017-05-08 16:50:23 -0400147 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # Bluetooth
Matt DeVillier2fa66162017-05-25 15:50:59 -0500148 register "usb2_ports[3]" = "USB2_PORT_FLEX(OC_SKIP)" # Camera
Youness Alaouia8b35be2017-07-25 14:11:31 -0400149 register "usb2_ports[5]" = "USB2_PORT_FLEX(OC2)" # Type-A Port (left)
Matt DeVillier2fa66162017-05-25 15:50:59 -0500150 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # SD
Youness Alaoui047475c2017-05-08 16:50:23 -0400151
Youness Alaouia8b35be2017-07-25 14:11:31 -0400152 # OC1 should be for Type-C but it seems to not have been wired, according to
153 # the available schematics, even though it is labeled as USB_OC_TYPEC.
154 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
155 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)" # Type-A Port (right)
Matt DeVillier2fa66162017-05-25 15:50:59 -0500156 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" # Type-C Port
Youness Alaoui047475c2017-05-08 16:50:23 -0400157
Matt DeVillier2ae27422017-05-25 15:53:29 -0500158 # PL2 override 25W
159 register "tdp_pl2_override" = "25"
Youness Alaoui047475c2017-05-08 16:50:23 -0400160
Matt DeVillier2ae27422017-05-25 15:53:29 -0500161 # Send an extra VR mailbox command for the PS4 exit issue
162 register "SendVrMbxCmd" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -0400163
Subrata Banikc204aaa2017-08-17 15:49:58 +0530164 # Lock Down
165 register "chipset_lockdown" = "CHIPSET_LOCKDOWN_COREBOOT"
166
Youness Alaoui047475c2017-05-08 16:50:23 -0400167 device cpu_cluster 0 on
168 device lapic 0 on end
169 end
170 device domain 0 on
171 device pci 00.0 on end # Host Bridge
172 device pci 02.0 on end # Integrated Graphics Device
173 device pci 14.0 on end # USB xHCI
Youness Alaouidebb7852017-05-25 15:40:13 -0500174 device pci 14.1 on end # USB xDCI (OTG)
Youness Alaoui047475c2017-05-08 16:50:23 -0400175 device pci 14.2 on end # Thermal Subsystem
176 device pci 16.0 on end # Management Engine Interface 1
177 device pci 16.1 off end # Management Engine Interface 2
178 device pci 16.2 off end # Management Engine IDE-R
179 device pci 16.3 off end # Management Engine KT Redirection
180 device pci 16.4 off end # Management Engine Interface 3
181 device pci 17.0 on end # SATA
Youness Alaouidebb7852017-05-25 15:40:13 -0500182 device pci 1c.0 on end # PCI Express Port 1
Youness Alaoui047475c2017-05-08 16:50:23 -0400183 device pci 1c.1 off end # PCI Express Port 2
184 device pci 1c.2 off end # PCI Express Port 3
185 device pci 1c.3 off end # PCI Express Port 4
186 device pci 1c.4 off end # PCI Express Port 5
187 device pci 1c.5 off end # PCI Express Port 6
188 device pci 1c.6 off end # PCI Express Port 7
189 device pci 1c.7 off end # PCI Express Port 8
Youness Alaouidebb7852017-05-25 15:40:13 -0500190 device pci 1d.0 on end # PCI Express Port 9
Youness Alaoui047475c2017-05-08 16:50:23 -0400191 device pci 1d.1 off end # PCI Express Port 10
192 device pci 1d.2 off end # PCI Express Port 11
193 device pci 1d.3 off end # PCI Express Port 12
194 device pci 1f.0 on
195 chip ec/purism/librem
196 device pnp 0c09.0 on end
197 end
198 end # LPC Interface
Youness Alaouidebb7852017-05-25 15:40:13 -0500199 device pci 1f.1 on end # P2SB
Youness Alaoui047475c2017-05-08 16:50:23 -0400200 device pci 1f.2 on end # Power Management Controller
201 device pci 1f.3 on end # Intel HDA
202 device pci 1f.4 on end # SMBus
203 device pci 1f.5 on end # PCH SPI
204 device pci 1f.6 off end # GbE
205 end
206end