soc/intel: Remove blank lines before '}' and after '{'
[coreboot2.git] / src / soc / intel / denverton_ns / acpi / lpc.asl
blob133569bab714d7eb87c93ef27be9a7b45bc0c488
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 // Intel LPC Bus Device  - 0:1f.0
4 #include <soc/intel/common/block/acpi/acpi/lpc.asl>
6 Scope (\_SB.PCI0.LPCB)
8         #include "irqlinks.asl"
10         OperationRegion(LPC0, PCI_Config, 0x00, 0x100)
11         Field (LPC0, AnyAcc, NoLock, Preserve)
12         {
13                 Offset (0x80),  // IO Decode Ranges
14                 IOD0,   8,
15                 IOD1,   8,
16         }
18         Device(APIC)    // IO APIC
19         {
20                 Name(_HID,EISAID("PNP0003"))
21                 Name(_CRS, ResourceTemplate()
22                 {
23                         Memory32Fixed(ReadOnly, 0xFEC00000, 0x1000)
24                 })
25         }
27         Device(IUR3) // Internal UART 1
28         {
29           Name(_HID, EISAID("PNP0501"))
31           Name(_UID,1)
33           // Status Method for internal UART 1.
35           Method(_STA,0,Serialized)
36           {
37                 Return(0x000F)
38           }
40           // Current Resource Setting Method for internal UART 1.
42           Method(_CRS,0,Serialized)
43           {
44                 // Create the Buffer that stores the Resources to
45                 // be returned.
47                 Name(BUF0,ResourceTemplate()
48                 {
49                   IO(Decode16,0x03F8,0x03F8,0x01,0x08)
50                   Interrupt (ResourceConsumer, Level, ActiveLow, Shared) {16}
51                 })
53                 Return(BUF0)
54           }
55         }
57         Device(IUR4) // Internal UART 2
58         {
59           Name(_HID, EISAID("PNP0501"))
60           Name(_UID,2)
61           // Status Method for internal UART 2.
62           Method(_STA,0,Serialized)
63           {
64                 Return(0x000F)
65           }
66           // Current Resource Setting Method for internal UART 2.
67           Method(_CRS,0,Serialized)
68           {
69                 // Create the Buffer that stores the Resources to
70                 // be returned.
71                 Name(BUF0,ResourceTemplate()
72                 {
73                   IO(Decode16,0x02F8,0x02F8,0x01,0x08)
74                   Interrupt (ResourceConsumer, Level, ActiveLow, Shared) {17}
75                 })
76                 Return(BUF0)
77           }
78         }
80         Device(IUR5) // Internal UART 3
81         {
82           Name(_HID, EISAID("PNP0501"))
83           Name(_UID,3)
84           // Status Method for internal UART 3.
85           Method(_STA,0,Serialized)
86           {
87                 Return(0x000F)
88           }
89           // Current Resource Setting Method for internal UART 3.
90           Method(_CRS,0,Serialized)
91           {
92                 // Create the Buffer that stores the Resources to
93                 // be returned.
94                 Name(BUF0,ResourceTemplate()
95                 {
96                   IO(Decode16,0x03E8,0x03E8,0x01,0x08)
97                   Interrupt (ResourceConsumer, Level, ActiveLow, Shared) {18}
98                 })
99                 Return(BUF0)
100           }
101         }