Debian Codegraph @

src/soc/intel/broadwell/pch/acpi/pch.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <soc/iomap.h>
4
5 /* PCI IRQ assignment */
6 #include "pci_irqs.asl"
7
8 #define DEFAULT_PRW_VALUE 0x6d
9
10 Scope (\)
11 {
12 // Root Complex Register Block
13 OperationRegion (RCRB, SystemMemory, CONFIG_FIXED_RCBA_MMIO_BASE, CONFIG_RCBA_LENGTH)
14 Field (RCRB, DWordAcc, Lock, Preserve)
15 {
16 Offset (0x3404), // High Performance Timer Configuration
17 HPAS, 2, // Address Select
18 , 5,
19 HPTE, 1, // Address Enable
20 }
21
22 /*
23 * Check PCH type
24 * Return 1 if PCH is WildcatPoint
25 * Return 0 if PCH is LynxPoint
26 */
27 Method (ISWP)
28 {
29 Local0 = \_SB.PCI0.LPCB.PDID & 0xfff0
30 If (Local0 == 0x9cc0) {
31 Return (1)
32 } Else {
33 Return (0)
34 }
35 }
36 }
37
38 // High Definition Audio (Azalia) 0:1b.0
39 #include <southbridge/intel/lynxpoint/acpi/audio.asl>
40
41 // ADSP/SST 0:13.0
42 #include "adsp.asl"
43
44 // PCI Express Ports 0:1c.x
45 #include <southbridge/intel/common/acpi/pcie.asl>
46
47 // USB EHCI 0:1d.0
48 #include <southbridge/intel/lynxpoint/acpi/ehci.asl>
49
50 // USB XHCI 0:14.0
51 #include "xhci.asl"
52
53 // LPC Bridge 0:1f.0
54 #include "lpc.asl"
55
56 // SATA 0:1f.2
57 #include <southbridge/intel/lynxpoint/acpi/sata.asl>
58
59 // SMBus 0:1f.3
60 #include <southbridge/intel/common/acpi/smbus.asl>
61
62 // Serial IO
63 #include "serialio.asl"
64
65 Method (_OSC, 4)
66 {
67 /* Check for proper GUID */
68 If (Arg0 == ToUUID ("33DB4D5B-1FF7-401C-9657-7441C03DD766"))
69 {
70 /* Let OS control everything */
71 Return (Arg3)
72 }
73 Else
74 {
75 /* Unrecognized UUID */
76 CreateDWordField (Arg3, 0, CDW1)
77 CDW1 |= 4
78 Return (Arg3)
79 }
80 }