blob: aa1f9b2a6dad4449afca31044d85571188c0fb67 [file] [log] [blame]
Nicholas Sudsgaard98cec2a2024-02-05 15:53:57 +09001# SPDX-License-Identifier: GPL-2.0-only
2
3chip soc/intel/skylake
4 register "eist_enable" = "true"
5
6 device cpu_cluster 0 on end
7 device domain 0 on
8 device ref peg0 on # PCIE16X
9 # These configurations are technically for PCIe root
10 # ports. However, they are used as there is no
11 # equivalent for PEG devices.
12 register "PcieRpClkReqSupport[0]" = "true"
13 register "PcieRpClkReqNumber[0]" = "2"
14 register "PcieRpClkSrcNumber[0]" = "0"
15 end
16 device ref igpu on end
17 device ref south_xhci on
18 register "usb2_ports" = "{
19 [0] = USB2_PORT_MID(OC1), // USB30A
20 [1] = USB2_PORT_MID(OC1), // USB30B
21 [2] = USB2_PORT_MID(OC2), // F_USB30_1A
22 [3] = USB2_PORT_MID(OC2), // F_USB30_1B
23 [4] = USB2_PORT_MID(OC3), // F_USB30_2A
24 [5] = USB2_PORT_MID(OC3), // F_USB30_2B
25 [6] = USB2_PORT_MID(OC_SKIP), // M.2 Bluetooth
26 [7] = USB2_PORT_MID(OC5), // USB_LANA
27 [8] = USB2_PORT_MID(OC5), // USB_LANB
28 [9] = USB2_PORT_MID(OC_SKIP), // F_USB1 (Pins 5, 7)
29 [10] = USB2_PORT_MID(OC_SKIP), // F_USB1 (Pins 6, 8)
30 // Used by the SD/MMC reader.
31 [11] = USB2_PORT_MID(OC_SKIP), // F_USB2 (Pins 5, 7)
32 }"
33
34 register "usb3_ports" = "{
35 [0] = USB3_PORT_DEFAULT(OC1), // USB30A
36 [1] = USB3_PORT_DEFAULT(OC1), // USB30B
37 [2] = USB3_PORT_DEFAULT(OC2), // F_USB30_1A
38 [3] = USB3_PORT_DEFAULT(OC2), // F_USB30_1B
39 [4] = USB3_PORT_DEFAULT(OC3), // F_USB30_2A
40 [5] = USB3_PORT_DEFAULT(OC3), // F_USB30_2B
41 }"
42 end
43 device ref thermal on end
44 device ref heci1 on end
45 device ref sata on
46 register "SataSalpSupport" = "true"
47 register "SataPortsEnable" = "{
48 [0] = true, // SATA1
49 [1] = true, // SATA2
50 [2] = true, // SATA3
51 }"
52 end
53 device ref pcie_rp5 on # USB_LAN
54 register "PcieRpEnable[4]" = "true"
55 register "PcieRpLtrEnable[4]" = "true"
56 register "PcieRpClkReqSupport[4]" = "true"
57 register "PcieRpClkReqNumber[4]" = "5"
58 register "PcieRpClkSrcNumber[4]" = "5"
59 register "PcieRpAdvancedErrorReporting[4]" = "true"
60 end
61 device ref pcie_rp7 on # PCIE1X_2
62 register "PcieRpEnable[6]" = "true"
63 register "PcieRpLtrEnable[6]" = "true"
64 register "PcieRpClkReqSupport[6]" = "true"
65 register "PcieRpClkReqNumber[6]" = "7"
66 register "PcieRpClkSrcNumber[6]" = "7"
67 register "PcieRpAdvancedErrorReporting[6]" = "true"
68 end
69 device ref pcie_rp8 on # PCIE1X_1
70 register "PcieRpEnable[7]" = "true"
71 register "PcieRpLtrEnable[7]" = "true"
72 register "PcieRpClkReqSupport[7]" = "true"
73 register "PcieRpClkReqNumber[7]" = "8"
74 register "PcieRpClkSrcNumber[7]" = "8"
75 register "PcieRpAdvancedErrorReporting[7]" = "true"
76 end
77 device ref pcie_rp11 on # M2_WIFI
78 register "PcieRpEnable[10]" = "true"
79 register "PcieRpLtrEnable[10]" = "true"
80 register "PcieRpClkReqSupport[10]" = "true"
81 register "PcieRpClkReqNumber[10]" = "1"
82 register "PcieRpClkSrcNumber[10]" = "1"
83 register "PcieRpAdvancedErrorReporting[10]" = "true"
84 end
85 device ref pcie_rp21 on # M2_SSD
86 register "PcieRpEnable[20]" = "true"
87 register "PcieRpLtrEnable[20]" = "true"
88 register "PcieRpClkReqSupport[20]" = "true"
89 register "PcieRpClkReqNumber[20]" = "6"
90 register "PcieRpClkSrcNumber[20]" = "2"
91 register "PcieRpAdvancedErrorReporting[20]" = "true"
92 end
93 device ref lpc_espi on
94 register "serirq_mode" = "SERIRQ_CONTINUOUS"
95
96 chip superio/ite/it8629e
97 register "TMPIN1.mode" = "THERMAL_DIODE" # THER_HD
98 register "TMPIN2.mode" = "THERMAL_MODE_DISABLED"
99 # Located close to VR MOSFET.
100 register "TMPIN3.mode" = "THERMAL_DIODE"
101
102 # CPU_FAN
103 register "FAN1" = "{
104 .mode = FAN_SMART_AUTOMATIC,
105 .smart = {
106 .tmpin = 3,
107 .tmp_off = 35,
108 .tmp_start = 60,
109 .tmp_full = 85,
110 .tmp_delta = 2,
111 .pwm_start = 20,
112 .slope = 24,
113 },
114 }"
115
116 register "FAN2.mode" = "FAN_MODE_OFF" # SYS_FAN
117 register "FAN3.mode" = "FAN_MODE_OFF" # AUX1_FAN
118 # TODO: Add support for 6 fans.
119 #register "FAN6.mode" = "FAN_MODE_OFF" # AUX2_FAN
120
121 register "ec.vin_mask" = "VIN_ALL"
122
123 # Vendor values dumped using util/superiotool.
124 device pnp 2e.0 off end
125 device pnp 2e.1 on # VGA_COM1A
126 io 0x60 = 0x03f8
127 irq 0x70 = 0x04
128 irq 0xf1 = 0x50
129 end
130 device pnp 2e.2 off end
131 device pnp 2e.3 off end
132 device pnp 2e.4 on
133 io 0x60 = 0x0a30
134 io 0x62 = 0x0230
135 irq 0x70 = 0x09
136 irq 0xf0 = 0x40
137 end
138 device pnp 2e.5 on # KB_MS (PS/2 Keyboard)
139 io 0x60 = 0x0060
140 io 0x62 = 0x0064
141 irq 0x70 = 0x01
142 irq 0x71 = 0x02
143 irq 0xf0 = 0x48
144 end
145 device pnp 2e.6 on # KB_MS (PS/2 Mouse)
146 irq 0x70 = 0x0c
147 irq 0x71 = 0x02
148 end
149 device pnp 2e.7 on
150 irq 0x25 = 0x11
151 irq 0x26 = 0x04
152 irq 0x28 = 0x81
153 irq 0x2a = 0x0d
154 irq 0x2c = 0x01
155 io 0x60 = 0x0000
156 io 0x62 = 0x0a00
157 io 0x64 = 0x0000
158 irq 0x70 = 0x00
159 irq 0x71 = 0x09
160 irq 0x72 = 0x20
161 irq 0x73 = 0x38
162 irq 0xb8 = 0x11
163 irq 0xbc = 0xc0
164 irq 0xbd = 0x03
165 irq 0xc0 = 0x01
166 irq 0xc1 = 0x04
167 irq 0xc3 = 0x41
168 irq 0xc8 = 0x01
169 irq 0xc9 = 0x04
170 irq 0xcb = 0x01
171 irq 0xe9 = 0x07
172 irq 0xf0 = 0x10
173 irq 0xf4 = 0x0c
174 irq 0xf6 = 0x0e
175 irq 0xf8 = 0x08
176 irq 0xf9 = 0x02
177 irq 0xfc = 0x7c
178 end
179 device pnp 2e.8 on
180 io 0x60 = 0x0270
181 irq 0x70 = 0x08
182 end
183 device pnp 2e.a off end
184 end
185 chip drivers/pc80/tpm
186 device pnp c31.0 on end
187 end
188 end
189 device ref pmc on end
190 device ref hda on end
191 device ref smbus on end
192 device ref gbe on end # USB_LAN (maps to PCIe RP5)
193 end
194end