blob: 1b553d12e334dc597592289c2d59f5059cf11f36 [file] [log] [blame]
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +02001chip soc/intel/skylake
2
3 # GPE configuration
4 # Note that GPE events called out in ASL code rely on this
5 # route. i.e. If this route changes then the affected GPE
6 # offset bits also need to be changed.
7 register "gpe0_dw0" = "GPP_G"
8 register "gpe0_dw1" = "GPP_D"
9 register "gpe0_dw2" = "GPP_E"
10
11 register "gen1_dec" = "0x007c0a01" # Super IO SWC
12 register "gen2_dec" = "0x000c0ca1" # IPMI KCS
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020013
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020014 device domain 0 on
Michael Niewöhner0bae5a72020-12-05 22:48:41 +010015 subsystemid 0x15d9 0x0896 inherit
Felix Singer6c83a712024-06-23 00:25:18 +020016 device ref south_xhci on
17 register "usb2_ports" = "{
18 [0] = USB2_PORT_MID(OC3), /* USB 9 (3.0) */
19 [1] = USB2_PORT_MID(OC3), /* USB 8 (3.0) */
20 [2] = USB2_PORT_MID(OC1), /* USB 3 */
21 [3] = USB2_PORT_MID(OC1), /* USB 2 */
22 [4] = USB2_PORT_MID(OC2), /* USB 1 */
23 [5] = USB2_PORT_MID(OC2), /* USB 0 */
24 [6] = USB2_PORT_MID(OC0), /* USB 5 */
25 [7] = USB2_PORT_MID(OC0), /* USB 4 */
26 [8] = USB2_PORT_MID(OC_SKIP), /* IPMI USB HUB */
27 [9] = USB2_PORT_MID(OC5), /* USB 10 (3.0) */
28 [10] = USB2_PORT_MID(OC4), /* USB 7 (3.0) */
29 [11] = USB2_PORT_MID(OC4), /* USB 6 (3.0) */
30 }"
31
32 register "usb3_ports" = "{
33 [0] = USB3_PORT_DEFAULT(OC4), /* USB 7 */
34 [1] = USB3_PORT_DEFAULT(OC4), /* USB 6 */
35 [2] = USB3_PORT_DEFAULT(OC5), /* USB 10 */
36 [3] = USB3_PORT_DEFAULT(OC3), /* USB 9 */
37 [4] = USB3_PORT_DEFAULT(OC3), /* USB 8 */
38 }"
39 end
Felix Singera03999b2023-10-23 09:01:05 +020040 device ref peg0 on
41 # Slot JPCIE6
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020042 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthLong" "CPU SLOT6 PCI-E 3.0 X8(IN X16)" "SlotDataBusWidth8X"
43 end
Felix Singera03999b2023-10-23 09:01:05 +020044 device ref peg1 on
45 # Slot JPCIE7
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020046 smbios_slot_desc "SlotTypePciExpressGen3X8" "SlotLengthShort" "CPU SLOT7 PCI-E 3.0 X8" "SlotDataBusWidth8X"
47 end
Felix Singera03999b2023-10-23 09:01:05 +020048 device ref pcie_rp1 on
49 # Slot JPCIE4
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010050 register "PcieRpEnable[0]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010051 register "PcieRpLtrEnable[0]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010052 register "PcieRpAdvancedErrorReporting[0]" = "1"
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020053 smbios_slot_desc "SlotTypePciExpressGen3X8" "SlotLengthShort" "PCH SLOT4 PCI-E 3.0 X4(IN X8)" "SlotDataBusWidth4X"
54 end
Felix Singera03999b2023-10-23 09:01:05 +020055 device ref pcie_rp5 on
56 # Slot JPCIE5
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010057 register "PcieRpEnable[4]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010058 register "PcieRpLtrEnable[4]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010059 register "PcieRpAdvancedErrorReporting[4]" = "1"
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020060 smbios_slot_desc "SlotTypePciExpressGen3X8" "SlotLengthShort" "PCH SLOT5 PCI-E 3.0 X4(IN X8)" "SlotDataBusWidth4X"
61 end
Felix Singera03999b2023-10-23 09:01:05 +020062 device ref pcie_rp9 on
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010063 register "PcieRpEnable[8]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010064 register "PcieRpLtrEnable[8]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010065 register "PcieRpAdvancedErrorReporting[8]" = "1"
Michael Niewöhner0bae5a72020-12-05 22:48:41 +010066 device pci 00.0 on # GbE 1
67 subsystemid 0x15d9 0x1533
68 end
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020069 end
Felix Singera03999b2023-10-23 09:01:05 +020070 device ref pcie_rp10 on
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010071 register "PcieRpEnable[9]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010072 register "PcieRpLtrEnable[9]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010073 register "PcieRpAdvancedErrorReporting[9]" = "1"
Michael Niewöhner0bae5a72020-12-05 22:48:41 +010074 device pci 00.0 on # GbE 2
75 subsystemid 0x15d9 0x1533
76 end
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020077 end
Felix Singera03999b2023-10-23 09:01:05 +020078 device ref pcie_rp11 on
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010079 register "PcieRpEnable[10]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010080 register "PcieRpLtrEnable[10]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010081 register "PcieRpAdvancedErrorReporting[10]" = "1"
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020082 device pci 00.0 on # Aspeed PCI Bridge
83 device pci 00.0 on end # Aspeed 2400 VGA
84 end
85 end
Felix Singera03999b2023-10-23 09:01:05 +020086 device ref lpc_espi on
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020087 chip drivers/ipmi
Michael Niewöhner961ceff2020-11-23 13:31:30 +010088 use pch_gpio as gpio_dev
89 register "bmc_jumper_gpio" = "GPP_D22" # JPB1
Michael Niewöhner8281a532020-11-08 19:32:13 +010090 register "post_complete_gpio" = "GPP_B20"
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020091 # On cold boot it takes a while for the BMC to start the IPMI service
92 register "wait_for_bmc" = "1"
93 register "bmc_boot_timeout" = "60"
94 device pnp ca2.0 on end # IPMI KCS
95 end
96 chip superio/common
97 device pnp 2e.0 on
98 chip superio/aspeed/ast2400
99 device pnp 2e.2 on # SUART1 / COM1 (ext)
100 io 0x60 = 0x3f8
101 irq 0x70 = 4
Michael Niewöhner1c8e4642020-02-23 22:51:05 +0100102 drq 0xf0 = 0x00
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +0200103 end
104 device pnp 2e.3 on # SUART2 / COM2 (int)
105 io 0x60 = 0x2f8
106 irq 0x70 = 3
Michael Niewöhner1c8e4642020-02-23 22:51:05 +0100107 drq 0xf0 = 0x00
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +0200108 end
109 device pnp 2e.4 on # SWC
110 io 0x60 = 0xa00
111 io 0x62 = 0xa10
112 io 0x64 = 0xa20
113 io 0x66 = 0xa30
Michael Niewöhner2a28c812020-07-25 23:47:44 +0200114 irq 0x70 = 0x00
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +0200115 end
116 device pnp 2e.5 off end # KBC
Michael Niewöhner2a28c812020-07-25 23:47:44 +0200117 device pnp 2e.7 on # GPIO
118 irq 0x70 = 0x00
119 end
Michael Niewöhner68241732020-02-10 19:21:22 +0100120 device pnp 2e.b off end # SUART3
121 device pnp 2e.c off end # SUART4
Michael Niewöhner2a28c812020-07-25 23:47:44 +0200122 device pnp 2e.d on # iLPC2AHB
123 irq 0x70 = 0x00
124 end
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +0200125 device pnp 2e.e on # Mailbox
126 io 0x60 = 0xa40
127 irq 0x70 = 0x00
128 end
129 end
130 end
131 end
132 end
133 end
134end