blob: 30039d8dc204c5d45620e32f8444308e43a75ffd [file] [log] [blame]
Lee Leahyc4210412015-06-29 11:37:56 -07001chip soc/intel/skylake
2
Duncan Laurie1c2de9f2015-09-03 16:05:00 -07003 # Enable deep Sx states
Duncan Laurie1c2de9f2015-09-03 16:05:00 -07004 register "deep_s5_enable" = "1"
5 register "deep_sx_config" = "DSX_EN_LAN_WAKE_PIN"
6
7 # GPE configuration
8 # Note that GPE events called out in ASL code rely on this
9 # route. i.e. If this route changes then the affected GPE
10 # offset bits also need to be changed.
Duncan Lauried6a42f92015-09-08 16:28:21 -070011 register "gpe0_dw0" = "GPP_B"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070012 register "gpe0_dw1" = "GPP_D"
13 register "gpe0_dw2" = "GPP_E"
14
15 # EC host command range is in 0x800-0x8ff
16 register "gen1_dec" = "0x00fc0801"
17
Subrata Banik2a696c02016-02-08 17:19:10 +053018 # Enable "Intel Speed Shift Technology"
19 register "speed_shift_enable" = "1"
20
Duncan Laurie74b964e2015-09-04 10:41:02 -070021 # Enable DPTF
22 register "dptf_enable" = "1"
23
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070024 # FSP Configuration
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070025 register "EnableAzalia" = "1"
26 register "DspEnable" = "1"
27 register "IoBufferOwnership" = "3"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070028 register "SmbusEnable" = "1"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070029 register "ScsEmmcEnabled" = "1"
30 register "ScsEmmcHs400Enabled" = "1"
31 register "ScsSdCardEnabled" = "2"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070032 register "InternalGfx" = "1"
33 register "SkipExtGfxScan" = "1"
34 register "Device4Enable" = "1"
Archana Patni30f53cd2015-11-11 01:30:41 +053035 register "HeciEnabled" = "0"
haridharf991bf02015-12-04 10:41:23 +053036 register "SaGv" = "3"
Archana Patni4af905a2015-12-19 00:10:17 +053037 register "PmTimerDisabled" = "1"
Rizwan Qureshifb879982015-11-19 16:06:28 +053038
39 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
40 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
41 register "PmConfigSlpS3MinAssert" = "0x02"
42
43 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
44 register "PmConfigSlpS4MinAssert" = "0x04"
45
46 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
47 register "PmConfigSlpSusMinAssert" = "0x03"
48
49 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
50 register "PmConfigSlpAMinAssert" = "0x03"
51
52 # Determines if enable Serial IRQ. Values 0: Disabled, 1: Enabled
53 register "SerialIrqConfigSirqEnable" = "0x01"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070054
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053055 # VR Settings Configuration for 5 Domains
56 #+----------------+-------+-------+-------------+-------------+-------+
57 #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT |
58 #+----------------+-------+-------+-------------+-------------+-------+
59 #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A |
60 #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A |
61 #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A |
62 #| Psi3Enable | 1 | 1 | 1 | 1 | 1 |
63 #| Psi4Enable | 1 | 1 | 1 | 1 | 1 |
64 #| ImonSlope | 0 | 0 | 0 | 0 | 0 |
65 #| ImonOffset | 0 | 0 | 0 | 0 | 0 |
66 #| IccMax | 7A | 34A | 34A | 35A | 35A |
67 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V |
68 #+----------------+-------+-------+-------------+-------------+-------+
69 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
70 .vr_config_enable = 1, \
71 .psi1threshold = 0x50, \
72 .psi2threshold = 0x10, \
73 .psi3threshold = 0x4, \
74 .psi3enable = 1, \
75 .psi4enable = 1, \
76 .imon_slope = 0x0, \
77 .imon_offset = 0x0, \
78 .icc_max = 0x1C, \
79 .voltage_limit = 0x5F0 \
80 }"
81
82 register "domain_vr_config[VR_IA_CORE]" = "{
83 .vr_config_enable = 1, \
84 .psi1threshold = 0x50, \
85 .psi2threshold = 0x14, \
86 .psi3threshold = 0x4, \
87 .psi3enable = 1, \
88 .psi4enable = 1, \
89 .imon_slope = 0x0, \
90 .imon_offset = 0x0, \
91 .icc_max = 0x88, \
92 .voltage_limit = 0x5F0 \
93 }"
94 register "domain_vr_config[VR_RING]" = "{
95 .vr_config_enable = 1, \
96 .psi1threshold = 0x50, \
97 .psi2threshold = 0x14, \
98 .psi3threshold = 0x4, \
99 .psi3enable = 1, \
100 .psi4enable = 1, \
101 .imon_slope = 0x0, \
102 .imon_offset = 0x0, \
103 .icc_max = 0x88, \
104 .voltage_limit = 0x5F0, \
105 }"
106
107 register "domain_vr_config[VR_GT_UNSLICED]" = "{
108 .vr_config_enable = 1, \
109 .psi1threshold = 0x50, \
110 .psi2threshold = 0x14, \
111 .psi3threshold = 0x4, \
112 .psi3enable = 1, \
113 .psi4enable = 1, \
114 .imon_slope = 0x0, \
115 .imon_offset = 0x0, \
116 .icc_max = 0x8C ,\
117 .voltage_limit = 0x5F0 \
118 }"
119
120 register "domain_vr_config[VR_GT_SLICED]" = "{
121 .vr_config_enable = 1, \
122 .psi1threshold = 0x50, \
123 .psi2threshold = 0x14, \
124 .psi3threshold = 0x4, \
125 .psi3enable = 1, \
126 .psi4enable = 1, \
127 .imon_slope = 0x0, \
128 .imon_offset = 0x0, \
129 .icc_max = 0x8C, \
130 .voltage_limit = 0x5F0 \
131 }"
132
Rizwan Qureshifefce182015-11-19 16:30:18 +0530133 register "FspSkipMpInit" = "1"
134
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700135 # Enable Root port 1 and 5.
136 register "PcieRpEnable[0]" = "1"
137 register "PcieRpEnable[4]" = "1"
138 # Enable CLKREQ#
139 register "PcieRpClkReqSupport[0]" = "1"
140 register "PcieRpClkReqSupport[4]" = "1"
141 # RP 1 uses SRCCLKREQ1# while RP 5 uses SRCCLKREQ2#
142 register "PcieRpClkReqNumber[0]" = "1"
143 register "PcieRpClkReqNumber[4]" = "2"
Lee Leahyc4210412015-06-29 11:37:56 -0700144
Duncan Lauriefe866662015-10-16 13:58:11 -0700145 register "usb2_ports[0]" = "USB2_PORT_TYPE_C" # Type-C Port 1
146 register "usb2_ports[1]" = "USB2_PORT_TYPE_C" # Type-C Port 2
147 register "usb2_ports[2]" = "USB2_PORT_MID" # Bluetooth
148 register "usb2_ports[4]" = "USB2_PORT_MID" # Type-A Port (card)
149 register "usb2_ports[6]" = "USB2_PORT_FLEX" # Camera
150 register "usb2_ports[8]" = "USB2_PORT_LONG" # Type-A Port (board)
Duncan Laurie2b9595a2015-08-28 17:48:11 -0700151
Duncan Lauriefe866662015-10-16 13:58:11 -0700152 register "usb3_ports[0]" = "USB3_PORT_DEFAULT" # Type-C Port 1
153 register "usb3_ports[1]" = "USB3_PORT_DEFAULT" # Type-C Port 2
154 register "usb3_ports[2]" = "USB3_PORT_DEFAULT" # Type-A Port (card)
155 register "usb3_ports[3]" = "USB3_PORT_DEFAULT" # Type-A Port (board)
Naresh G Solanki8c78d0a2015-12-02 20:02:07 +0530156 register "SerialIoI2cVoltage[4]" = "1" # I2C4 is 1.8V
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530157
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700158 # Must leave UART0 enabled or SD/eMMC will not work as PCI
159 register "SerialIoDevMode" = "{ \
160 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
161 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
162 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
163 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
164 [PchSerialIoIndexI2C4] = PchSerialIoPci, \
165 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
166 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
167 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
168 [PchSerialIoIndexUart0] = PchSerialIoPci, \
169 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530170 [PchSerialIoIndexUart2] = PchSerialIoSkipInit, \
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700171 }"
Lee Leahyc4210412015-06-29 11:37:56 -0700172
pchandrif28929d2016-01-19 10:49:51 -0800173 # PL2 override 25W
174 register "tdp_pl2_override" = "25"
175
Subrata Banik9a8b67d2016-04-20 14:19:53 +0530176 # Send an extra VR mailbox command for the PS4 exit issue
177 register "SendVrMbxCmd" = "2"
178
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700179 device cpu_cluster 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700180 device lapic 0 on end
181 end
182 device domain 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700183 device pci 00.0 on end # Host Bridge
184 device pci 02.0 on end # Integrated Graphics Device
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700185 device pci 14.0 on end # USB xHCI
186 device pci 14.1 off end # USB xDCI (OTG)
Lee Leahyc4210412015-06-29 11:37:56 -0700187 device pci 14.2 on end # Thermal Subsystem
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700188 device pci 15.0 on end # I2C #0
189 device pci 15.1 on end # I2C #1
190 device pci 15.2 off end # I2C #2
191 device pci 15.3 off end # I2C #3
Lee Leahyc4210412015-06-29 11:37:56 -0700192 device pci 16.0 on end # Management Engine Interface 1
193 device pci 16.1 off end # Management Engine Interface 2
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700194 device pci 16.2 off end # Management Engine IDE-R
195 device pci 16.3 off end # Management Engine KT Redirection
196 device pci 16.4 off end # Management Engine Interface 3
197 device pci 17.0 off end # SATA
198 device pci 19.0 on end # UART #2
199 device pci 19.1 off end # I2C #5
200 device pci 19.2 on end # I2C #4
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700201 device pci 1c.0 on end # PCI Express Port 1
Lee Leahyc4210412015-06-29 11:37:56 -0700202 device pci 1c.1 off end # PCI Express Port 2
203 device pci 1c.2 off end # PCI Express Port 3
204 device pci 1c.3 off end # PCI Express Port 4
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700205 device pci 1c.4 on end # PCI Express Port 5
Lee Leahyc4210412015-06-29 11:37:56 -0700206 device pci 1c.5 off end # PCI Express Port 6
207 device pci 1c.6 off end # PCI Express Port 7
208 device pci 1c.7 off end # PCI Express Port 8
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700209 device pci 1d.0 off end # PCI Express Port 9
Lee Leahyc4210412015-06-29 11:37:56 -0700210 device pci 1d.1 off end # PCI Express Port 10
211 device pci 1d.2 off end # PCI Express Port 11
212 device pci 1d.3 off end # PCI Express Port 12
213 device pci 1e.0 on end # UART #0
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700214 device pci 1e.1 off end # UART #1
215 device pci 1e.2 off end # GSPI #0
216 device pci 1e.3 off end # GSPI #1
Lee Leahyc4210412015-06-29 11:37:56 -0700217 device pci 1e.4 on end # eMMC
218 device pci 1e.5 off end # SDIO
219 device pci 1e.6 on end # SDCard
220 device pci 1f.0 on
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700221 chip drivers/pc80/tpm
222 device pnp 0c31.0 on end
223 end
Lee Leahyc4210412015-06-29 11:37:56 -0700224 chip ec/google/chromeec
225 device pnp 0c09.0 on end
226 end
227 end # LPC Interface
Archana Patni30f53cd2015-11-11 01:30:41 +0530228 device pci 1f.1 on end # P2SB
Naveen Krishna Chatradhi133dcd32015-07-10 16:00:51 +0530229 device pci 1f.2 on end # Power Management Controller
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700230 device pci 1f.3 on end # Intel HDA
231 device pci 1f.4 on end # SMBus
232 device pci 1f.5 on end # PCH SPI
233 device pci 1f.6 off end # GbE
Lee Leahyc4210412015-06-29 11:37:56 -0700234 end
235end