blob: 7993383678cc6a8389015bd6721c643e0c4b2cbb [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
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020011 device domain 0 on
Michael Niewöhner0bae5a72020-12-05 22:48:41 +010012 subsystemid 0x15d9 0x0896 inherit
Felix Singer6c83a712024-06-23 00:25:18 +020013 device ref south_xhci on
14 register "usb2_ports" = "{
15 [0] = USB2_PORT_MID(OC3), /* USB 9 (3.0) */
16 [1] = USB2_PORT_MID(OC3), /* USB 8 (3.0) */
17 [2] = USB2_PORT_MID(OC1), /* USB 3 */
18 [3] = USB2_PORT_MID(OC1), /* USB 2 */
19 [4] = USB2_PORT_MID(OC2), /* USB 1 */
20 [5] = USB2_PORT_MID(OC2), /* USB 0 */
21 [6] = USB2_PORT_MID(OC0), /* USB 5 */
22 [7] = USB2_PORT_MID(OC0), /* USB 4 */
23 [8] = USB2_PORT_MID(OC_SKIP), /* IPMI USB HUB */
24 [9] = USB2_PORT_MID(OC5), /* USB 10 (3.0) */
25 [10] = USB2_PORT_MID(OC4), /* USB 7 (3.0) */
26 [11] = USB2_PORT_MID(OC4), /* USB 6 (3.0) */
27 }"
28
29 register "usb3_ports" = "{
30 [0] = USB3_PORT_DEFAULT(OC4), /* USB 7 */
31 [1] = USB3_PORT_DEFAULT(OC4), /* USB 6 */
32 [2] = USB3_PORT_DEFAULT(OC5), /* USB 10 */
33 [3] = USB3_PORT_DEFAULT(OC3), /* USB 9 */
34 [4] = USB3_PORT_DEFAULT(OC3), /* USB 8 */
35 }"
36 end
Felix Singera03999b2023-10-23 09:01:05 +020037 device ref peg0 on
38 # Slot JPCIE6
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020039 smbios_slot_desc "SlotTypePciExpressGen3X16" "SlotLengthLong" "CPU SLOT6 PCI-E 3.0 X8(IN X16)" "SlotDataBusWidth8X"
40 end
Felix Singera03999b2023-10-23 09:01:05 +020041 device ref peg1 on
42 # Slot JPCIE7
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020043 smbios_slot_desc "SlotTypePciExpressGen3X8" "SlotLengthShort" "CPU SLOT7 PCI-E 3.0 X8" "SlotDataBusWidth8X"
44 end
Felix Singera03999b2023-10-23 09:01:05 +020045 device ref pcie_rp1 on
46 # Slot JPCIE4
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010047 register "PcieRpEnable[0]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010048 register "PcieRpLtrEnable[0]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010049 register "PcieRpAdvancedErrorReporting[0]" = "1"
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020050 smbios_slot_desc "SlotTypePciExpressGen3X8" "SlotLengthShort" "PCH SLOT4 PCI-E 3.0 X4(IN X8)" "SlotDataBusWidth4X"
51 end
Felix Singera03999b2023-10-23 09:01:05 +020052 device ref pcie_rp5 on
53 # Slot JPCIE5
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010054 register "PcieRpEnable[4]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010055 register "PcieRpLtrEnable[4]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010056 register "PcieRpAdvancedErrorReporting[4]" = "1"
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020057 smbios_slot_desc "SlotTypePciExpressGen3X8" "SlotLengthShort" "PCH SLOT5 PCI-E 3.0 X4(IN X8)" "SlotDataBusWidth4X"
58 end
Felix Singera03999b2023-10-23 09:01:05 +020059 device ref pcie_rp9 on
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010060 register "PcieRpEnable[8]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010061 register "PcieRpLtrEnable[8]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010062 register "PcieRpAdvancedErrorReporting[8]" = "1"
Michael Niewöhner0bae5a72020-12-05 22:48:41 +010063 device pci 00.0 on # GbE 1
64 subsystemid 0x15d9 0x1533
65 end
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020066 end
Felix Singera03999b2023-10-23 09:01:05 +020067 device ref pcie_rp10 on
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010068 register "PcieRpEnable[9]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010069 register "PcieRpLtrEnable[9]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010070 register "PcieRpAdvancedErrorReporting[9]" = "1"
Michael Niewöhner0bae5a72020-12-05 22:48:41 +010071 device pci 00.0 on # GbE 2
72 subsystemid 0x15d9 0x1533
73 end
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020074 end
Felix Singera03999b2023-10-23 09:01:05 +020075 device ref pcie_rp11 on
Michael Niewöhnerddd44f42020-11-24 01:23:28 +010076 register "PcieRpEnable[10]" = "1"
Michael Niewöhnerfb7a06b2020-11-24 22:47:44 +010077 register "PcieRpLtrEnable[10]" = "1"
Michael Niewöhner6bc12962020-12-05 23:00:03 +010078 register "PcieRpAdvancedErrorReporting[10]" = "1"
Michael Niewöhner7f2aaac2019-09-19 09:22:04 +020079 device pci 00.0 on # Aspeed PCI Bridge
80 device pci 00.0 on end # Aspeed 2400 VGA
81 end
82 end
Felix Singera03999b2023-10-23 09:01:05 +020083 device ref lpc_espi on
Felix Singerdcddc53f2024-06-23 03:39:24 +020084 register "gen1_dec" = "0x007c0a01" # Super IO SWC
85 register "gen2_dec" = "0x000c0ca1" # IPMI KCS
86
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