Angel Pons | 3bd1e3d | 2020-04-05 15:47:17 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 2 | |
Bora Guvendik | 43c3109 | 2017-04-11 16:05:23 -0700 | [diff] [blame] | 3 | #include <intelblocks/itss.h> |
Subrata Banik | e7ceae7 | 2017-03-08 17:59:40 +0530 | [diff] [blame] | 4 | #include <intelblocks/pcr.h> |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 5 | #include <soc/iomap.h> |
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 6 | #include <soc/irq.h> |
Hannah Williams | 1760cd3 | 2017-04-06 20:54:11 -0700 | [diff] [blame] | 7 | #include <soc/itss.h> |
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 8 | #include <soc/gpe.h> |
Subrata Banik | e7ceae7 | 2017-03-08 17:59:40 +0530 | [diff] [blame] | 9 | #include <soc/pcr_ids.h> |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 10 | |
Subrata Banik | 21d79ad | 2020-01-22 15:48:52 +0530 | [diff] [blame] | 11 | /* PCI IRQ assignment */ |
12 | #include "pci_irqs.asl" | ||||
13 | |||||
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 14 | /* GPIO Controller */ |
15 | #include "gpio.asl" | ||||
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 16 | |
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 17 | /* Interrupt Routing */ |
18 | #include "irqlinks.asl" | ||||
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 19 | |
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 20 | /* LPC 0:1f.0 */ |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 21 | #include "lpc.asl" |
22 | |||||
Duncan Laurie | 8996084 | 2015-11-21 18:40:19 -0800 | [diff] [blame] | 23 | /* PCH HDA */ |
24 | #include "pch_hda.asl" | ||||
25 | |||||
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 26 | /* PCIE Ports */ |
27 | #include "pcie.asl" | ||||
28 | |||||
Duncan Laurie | bf9df75 | 2015-08-27 16:03:45 -0700 | [diff] [blame] | 29 | /* PCR Access */ |
Subrata Banik | d19ebe0 | 2023-07-12 02:10:17 +0000 | [diff] [blame^] | 30 | #include <soc/intel/common/acpi/pch_pcr.asl> |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 31 | |
Duncan Laurie | e32da95 | 2015-08-27 17:09:02 -0700 | [diff] [blame] | 32 | /* PMC 0:1f.2 */ |
33 | #include "pmc.asl" | ||||
34 | |||||
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 35 | /* Serial IO */ |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 36 | #include "serialio.asl" |
37 | |||||
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 38 | /* SMBus 0:1f.3 */ |
Subrata Banik | 3b3bbd4 | 2020-10-03 21:42:50 +0530 | [diff] [blame] | 39 | #include <soc/intel/common/block/acpi/acpi/smbus.asl> |
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 40 | |
Duncan Laurie | 86f23ac | 2015-08-27 16:53:45 -0700 | [diff] [blame] | 41 | /* Storage Controllers */ |
42 | #include "scs.asl" | ||||
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 43 | |
Duncan Laurie | 86d937f | 2015-08-27 16:01:08 -0700 | [diff] [blame] | 44 | /* USB XHCI 0:14.0 */ |
45 | #include "xhci.asl" | ||||
Lee Leahy | 1d14b3e | 2015-05-12 18:23:27 -0700 | [diff] [blame] | 46 | |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 47 | Method (_OSC, 4) |
48 | { | ||||
49 | /* Check for proper GUID */ | ||||
Elyes HAOUAS | fc29afb | 2020-10-09 15:05:28 +0200 | [diff] [blame] | 50 | If (Arg0 == ToUUID ("33DB4D5B-1FF7-401C-9657-7441C03DD766")) |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 51 | { |
52 | /* Let OS control everything */ | ||||
53 | Return (Arg3) | ||||
54 | } | ||||
55 | Else | ||||
56 | { | ||||
57 | /* Unrecognized UUID */ | ||||
58 | CreateDWordField (Arg3, 0, CDW1) | ||||
Elyes HAOUAS | fc29afb | 2020-10-09 15:05:28 +0200 | [diff] [blame] | 59 | CDW1 |= 4 |
Lee Leahy | b000513 | 2015-05-12 18:19:47 -0700 | [diff] [blame] | 60 | Return (Arg3) |
61 | } | ||||
62 | } | ||||
Pratik Prajapati | 90ebf96 | 2017-10-11 16:11:43 -0700 | [diff] [blame] | 63 | |
64 | /* SGX */ | ||||
Pratik Prajapati | 90ebf96 | 2017-10-11 16:11:43 -0700 | [diff] [blame] | 65 | #include <soc/intel/common/acpi/sgx.asl> |