blob: 73eced13b81ea30c7956ef617f5e185022e52bb9 [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
Duncan Laurie74b964e2015-09-04 10:41:02 -070018 # Enable DPTF
19 register "dptf_enable" = "1"
20
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070021 # FSP Configuration
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070022 register "EnableAzalia" = "1"
23 register "DspEnable" = "1"
24 register "IoBufferOwnership" = "3"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070025 register "SmbusEnable" = "1"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070026 register "ScsEmmcEnabled" = "1"
27 register "ScsEmmcHs400Enabled" = "1"
28 register "ScsSdCardEnabled" = "2"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070029 register "InternalGfx" = "1"
30 register "SkipExtGfxScan" = "1"
31 register "Device4Enable" = "1"
Archana Patni30f53cd2015-11-11 01:30:41 +053032 register "HeciEnabled" = "0"
haridharf991bf02015-12-04 10:41:23 +053033 register "SaGv" = "3"
Rizwan Qureshifb879982015-11-19 16:06:28 +053034
35 # Enabling SLP_S3#, SLP_S4#, SLP_SUS and SLP_A Stretch
36 # SLP_S3 Minimum Assertion Width. Values 0: 60us, 1: 1ms, 2: 50ms, 3: 2s
37 register "PmConfigSlpS3MinAssert" = "0x02"
38
39 # SLP_S4 Minimum Assertion Width. Values 0: default, 1: 1s, 2: 2s, 3: 3s, 4: 4s
40 register "PmConfigSlpS4MinAssert" = "0x04"
41
42 # SLP_SUS Minimum Assertion Width. Values 0: 0ms, 1: 500ms, 2: 1s, 3: 4s
43 register "PmConfigSlpSusMinAssert" = "0x03"
44
45 # SLP_A Minimum Assertion Width. Values 0: 0ms, 1: 4s, 2: 98ms, 3: 2s
46 register "PmConfigSlpAMinAssert" = "0x03"
47
48 # Determines if enable Serial IRQ. Values 0: Disabled, 1: Enabled
49 register "SerialIrqConfigSirqEnable" = "0x01"
Duncan Laurie1c2de9f2015-09-03 16:05:00 -070050
Rizwan Qureshi3fc42772015-11-20 11:47:40 +053051 # VR Settings Configuration for 5 Domains
52 #+----------------+-------+-------+-------------+-------------+-------+
53 #| Domain/Setting | SA | IA | Ring Sliced | GT Unsliced | GT |
54 #+----------------+-------+-------+-------------+-------------+-------+
55 #| Psi1Threshold | 20A | 20A | 20A | 20A | 20A |
56 #| Psi2Threshold | 4A | 5A | 5A | 5A | 5A |
57 #| Psi3Threshold | 1A | 1A | 1A | 1A | 1A |
58 #| Psi3Enable | 1 | 1 | 1 | 1 | 1 |
59 #| Psi4Enable | 1 | 1 | 1 | 1 | 1 |
60 #| ImonSlope | 0 | 0 | 0 | 0 | 0 |
61 #| ImonOffset | 0 | 0 | 0 | 0 | 0 |
62 #| IccMax | 7A | 34A | 34A | 35A | 35A |
63 #| VrVoltageLimit | 1.52V | 1.52V | 1.52V | 1.52V | 1.52V |
64 #+----------------+-------+-------+-------------+-------------+-------+
65 register "domain_vr_config[VR_SYSTEM_AGENT]" = "{
66 .vr_config_enable = 1, \
67 .psi1threshold = 0x50, \
68 .psi2threshold = 0x10, \
69 .psi3threshold = 0x4, \
70 .psi3enable = 1, \
71 .psi4enable = 1, \
72 .imon_slope = 0x0, \
73 .imon_offset = 0x0, \
74 .icc_max = 0x1C, \
75 .voltage_limit = 0x5F0 \
76 }"
77
78 register "domain_vr_config[VR_IA_CORE]" = "{
79 .vr_config_enable = 1, \
80 .psi1threshold = 0x50, \
81 .psi2threshold = 0x14, \
82 .psi3threshold = 0x4, \
83 .psi3enable = 1, \
84 .psi4enable = 1, \
85 .imon_slope = 0x0, \
86 .imon_offset = 0x0, \
87 .icc_max = 0x88, \
88 .voltage_limit = 0x5F0 \
89 }"
90 register "domain_vr_config[VR_RING]" = "{
91 .vr_config_enable = 1, \
92 .psi1threshold = 0x50, \
93 .psi2threshold = 0x14, \
94 .psi3threshold = 0x4, \
95 .psi3enable = 1, \
96 .psi4enable = 1, \
97 .imon_slope = 0x0, \
98 .imon_offset = 0x0, \
99 .icc_max = 0x88, \
100 .voltage_limit = 0x5F0, \
101 }"
102
103 register "domain_vr_config[VR_GT_UNSLICED]" = "{
104 .vr_config_enable = 1, \
105 .psi1threshold = 0x50, \
106 .psi2threshold = 0x14, \
107 .psi3threshold = 0x4, \
108 .psi3enable = 1, \
109 .psi4enable = 1, \
110 .imon_slope = 0x0, \
111 .imon_offset = 0x0, \
112 .icc_max = 0x8C ,\
113 .voltage_limit = 0x5F0 \
114 }"
115
116 register "domain_vr_config[VR_GT_SLICED]" = "{
117 .vr_config_enable = 1, \
118 .psi1threshold = 0x50, \
119 .psi2threshold = 0x14, \
120 .psi3threshold = 0x4, \
121 .psi3enable = 1, \
122 .psi4enable = 1, \
123 .imon_slope = 0x0, \
124 .imon_offset = 0x0, \
125 .icc_max = 0x8C, \
126 .voltage_limit = 0x5F0 \
127 }"
128
Rizwan Qureshifefce182015-11-19 16:30:18 +0530129 register "FspSkipMpInit" = "1"
130
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700131 # Enable Root port 1 and 5.
132 register "PcieRpEnable[0]" = "1"
133 register "PcieRpEnable[4]" = "1"
134 # Enable CLKREQ#
135 register "PcieRpClkReqSupport[0]" = "1"
136 register "PcieRpClkReqSupport[4]" = "1"
137 # RP 1 uses SRCCLKREQ1# while RP 5 uses SRCCLKREQ2#
138 register "PcieRpClkReqNumber[0]" = "1"
139 register "PcieRpClkReqNumber[4]" = "2"
Lee Leahyc4210412015-06-29 11:37:56 -0700140
Duncan Lauriefe866662015-10-16 13:58:11 -0700141 register "usb2_ports[0]" = "USB2_PORT_TYPE_C" # Type-C Port 1
142 register "usb2_ports[1]" = "USB2_PORT_TYPE_C" # Type-C Port 2
143 register "usb2_ports[2]" = "USB2_PORT_MID" # Bluetooth
144 register "usb2_ports[4]" = "USB2_PORT_MID" # Type-A Port (card)
145 register "usb2_ports[6]" = "USB2_PORT_FLEX" # Camera
146 register "usb2_ports[8]" = "USB2_PORT_LONG" # Type-A Port (board)
Duncan Laurie2b9595a2015-08-28 17:48:11 -0700147
Duncan Lauriefe866662015-10-16 13:58:11 -0700148 register "usb3_ports[0]" = "USB3_PORT_DEFAULT" # Type-C Port 1
149 register "usb3_ports[1]" = "USB3_PORT_DEFAULT" # Type-C Port 2
150 register "usb3_ports[2]" = "USB3_PORT_DEFAULT" # Type-A Port (card)
151 register "usb3_ports[3]" = "USB3_PORT_DEFAULT" # Type-A Port (board)
Naresh G Solanki8c78d0a2015-12-02 20:02:07 +0530152 register "SerialIoI2cVoltage[4]" = "1" # I2C4 is 1.8V
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530153
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700154 # Must leave UART0 enabled or SD/eMMC will not work as PCI
155 register "SerialIoDevMode" = "{ \
156 [PchSerialIoIndexI2C0] = PchSerialIoPci, \
157 [PchSerialIoIndexI2C1] = PchSerialIoPci, \
158 [PchSerialIoIndexI2C2] = PchSerialIoDisabled, \
159 [PchSerialIoIndexI2C3] = PchSerialIoDisabled, \
160 [PchSerialIoIndexI2C4] = PchSerialIoPci, \
161 [PchSerialIoIndexI2C5] = PchSerialIoDisabled, \
162 [PchSerialIoIndexSpi0] = PchSerialIoDisabled, \
163 [PchSerialIoIndexSpi1] = PchSerialIoDisabled, \
164 [PchSerialIoIndexUart0] = PchSerialIoPci, \
165 [PchSerialIoIndexUart1] = PchSerialIoDisabled, \
Rizwan Qureshi9cd8e5a2015-10-05 19:13:01 +0530166 [PchSerialIoIndexUart2] = PchSerialIoSkipInit, \
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700167 }"
Lee Leahyc4210412015-06-29 11:37:56 -0700168
pchandrif28929d2016-01-19 10:49:51 -0800169 # PL2 override 25W
170 register "tdp_pl2_override" = "25"
171
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700172 device cpu_cluster 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700173 device lapic 0 on end
174 end
175 device domain 0 on
Lee Leahyc4210412015-06-29 11:37:56 -0700176 device pci 00.0 on end # Host Bridge
177 device pci 02.0 on end # Integrated Graphics Device
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700178 device pci 14.0 on end # USB xHCI
179 device pci 14.1 off end # USB xDCI (OTG)
Lee Leahyc4210412015-06-29 11:37:56 -0700180 device pci 14.2 on end # Thermal Subsystem
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700181 device pci 15.0 on end # I2C #0
182 device pci 15.1 on end # I2C #1
183 device pci 15.2 off end # I2C #2
184 device pci 15.3 off end # I2C #3
Lee Leahyc4210412015-06-29 11:37:56 -0700185 device pci 16.0 on end # Management Engine Interface 1
186 device pci 16.1 off end # Management Engine Interface 2
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700187 device pci 16.2 off end # Management Engine IDE-R
188 device pci 16.3 off end # Management Engine KT Redirection
189 device pci 16.4 off end # Management Engine Interface 3
190 device pci 17.0 off end # SATA
191 device pci 19.0 on end # UART #2
192 device pci 19.1 off end # I2C #5
193 device pci 19.2 on end # I2C #4
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700194 device pci 1c.0 on end # PCI Express Port 1
Lee Leahyc4210412015-06-29 11:37:56 -0700195 device pci 1c.1 off end # PCI Express Port 2
196 device pci 1c.2 off end # PCI Express Port 3
197 device pci 1c.3 off end # PCI Express Port 4
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700198 device pci 1c.4 on end # PCI Express Port 5
Lee Leahyc4210412015-06-29 11:37:56 -0700199 device pci 1c.5 off end # PCI Express Port 6
200 device pci 1c.6 off end # PCI Express Port 7
201 device pci 1c.7 off end # PCI Express Port 8
Pratik Prajapatif1acb9b2015-08-13 15:21:37 -0700202 device pci 1d.0 off end # PCI Express Port 9
Lee Leahyc4210412015-06-29 11:37:56 -0700203 device pci 1d.1 off end # PCI Express Port 10
204 device pci 1d.2 off end # PCI Express Port 11
205 device pci 1d.3 off end # PCI Express Port 12
206 device pci 1e.0 on end # UART #0
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700207 device pci 1e.1 off end # UART #1
208 device pci 1e.2 off end # GSPI #0
209 device pci 1e.3 off end # GSPI #1
Lee Leahyc4210412015-06-29 11:37:56 -0700210 device pci 1e.4 on end # eMMC
211 device pci 1e.5 off end # SDIO
212 device pci 1e.6 on end # SDCard
213 device pci 1f.0 on
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700214 chip drivers/pc80/tpm
215 device pnp 0c31.0 on end
216 end
Lee Leahyc4210412015-06-29 11:37:56 -0700217 chip ec/google/chromeec
218 device pnp 0c09.0 on end
219 end
220 end # LPC Interface
Archana Patni30f53cd2015-11-11 01:30:41 +0530221 device pci 1f.1 on end # P2SB
Naveen Krishna Chatradhi133dcd32015-07-10 16:00:51 +0530222 device pci 1f.2 on end # Power Management Controller
Duncan Laurie1c2de9f2015-09-03 16:05:00 -0700223 device pci 1f.3 on end # Intel HDA
224 device pci 1f.4 on end # SMBus
225 device pci 1f.5 on end # PCH SPI
226 device pci 1f.6 off end # GbE
Lee Leahyc4210412015-06-29 11:37:56 -0700227 end
228end