blob: 5c2c66aca08850bd22ddaac54ba2fc3761f4a0af [file] [log] [blame]
Sean Rhodesab5b7b32021-10-22 14:33:27 +01001chip soc/intel/skylake
2# CPU
3 # Enable Enhanced Intel SpeedStep
4 register "eist_enable" = "1"
5
6 # Graphics
7 # IGD Displays
8 register "panel_cfg" = "{
9 .up_delay_ms = 0, // T3
10 .backlight_on_delay_ms = 0, // T7
11 .backlight_off_delay_ms = 0, // T9
12 .down_delay_ms = 0, // T10
13 .cycle_delay_ms = 500, // T12
14 .backlight_pwm_hz = 200, // PWM
15 }"
16
17 # FSP Memory
18 register "SaGv" = "SaGv_Enabled"
19
20# FSP Silicon
21 # Serial I/O
22 register "SerialIoDevMode" = "{
23 [PchSerialIoIndexI2C0] = PchSerialIoPci,
24 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
25 }"
26
27 # Power
28 register "PmConfigSlpS3MinAssert" = "2" # 50ms
29 register "PmConfigSlpS4MinAssert" = "3" # 1s
30 register "PmConfigSlpSusMinAssert" = "3" # 500ms
31 register "PmConfigSlpAMinAssert" = "3" # 2s
32
33 # Thermal
34 register "tcc_offset" = "10"
35
36 # PM Util
37 # GPE configuration
38 # Note that GPE events called out in ASL code rely on this
39 # route. i.e. If this route changes then the affected GPE
40 # offset bits also need to be changed.
41 # sudo devmem2 0xfe001920 (pmc_bar + GPIO_GPE_CFG)
42 register "gpe0_dw0" = "GPP_B"
43 register "gpe0_dw1" = "GPP_C"
44 register "gpe0_dw2" = "GPP_E"
45
46 # Enable the correct decode ranges on the LPC bus.
47 register "lpc_ioe" = "LPC_IOE_EC_4E_4F |
48 LPC_IOE_KBC_60_64 |
49 LPC_IOE_EC_62_66"
50
51# Actual device tree.
52 device cpu_cluster 0 on
53 device lapic 0 on end
54 end
55
56 device domain 0 on
57 device pci 00.0 on end # Host Bridge
58 device pci 02.0 on end # Integrated Graphics Device
59 device pci 04.0 on end # SA Thermal Device
60 device pci 14.0 on # USB xHCI
61 ### USB 2.0 Devices
62 # Motherboard USB Type C
63 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)"
64 # Motherboard USB 3.0
65 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)"
66 # Daughterboard USB 3.0
67 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)"
68 # Internal Webcam
69 register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)"
70 # Internal Bluetooth
71 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)"
72 # Daughterboard SD Card
73 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)"
74
75 ### USB 3.0 Devices
76 # Motherboard USB Type C
77 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)"
78 # Motherboard USB 3.0
79 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)"
80 # Daughterboard USB 3.0
81 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)"
82 end
83 device pci 14.1 off end # USB xDCI (OTG)
84 device pci 14.2 on end # Thermal Subsystem
85 device pci 15.0 on # I2C #0
86 chip drivers/i2c/hid
87 register "generic.hid" = ""STAR0001""
88 register "generic.desc" = ""Touchpad""
89 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C23_IRQ)"
90 register "generic.probed" = "1"
91 register "hid_desc_reg_offset" = "0x20"
92 device i2c 2c on end
93 end
94 end
95 device pci 15.1 off end # I2C1
96 device pci 15.2 off end # I2C2
97 device pci 15.3 off end # I2C3
98 device pci 16.0 on end # Management Engine Interface 1
99 device pci 16.1 off end # Management Engine Interface 2
100 device pci 16.2 off end # Management Engine IDE-R
101 device pci 16.3 off end # Management Engine KT Redirection
102 device pci 16.4 off end # Management Engine Interface 3
103 device pci 17.0 on # SATA
104 register "SataSalpSupport" = "1"
105 # Port 1
106 register "SataPortsEnable[1]" = "1"
107 register "SataPortsDevSlp[1]" = "1"
108 end
109 device pci 19.0 on end # UART #2
110 device pci 19.1 off end # I2C4
111 device pci 19.2 off end # I2C5
112 device pci 1c.0 off end # PCI Express Port 1
113 device pci 1c.1 off end # PCI Express Port 2
114 device pci 1c.2 off end # PCI Express Port 3
115 device pci 1c.3 off end # PCI Express Port 4
116 device pci 1c.4 off end # PCI Express Port 5
117 device pci 1c.5 on # PCI Express Port 6
118 register "PcieRpEnable[5]" = "1"
119 register "PcieRpClkReqSupport[5]" = "1"
120 register "PcieRpClkReqNumber[5]" = "4"
121 register "PcieRpClkSrcNumber[5]" = "4"
122 register "PcieRpLtrEnable[5]" = "1"
123 chip drivers/wifi/generic
124 device generic 0 on end
125 end
126 end
127 device pci 1c.6 off end # PCI Express Port 7
128 device pci 1c.7 off end # PCI Express Port 8
129 device pci 1d.0 on # PCI Express Port 9(SSD x4)
130 register "PcieRpEnable[8]" = "1"
131 register "PcieRpClkReqSupport[8]" = "1"
132 register "PcieRpClkReqNumber[8]" = "0"
133 register "PcieRpClkSrcNumber[8]" = "0"
134 register "PcieRpLtrEnable[8]" = "1"
135 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth4X"
136 end
137 device pci 1d.1 off end # PCI Express Port 10
138 device pci 1d.2 off end # PCI Express Port 11
139 device pci 1d.3 off end # PCI Express Port 12
140 device pci 1e.0 on end # UART #0
141 device pci 1e.1 off end # UART #1
142 device pci 1e.2 off end # GSPI #0
143 device pci 1e.3 off end # GSPI #1
144 device pci 1e.4 off end # eMMC
145 device pci 1e.5 off end # SDIO
146 device pci 1e.6 off end # SDCard
147 device pci 1f.0 on # LPC Interface
148 register "gen1_dec" = "0x000c0681"
149 register "gen2_dec" = "0x000c1641"
150 register "gen3_dec" = "0x00000069"
151 register "gen4_dec" = "0x0000006d"
152
153 chip ec/starlabs/merlin
154 # Port pair 4Eh/4Fh
155 device pnp 4e.00 on end # IO Interface
156 device pnp 4e.01 off end # Com 1
157 device pnp 4e.02 off end # Com 2
158 device pnp 4e.04 off end # System Wake-Up
159 device pnp 4e.05 off end # PS/2 Mouse
160 device pnp 4e.06 on # PS/2 Keyboard
161 io 0x60 = 0x0060
162 io 0x62 = 0x0064
163 irq 0x70 = 1
164 end
165 device pnp 4e.0a off end # Consumer IR
166 device pnp 4e.0f off end # Shared Memory/Flash Interface
167 device pnp 4e.10 off end # RTC-like Timer
168 device pnp 4e.11 off end # Power Management Channel 1
169 device pnp 4e.12 off end # Power Management Channel 2
170 device pnp 4e.13 off end # Serial Peripheral Interface
171 device pnp 4e.14 off end # Platform EC Interface
172 device pnp 4e.17 off end # Power Management Channel 3
173 device pnp 4e.18 off end # Power Management Channel 4
174 device pnp 4e.19 off end # Power Management Channel 5
175 end
176 end
177 device pci 1f.1 off end # P2SB
178 device pci 1f.2 on end # Power Management Controller
179 device pci 1f.3 on end # Intel HDA
180 device pci 1f.4 on end # SMBus
181 device pci 1f.5 on end # PCH SPI
182 device pci 1f.6 off end # GbE
183 end
184end