blob: c3a9567ccfe62589a667f7a0cf0ed7fecfb9aeae [file] [log] [blame]
Youness Alaoui047475c2017-05-08 16:50:23 -04001chip soc/intel/skylake
2
Benjamin Doronac08c812020-04-04 05:58:54 +00003 # IGD Displays
4 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
5
Michael Niewöhner97e21d32020-12-28 00:49:33 +01006 register "panel_cfg" = "{
7 .up_delay_ms = 200,
8 .down_delay_ms = 50,
9 .cycle_delay_ms = 500,
10 .backlight_on_delay_ms = 1,
11 .backlight_off_delay_ms = 200,
12 .backlight_pwm_hz = 200,
13 }"
14
Youness Alaoui047475c2017-05-08 16:50:23 -040015 register "deep_s3_enable_ac" = "0"
16 register "deep_s3_enable_dc" = "0"
Youness Alaouic5b96582017-06-19 20:47:27 -040017 register "deep_s5_enable_ac" = "0"
18 register "deep_s5_enable_dc" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040019 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
20
Youness Alaoui0601f1e2018-02-09 18:44:45 -050021 register "eist_enable" = "1"
Youness Alaoui0601f1e2018-02-09 18:44:45 -050022
Youness Alaouicb8f04d2018-03-02 16:12:04 -050023 # Set the Thermal Control Circuit (TCC) activaction value to 95C
24 # even though FSP integration guide says to set it to 100C for SKL-U
25 # (offset at 0), because when the TCC activates at 100C, the CPU
26 # will have already shut itself down from overheating protection.
27 register "tcc_offset" = "5" # TCC of 95C
28
Youness Alaoui047475c2017-05-08 16:50:23 -040029 # GPE configuration
30 # Note that GPE events called out in ASL code rely on this
31 # route. i.e. If this route changes then the affected GPE
32 # offset bits also need to be changed.
Youness Alaoui34a30a62017-05-25 13:25:41 -050033 register "gpe0_dw0" = "GPP_C"
Youness Alaoui047475c2017-05-08 16:50:23 -040034 register "gpe0_dw1" = "GPP_D"
35 register "gpe0_dw2" = "GPP_E"
36
Youness Alaoui6aa28d92018-03-13 16:53:30 -040037 # EC host command ranges are in 0x380-0x383 & 0x80-0x8f
38 register "gen1_dec" = "0x00000381"
39 register "gen2_dec" = "0x000c0081"
Youness Alaoui047475c2017-05-08 16:50:23 -040040
Youness Alaoui3f42a26b2018-03-20 18:32:23 -040041 # Disable DPTF
42 register "dptf_enable" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040043
44 # FSP Configuration
Youness Alaoui047475c2017-05-08 16:50:23 -040045 register "SataSalpSupport" = "0"
46 register "SataMode" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050047 register "SataPortsEnable[0]" = "1"
Youness Alaouic5b96582017-06-19 20:47:27 -040048 register "SataPortsEnable[1]" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050049 register "SataPortsEnable[2]" = "1"
Youness Alaouic5b96582017-06-19 20:47:27 -040050 register "SataPortsDevSlp[0]" = "0"
51 register "SataPortsDevSlp[2]" = "0"
Youness Alaouieacac202017-05-17 17:16:09 -040052 register "DspEnable" = "0"
53 register "IoBufferOwnership" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040054 register "SsicPortEnable" = "0"
Youness Alaoui9d8cd502017-05-25 15:30:35 -050055 register "ScsEmmcHs400Enabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040056 register "SkipExtGfxScan" = "1"
Youness Alaoui047475c2017-05-08 16:50:23 -040057 register "HeciEnabled" = "0"
Youness Alaoui047475c2017-05-08 16:50:23 -040058 register "SaGv" = "3"
Elyes HAOUASb0f19882018-06-09 11:59:00 +020059 register "PmConfigSlpS3MinAssert" = "2" # 50ms
60 register "PmConfigSlpS4MinAssert" = "1" # 1s
61 register "PmConfigSlpSusMinAssert" = "3" # 500ms
62 register "PmConfigSlpAMinAssert" = "3" # 2s
Youness Alaoui047475c2017-05-08 16:50:23 -040063
Nico Huber44e89af2019-02-23 19:24:51 +010064 # EC/KBC requires continuous mode
65 register "serirq_mode" = "SERIRQ_CONTINUOUS"
66
Matt DeVillierfb1cd092017-06-22 15:54:07 -040067 # VR Settings Configuration for 4 Domains
Youness Alaoui3f42a26b2018-03-20 18:32:23 -040068 #+----------------+-----------+-----------+-------------+----------+
69 #| Domain/Setting | SA | IA | GT Unsliced | GT |
70 #+----------------+-----------+-----------+-------------+----------+
71 #| Psi1Threshold | 20A | 20A | 20A | 20A |
72 #| Psi2Threshold | 4A | 5A | 5A | 5A |
73 #| Psi3Threshold | 1A | 1A | 1A | 1A |
74 #| Psi3Enable | 1 | 1 | 1 | 1 |
75 #| Psi4Enable | 1 | 1 | 1 | 1 |
76 #| ImonSlope | 0 | 0 | 0 | 0 |
77 #| ImonOffset | 0 | 0 | 0 | 0 |
78 #| IccMax | 7A | 34A | 35A | 35A |
79 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V |
80 #| AC LoadLine | 15 mOhm | 5.7 mOhm | 5.2 mOhm | 5.2 mOhm |
81 #| DC LoadLine | 14.3 mOhm | 4.83 mOhm | 4.2 mOhm | 4.2 mOhm |
82 #+----------------+-----------+-----------+-------------+----------+
Youness Alaoui047475c2017-05-08 16:50:23 -040083 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
84 .vr_config_enable = 1,
85 .psi1threshold = VR_CFG_AMP(20),
86 .psi2threshold = VR_CFG_AMP(4),
87 .psi3threshold = VR_CFG_AMP(1),
88 .psi3enable = 1,
89 .psi4enable = 1,
90 .imon_slope = 0x0,
91 .imon_offset = 0x0,
92 .icc_max = VR_CFG_AMP(7),
93 .voltage_limit = 1520,
Youness Alaoui3f42a26b2018-03-20 18:32:23 -040094 .ac_loadline = 1500,
95 .dc_loadline = 1430,
Youness Alaoui047475c2017-05-08 16:50:23 -040096 }"
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,
Youness Alaoui3f42a26b2018-03-20 18:32:23 -0400109 .ac_loadline = 570,
110 .dc_loadline = 483,
Youness Alaoui047475c2017-05-08 16:50:23 -0400111 }"
112
Youness Alaoui047475c2017-05-08 16:50:23 -0400113 register "domain_vr_config[VR_GT_UNSLICED]" = "{
114 .vr_config_enable = 1,
115 .psi1threshold = VR_CFG_AMP(20),
116 .psi2threshold = VR_CFG_AMP(5),
117 .psi3threshold = VR_CFG_AMP(1),
118 .psi3enable = 1,
119 .psi4enable = 1,
120 .imon_slope = 0x0,
121 .imon_offset = 0x0,
122 .icc_max = VR_CFG_AMP(35),
123 .voltage_limit = 1520,
Youness Alaoui3f42a26b2018-03-20 18:32:23 -0400124 .ac_loadline = 520,
125 .dc_loadline = 420,
Youness Alaoui047475c2017-05-08 16:50:23 -0400126 }"
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,
Youness Alaoui3f42a26b2018-03-20 18:32:23 -0400139 .ac_loadline = 520,
140 .dc_loadline = 420,
Youness Alaoui047475c2017-05-08 16:50:23 -0400141 }"
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
Matt DeVillier2ae27422017-05-25 15:53:29 -0500147 # PL2 override 25W
Sumeet R Pawnikar97c54642020-05-10 01:24:11 +0530148 register "power_limits_config" = "{
149 .tdp_pl2_override = 25,
150 }"
Youness Alaoui047475c2017-05-08 16:50:23 -0400151
Matt DeVillier2ae27422017-05-25 15:53:29 -0500152 # Send an extra VR mailbox command for the PS4 exit issue
153 register "SendVrMbxCmd" = "2"
Youness Alaoui047475c2017-05-08 16:50:23 -0400154
Subrata Banikc204aaa2017-08-17 15:49:58 +0530155 # Lock Down
Subrata Banikc4986eb2018-05-09 14:55:09 +0530156 register "common_soc_config" = "{
157 .chipset_lockdown = CHIPSET_LOCKDOWN_COREBOOT,
158 }"
Subrata Banikc204aaa2017-08-17 15:49:58 +0530159
Youness Alaoui047475c2017-05-08 16:50:23 -0400160 device cpu_cluster 0 on
161 device lapic 0 on end
162 end
163 device domain 0 on
164 device pci 00.0 on end # Host Bridge
165 device pci 02.0 on end # Integrated Graphics Device
Felix Singer9c1c0092020-07-29 20:48:08 +0200166 device pci 04.0 on end # SA thermal subsystem
Youness Alaoui047475c2017-05-08 16:50:23 -0400167 device pci 14.0 on end # USB xHCI
Youness Alaouidebb7852017-05-25 15:40:13 -0500168 device pci 14.1 on end # USB xDCI (OTG)
Youness Alaoui047475c2017-05-08 16:50:23 -0400169 device pci 14.2 on end # Thermal Subsystem
Felix Singere2186672020-07-29 23:20:52 +0200170 device pci 14.3 off end # Camera
Youness Alaoui047475c2017-05-08 16:50:23 -0400171 device pci 16.0 on end # Management Engine Interface 1
172 device pci 16.1 off end # Management Engine Interface 2
173 device pci 16.2 off end # Management Engine IDE-R
174 device pci 16.3 off end # Management Engine KT Redirection
175 device pci 16.4 off end # Management Engine Interface 3
176 device pci 17.0 on end # SATA
Youness Alaouidebb7852017-05-25 15:40:13 -0500177 device pci 1c.0 on end # PCI Express Port 1
Youness Alaoui047475c2017-05-08 16:50:23 -0400178 device pci 1c.1 off end # PCI Express Port 2
179 device pci 1c.2 off end # PCI Express Port 3
180 device pci 1c.3 off end # PCI Express Port 4
181 device pci 1c.4 off end # PCI Express Port 5
182 device pci 1c.5 off end # PCI Express Port 6
183 device pci 1c.6 off end # PCI Express Port 7
184 device pci 1c.7 off end # PCI Express Port 8
Youness Alaouidebb7852017-05-25 15:40:13 -0500185 device pci 1d.0 on end # PCI Express Port 9
Youness Alaoui047475c2017-05-08 16:50:23 -0400186 device pci 1d.1 off end # PCI Express Port 10
187 device pci 1d.2 off end # PCI Express Port 11
188 device pci 1d.3 off end # PCI Express Port 12
Felix Singer52919522020-07-29 21:44:36 +0200189 device pci 1e.6 off end # SDXC
Youness Alaoui047475c2017-05-08 16:50:23 -0400190 device pci 1f.0 on
Elyes HAOUASb0f19882018-06-09 11:59:00 +0200191 chip drivers/pc80/tpm
192 device pnp 0c31.0 on end
193 end
Youness Alaoui047475c2017-05-08 16:50:23 -0400194 end # LPC Interface
Youness Alaouidebb7852017-05-25 15:40:13 -0500195 device pci 1f.1 on end # P2SB
Youness Alaoui047475c2017-05-08 16:50:23 -0400196 device pci 1f.2 on end # Power Management Controller
197 device pci 1f.3 on end # Intel HDA
198 device pci 1f.4 on end # SMBus
199 device pci 1f.5 on end # PCH SPI
200 device pci 1f.6 off end # GbE
201 end
202end