This patch adds support for mainboard iBASE:MB899
[coreboot.git] / src / mainboard / ibase / mb899 / acpi / superio.asl
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007-2009 coresystems GmbH
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19
20
21 Device (SIO1)
22 {
23         Name (_HID, EISAID("PNP0A05"))
24         Name (_UID, 1)
25
26         Device (UAR1)
27         {
28                 Name(_HID, EISAID("PNP0501"))
29                 Name(_UID, 1)
30                 Name(_DDN, "COM1")
31
32                 Method (_STA, 0)
33                 {
34                         // always enable for now
35                         Return (0x0f)
36                 }
37
38                 Method (_DIS, 0) { /* NOOP */ }
39
40                 Name (_PRS, ResourceTemplate() {
41                         StartDependentFn(0, 1) {
42                                 IO(Decode16, 0x3f8, 0x3f8, 0x8, 0x8)
43                                 IRQNoFlags() { 4 }
44                         } EndDependentFn()
45                 })
46
47                 Method (_CRS, 0)
48                 {
49                         Return(ResourceTemplate() {
50                                 IO(Decode16, 0x3f8, 0x3f8, 0x8, 0x8)
51                                 IRQNoFlags() { 4 }
52                         })
53                 }
54                 // Some methods need an implementation here:
55                 // missing: _STA, _DIS, _CRS, _PRS,
56                 // missing: _SRS, _PS0, _PS3
57         }
58
59         Device (UAR2)
60         {
61                 Name(_HID, EISAID("PNP0501"))
62                 Name(_UID, 2)
63                 Name(_DDN, "COM2")
64
65                 Method (_STA, 0)
66                 {
67                         // always enable for now
68                         Return (0x0f)
69                 }
70
71                 Method (_DIS, 0) { /* NOOP */ }
72
73                 Name (_PRS, ResourceTemplate() {
74                         StartDependentFn(0, 1) {
75                                 IO(Decode16, 0x2f8, 0x2f8, 0x8, 0x8)
76                                 IRQNoFlags() { 3 }
77                         } EndDependentFn()
78                 })
79
80                 Method (_CRS, 0)
81                 {
82                         Return(ResourceTemplate() {
83                                 IO(Decode16, 0x2f8, 0x2f8, 0x8, 0x8)
84                                 IRQNoFlags() { 3 }
85                         })
86                 }
87                 // Some methods need an implementation here:
88                 // missing: _STA, _DIS, _CRS, _PRS,
89                 // missing: _SRS, _PS0, _PS3
90         }
91 }
92