1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007 - 2009 coresystems GmbH
* Copyright (C) 2014 - 2017 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
// Intel LPC Bus Device - 0:1f.0
#include <soc/intel/common/block/acpi/acpi/lpc.asl>
Scope (\_SB.PCI0.LPCB)
{
#include "irqlinks.asl"
OperationRegion(LPC0, PCI_Config, 0x00, 0x100)
Field (LPC0, AnyAcc, NoLock, Preserve)
{
Offset (0x80), // IO Decode Ranges
IOD0, 8,
IOD1, 8,
}
Device(APIC) // IO APIC
{
Name(_HID,EISAID("PNP0003"))
Name(_CRS, ResourceTemplate()
{
Memory32Fixed(ReadOnly, 0xFEC00000, 0x1000)
})
}
Device(IUR3) // Internal UART 1
{
Name(_HID, EISAID("PNP0501"))
Name(_UID,1)
// Status Method for internal UART 1.
Method(_STA,0,Serialized)
{
Return(0x000F)
}
// Current Resource Setting Method for internal UART 1.
Method(_CRS,0,Serialized)
{
// Create the Buffer that stores the Resources to
// be returned.
Name(BUF0,ResourceTemplate()
{
IO(Decode16,0x03F8,0x03F8,0x01,0x08)
Interrupt (ResourceConsumer, Level, ActiveLow, Shared) {16}
})
Return(BUF0)
}
}
Device(IUR4) // Internal UART 2
{
Name(_HID, EISAID("PNP0501"))
Name(_UID,2)
// Status Method for internal UART 2.
Method(_STA,0,Serialized)
{
Return(0x000F)
}
// Current Resource Setting Method for internal UART 2.
Method(_CRS,0,Serialized)
{
// Create the Buffer that stores the Resources to
// be returned.
Name(BUF0,ResourceTemplate()
{
IO(Decode16,0x02F8,0x02F8,0x01,0x08)
Interrupt (ResourceConsumer, Level, ActiveLow, Shared) {17}
})
Return(BUF0)
}
}
Device(IUR5) // Internal UART 3
{
Name(_HID, EISAID("PNP0501"))
Name(_UID,3)
// Status Method for internal UART 3.
Method(_STA,0,Serialized)
{
Return(0x000F)
}
// Current Resource Setting Method for internal UART 3.
Method(_CRS,0,Serialized)
{
// Create the Buffer that stores the Resources to
// be returned.
Name(BUF0,ResourceTemplate()
{
IO(Decode16,0x03E8,0x03E8,0x01,0x08)
Interrupt (ResourceConsumer, Level, ActiveLow, Shared) {18}
})
Return(BUF0)
}
}
}
|