blob: 740c3afe72cc9bcbbf0003be69eb1c83b57bef00 [file] [log] [blame]
Michał Żygowskief886c42022-09-29 00:58:43 +02001chip soc/intel/cannonlake
2 # Enable Enhanced Intel SpeedStep
3 register "eist_enable" = "1"
4
5 register "cpu_pl2_4_cfg" = "baseline"
6
7 register "gen1_dec" = "0x00fc0201"
8 register "gen2_dec" = "0x007c0a01"
9 register "gen3_dec" = "0x000c03e1"
10 register "gen4_dec" = "0x001c02e1"
11
12 # GPIO
13 register "PchUnlockGpioPads" = "1"
14 register "gpe0_dw0" = "0x2"
15 register "gpe0_dw1" = "0x3"
16 register "gpe0_dw2" = "0xd"
17
18 # FSP configuration
19 register "SaGv" = "SaGv_Enabled"
20 register "ScsEmmcHs400Enabled" = "1"
21
22 # Enable eDP device
23 register "DdiPortEdp" = "1" # Display Port
24
25 # Enable HPD for DDI ports B/C
26 register "DdiPortBHpd" = "1" # HDMI
27 register "DdiPortCHpd" = "1" # USB Type-C
28
29 # Enable DDC for DDI port B
30 register "DdiPortBDdc" = "1" # HDMI
31
32 register "PchHdaAudioLinkHda" = "1"
33
34 # Misc
35 register "AcousticNoiseMitigation" = "1"
36
37 # Power
38 register "PchPmSlpS3MinAssert" = "3" # 50ms
39 register "PchPmSlpS4MinAssert" = "1" # 1s
40 register "PchPmSlpSusMinAssert" = "2" # 500ms
41 register "PchPmSlpAMinAssert" = "4" # 2s
42
43 register "tcc_offset" = "20" # TCC of 80C
44
45 # Enable SERIRQ continuous
46 register "serirq_mode" = "SERIRQ_CONTINUOUS"
47
48 register "SkipExtGfxScan" = "1"
49
50 register "enable_c6dram" = "1"
51
52 register "SataPortsEnable[0]" = "1"
53 register "SataPortsEnable[2]" = "1"
54
55 register "PcieRpEnable[4]" = "1" # LAN1
56 register "PcieRpEnable[5]" = "1" # LAN2
57 register "PcieRpEnable[6]" = "1" # LAN3
58 register "PcieRpEnable[7]" = "1" # LAN4
59 register "PcieRpEnable[8]" = "1" # LAN5
60 register "PcieRpEnable[9]" = "1" # LAN6
61 register "PcieRpEnable[11]" = "1" # M.2 WiFi
62 register "PcieRpEnable[12]" = "1" # M.2 NVMe x4
63
64 # Enable Advanced Error Reporting for RP 5-10, 12, 13
65 register "PcieRpAdvancedErrorReporting[4]" = "1"
66 register "PcieRpAdvancedErrorReporting[5]" = "1"
67 register "PcieRpAdvancedErrorReporting[6]" = "1"
68 register "PcieRpAdvancedErrorReporting[7]" = "1"
69 register "PcieRpAdvancedErrorReporting[8]" = "1"
70 register "PcieRpAdvancedErrorReporting[9]" = "1"
71 register "PcieRpAdvancedErrorReporting[11]" = "1"
72 register "PcieRpAdvancedErrorReporting[12]" = "1"
73
74 # Enable Latency Tolerance Reporting Mechanism RP 5-10, 12, 13
75 register "PcieRpLtrEnable[4]" = "1"
76 register "PcieRpLtrEnable[5]" = "1"
77 register "PcieRpLtrEnable[6]" = "1"
78 register "PcieRpLtrEnable[7]" = "1"
79 register "PcieRpLtrEnable[8]" = "1"
80 register "PcieRpLtrEnable[9]" = "1"
81 register "PcieRpLtrEnable[11]" = "1"
82 register "PcieRpLtrEnable[12]" = "1"
83
84 register "PcieClkSrcUsage[0]" = "PCIE_CLK_FREE"
85 register "PcieClkSrcUsage[1]" = "PCIE_CLK_FREE"
86 register "PcieClkSrcUsage[2]" = "PCIE_CLK_FREE"
87 register "PcieClkSrcUsage[3]" = "PCIE_CLK_FREE"
88 register "PcieClkSrcUsage[4]" = "PCIE_CLK_FREE"
89 register "PcieClkSrcUsage[5]" = "PCIE_CLK_FREE"
90
91 # USB related
Felix Singer21b5a9a2023-10-23 07:26:28 +020092 register "usb2_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(1) |
93 USB_PORT_WAKE_ENABLE(2) |
94 USB_PORT_WAKE_ENABLE(3) |
95 USB_PORT_WAKE_ENABLE(4) |
96 USB_PORT_WAKE_ENABLE(5) |
97 USB_PORT_WAKE_ENABLE(6) |
98 USB_PORT_WAKE_ENABLE(7) |
99 USB_PORT_WAKE_ENABLE(8) |
Michał Żygowskief886c42022-09-29 00:58:43 +0200100 USB_PORT_WAKE_ENABLE(9)"
101
Felix Singer21b5a9a2023-10-23 07:26:28 +0200102 register "usb3_wake_enable_bitmap" = "USB_PORT_WAKE_ENABLE(1) |
103 USB_PORT_WAKE_ENABLE(2) |
104 USB_PORT_WAKE_ENABLE(3) |
Michał Żygowskief886c42022-09-29 00:58:43 +0200105 USB_PORT_WAKE_ENABLE(4)"
106
107 register "PchUsb2PhySusPgDisable" = "1"
108
109 register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)"
110 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)"
111 register "usb2_ports[2]" = "USB2_PORT_TYPE_C(OC_SKIP)"
112 register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)"
113 register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)"
114 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # M2 WiFi
115 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)"
116 register "usb2_ports[7]" = "USB2_PORT_MID(OC_SKIP)"
117 register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # 4G/LTE
118 register "usb2_ports[9]" = "USB2_PORT_EMPTY"
119
120 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)"
121 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)"
122 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)"
123 register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC_SKIP)"
124 register "usb3_ports[4]" = "USB3_PORT_EMPTY"
125 register "usb3_ports[5]" = "USB3_PORT_EMPTY"
126
127 register "SerialIoDevMode" = "{
128 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
129 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
130 [PchSerialIoIndexI2C2] = PchSerialIoDisabled,
131 [PchSerialIoIndexI2C3] = PchSerialIoDisabled,
132 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
133 [PchSerialIoIndexI2C5] = PchSerialIoDisabled,
134 [PchSerialIoIndexSPI0] = PchSerialIoDisabled,
135 [PchSerialIoIndexSPI1] = PchSerialIoDisabled,
136 [PchSerialIoIndexSPI2] = PchSerialIoDisabled,
137 [PchSerialIoIndexUART0] = PchSerialIoDisabled,
138 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
139 [PchSerialIoIndexUART2] = PchSerialIoDisabled,
140 }"
141
142 device cpu_cluster 0 on end
143 device domain 0 on
Felix Singer1b0114b2024-01-18 07:02:49 +0100144 device ref system_agent on end
145 device ref igpu on end
146 device ref dptf on end
147 device ref gna off end
148 device ref thermal on end
149 device ref ufs off end
150 device ref gspi2 off end
151 device ref xhci on end
152 device ref xdci off end
153 device ref sdxc off end
154 device ref i2c0 off end
155 device ref i2c1 off end
156 device ref i2c2 off end
157 device ref i2c3 off end
158 device ref heci1 on end
159 device ref heci2 off end
160 device ref csme_ider off end
161 device ref csme_ktr off end
162 device ref heci3 off end
163 device ref heci4 off end
164 device ref sata on end
165 device ref i2c4 off end
166 device ref i2c5 off end
167 device ref uart2 off end
168 device ref emmc on end
169 device ref pcie_rp1 off end
170 device ref pcie_rp2 off end
171 device ref pcie_rp3 off end
172 device ref pcie_rp4 off end
173 device ref pcie_rp5 on end # LAN1
174 device ref pcie_rp6 on end # LAN2
175 device ref pcie_rp7 on end # LAN3
176 device ref pcie_rp8 on end # LAN4
177 device ref pcie_rp9 on end # LAN5
178 device ref pcie_rp10 on end # LAN6
179 device ref pcie_rp11 off end
180 device ref pcie_rp12 on end
Michał Żygowskief886c42022-09-29 00:58:43 +0200181 smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthOther"
182 "M.2/E 2230 (M2_WIFI2)" "SlotDataBusWidth1X"
Felix Singer1b0114b2024-01-18 07:02:49 +0100183 device ref pcie_rp13 on # NVMe
Michał Żygowskief886c42022-09-29 00:58:43 +0200184 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther"
185 "M.2/M 2280 (J1)" "SlotDataBusWidth4X"
186 end
Felix Singer1b0114b2024-01-18 07:02:49 +0100187 device ref pcie_rp14 off end
188 device ref pcie_rp15 off end
189 device ref pcie_rp16 off end
190 device ref uart0 off end
191 device ref uart1 off end
192 device ref gspi0 off end
193 device ref gspi1 off end
194 device ref lpc_espi on
Michał Żygowskid99de5d2023-04-03 13:25:17 +0200195 chip superio/ite/it8784e
196 register "TMPIN1.mode" = "THERMAL_RESISTOR"
Michał Żygowskief886c42022-09-29 00:58:43 +0200197 register "TMPIN2.mode" = "THERMAL_MODE_DISABLED"
Michał Żygowskid99de5d2023-04-03 13:25:17 +0200198 register "TMPIN3.mode" = "THERMAL_PECI"
199 register "TMPIN3.offset" = "0x63"
Michał Żygowskief886c42022-09-29 00:58:43 +0200200 register "ec.vin_mask" = "VIN_ALL"
201 register "ec.smbus_24mhz" = "1"
202 register "ec.smbus_en" = "1"
203 # FAN1 is CPU fan (connector on board)
204 register "FAN1.mode" = "FAN_SMART_AUTOMATIC"
Michał Żygowskid99de5d2023-04-03 13:25:17 +0200205 register "FAN1.smart.tmpin" = " 3"
Michał Żygowskief886c42022-09-29 00:58:43 +0200206 register "FAN1.smart.tmp_off" = "40"
207 register "FAN1.smart.tmp_start" = "60"
208 register "FAN1.smart.tmp_full" = "85"
209 register "FAN1.smart.tmp_delta" = " 2"
210 register "FAN1.smart.pwm_start" = "20"
211 register "FAN1.smart.slope" = "24"
212 register "FAN2.mode" = "FAN_MODE_OFF"
213 register "FAN3.mode" = "FAN_MODE_OFF"
214 device pnp 2e.1 on # COM 1
215 io 0x60 = 0x3f8
216 irq 0x70 = 4
217 end
Michał Żygowskid99de5d2023-04-03 13:25:17 +0200218 device pnp 2e.2 on end # COM 2
Michał Żygowskief886c42022-09-29 00:58:43 +0200219 device pnp 2e.3 off end # Printer Port
220 device pnp 2e.4 on # Environment Controller
221 io 0x60 = 0xa40
222 io 0x62 = 0xa30
223 irq 0x70 = 9
Michał Żygowskid99de5d2023-04-03 13:25:17 +0200224 irq 0xf0 = 0x80 # clear 3VSB status
Michał Żygowskief886c42022-09-29 00:58:43 +0200225 end
226 device pnp 2e.5 off end # Keyboard
227 device pnp 2e.6 off end # Mouse
228 device pnp 2e.7 off end # GPIO
Michał Żygowskief886c42022-09-29 00:58:43 +0200229 device pnp 2e.a off end # CIR
Michał Żygowskief886c42022-09-29 00:58:43 +0200230 end
231 chip drivers/pc80/tpm
232 device pnp 0c31.0 on end
233 end
Felix Singer1b0114b2024-01-18 07:02:49 +0100234 end
235 device ref p2sb hidden end
236 device ref pmc hidden end
237 device ref hda on end
238 device ref smbus on end
239 device ref fast_spi on end
240 device ref gbe off end
Michał Żygowskief886c42022-09-29 00:58:43 +0200241 end
242end