blob: a2ab35c2dac10f1a76116f5e8b8fc990928d6221 [file] [log] [blame]
Angel Pons3bd1e3d2020-04-05 15:47:17 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Lee Leahyb0005132015-05-12 18:19:47 -07002
Bora Guvendik43c31092017-04-11 16:05:23 -07003#include <intelblocks/itss.h>
Subrata Banike7ceae72017-03-08 17:59:40 +05304#include <intelblocks/pcr.h>
Lee Leahyb0005132015-05-12 18:19:47 -07005#include <soc/iomap.h>
Duncan Laurie86d937f2015-08-27 16:01:08 -07006#include <soc/irq.h>
Hannah Williams1760cd32017-04-06 20:54:11 -07007#include <soc/itss.h>
Duncan Laurie86d937f2015-08-27 16:01:08 -07008#include <soc/gpe.h>
Subrata Banike7ceae72017-03-08 17:59:40 +05309#include <soc/pcr_ids.h>
Lee Leahyb0005132015-05-12 18:19:47 -070010
Subrata Banik21d79ad2020-01-22 15:48:52 +053011/* PCI IRQ assignment */
12#include "pci_irqs.asl"
13
Duncan Laurie86d937f2015-08-27 16:01:08 -070014/* GPIO Controller */
15#include "gpio.asl"
Lee Leahyb0005132015-05-12 18:19:47 -070016
Duncan Laurie86d937f2015-08-27 16:01:08 -070017/* Interrupt Routing */
18#include "irqlinks.asl"
Lee Leahyb0005132015-05-12 18:19:47 -070019
Duncan Laurie86d937f2015-08-27 16:01:08 -070020/* LPC 0:1f.0 */
Lee Leahyb0005132015-05-12 18:19:47 -070021#include "lpc.asl"
22
Duncan Laurie89960842015-11-21 18:40:19 -080023/* PCH HDA */
24#include "pch_hda.asl"
25
Duncan Laurie86d937f2015-08-27 16:01:08 -070026/* PCIE Ports */
27#include "pcie.asl"
28
Duncan Lauriebf9df752015-08-27 16:03:45 -070029/* PCR Access */
Subrata Banikd19ebe02023-07-12 02:10:17 +000030#include <soc/intel/common/acpi/pch_pcr.asl>
Lee Leahyb0005132015-05-12 18:19:47 -070031
Duncan Lauriee32da952015-08-27 17:09:02 -070032/* PMC 0:1f.2 */
33#include "pmc.asl"
34
Lee Leahy1d14b3e2015-05-12 18:23:27 -070035/* Serial IO */
Lee Leahyb0005132015-05-12 18:19:47 -070036#include "serialio.asl"
37
Duncan Laurie86d937f2015-08-27 16:01:08 -070038/* SMBus 0:1f.3 */
Subrata Banik3b3bbd42020-10-03 21:42:50 +053039#include <soc/intel/common/block/acpi/acpi/smbus.asl>
Duncan Laurie86d937f2015-08-27 16:01:08 -070040
Duncan Laurie86f23ac2015-08-27 16:53:45 -070041/* Storage Controllers */
42#include "scs.asl"
Duncan Laurie86d937f2015-08-27 16:01:08 -070043
Duncan Laurie86d937f2015-08-27 16:01:08 -070044/* USB XHCI 0:14.0 */
45#include "xhci.asl"
Lee Leahy1d14b3e2015-05-12 18:23:27 -070046
Lee Leahyb0005132015-05-12 18:19:47 -070047Method (_OSC, 4)
48{
49 /* Check for proper GUID */
Elyes HAOUASfc29afb2020-10-09 15:05:28 +020050 If (Arg0 == ToUUID ("33DB4D5B-1FF7-401C-9657-7441C03DD766"))
Lee Leahyb0005132015-05-12 18:19:47 -070051 {
52 /* Let OS control everything */
53 Return (Arg3)
54 }
55 Else
56 {
57 /* Unrecognized UUID */
58 CreateDWordField (Arg3, 0, CDW1)
Elyes HAOUASfc29afb2020-10-09 15:05:28 +020059 CDW1 |= 4
Lee Leahyb0005132015-05-12 18:19:47 -070060 Return (Arg3)
61 }
62}
Pratik Prajapati90ebf962017-10-11 16:11:43 -070063
64/* SGX */
Pratik Prajapati90ebf962017-10-11 16:11:43 -070065#include <soc/intel/common/acpi/sgx.asl>