0f7efc9ee9be9c34e4b6b93827868531aae7a801
[coreboot.git] / src / mainboard / amd / serengeti_cheetah / acpi / amd8111_isa.asl
1 /*
2  * Copyright 2005 AMD
3  */
4 //AMD8111 isa
5
6             Device (ISA)
7             {
8                 /* lpc  0x00040000 */
9                 Method (_ADR, 0, NotSerialized)
10                 {
11                         Return (DADD(\_SB.PCI0.SBDN, 0x00010000))
12                 }
13
14                 OperationRegion (PIRY, PCI_Config, 0x51, 0x02) // LPC Decode Registers
15                 Field (PIRY, ByteAcc, NoLock, Preserve)
16                 {
17                     Z000,   2,  // Parallel Port Range
18                         ,   1,
19                     ECP,    1,  // ECP Enable
20                     FDC1,   1,  // Floppy Drive Controller 1
21                     FDC2,   1,  // Floppy Drive Controller 2
22                     Offset (0x01),
23                     Z001,   3,  // Serial Port A Range
24                     SAEN,   1,  // Serial Post A Enabled
25                     Z002,   3,  // Serial Port B Range
26                     SBEN,   1  // Serial Post B Enabled
27                 }
28
29                 Device (PIC)
30                 {
31                     Name (_HID, EisaId ("PNP0000"))
32                     Name (_CRS, ResourceTemplate ()
33                     {
34                         IO (Decode16, 0x0020, 0x0020, 0x01, 0x02)
35                         IO (Decode16, 0x00A0, 0x00A0, 0x01, 0x02)
36                         IRQ (Edge, ActiveHigh, Exclusive) {2}
37                     })
38                 }
39
40                 Device (DMA1)
41                 {
42                     Name (_HID, EisaId ("PNP0200"))
43                     Name (_CRS, ResourceTemplate ()
44                     {
45                         IO (Decode16, 0x0000, 0x0000, 0x01, 0x10)
46                         IO (Decode16, 0x0080, 0x0080, 0x01, 0x10)
47                         IO (Decode16, 0x00C0, 0x00C0, 0x01, 0x20)
48                         DMA (Compatibility, NotBusMaster, Transfer16) {4}
49                     })
50                 }
51
52                 Device (TMR)
53                 {
54                     Name (_HID, EisaId ("PNP0100"))
55                     Name (_CRS, ResourceTemplate ()
56                     {
57                         IO (Decode16, 0x0040, 0x0040, 0x01, 0x04)
58                         IRQ (Edge, ActiveHigh, Exclusive) {0}
59                     })
60                 }
61
62                 Device (RTC)
63                 {
64                     Name (_HID, EisaId ("PNP0B00"))
65                     Name (_CRS, ResourceTemplate ()
66                     {
67                         IO (Decode16, 0x0070, 0x0070, 0x01, 0x06)
68                         IRQ (Edge, ActiveHigh, Exclusive) {8}
69                     })
70                 }
71
72                 Device (SPKR)
73                 {
74                     Name (_HID, EisaId ("PNP0800"))
75                     Name (_CRS, ResourceTemplate ()
76                     {
77                         IO (Decode16, 0x0061, 0x0061, 0x01, 0x01)
78                     })
79                 }
80
81                 Device (COPR)
82                 {
83                     Name (_HID, EisaId ("PNP0C04"))
84                     Name (_CRS, ResourceTemplate ()
85                     {
86                         IO (Decode16, 0x00F0, 0x00F0, 0x01, 0x10)
87                         IRQ (Edge, ActiveHigh, Exclusive) {13}
88                     })
89                 }
90
91                 Device (SYSR)
92                 {
93                     Name (_HID, EisaId ("PNP0C02"))
94                     Name (_UID, 0x00)
95                     Name (SYR1, ResourceTemplate ()
96                     {
97                         IO (Decode16, 0x04D0, 0x04D0, 0x01, 0x02) //wrh092302 - added to report Thor NVRAM
98                         IO (Decode16, 0x1100, 0x117F, 0x01, 0x80) //wrh092302 - added to report Thor NVRAM
99                         IO (Decode16, 0x1180, 0x11FF, 0x01, 0x80)
100                         IO (Decode16, 0x0010, 0x0010, 0x01, 0x10)
101                         IO (Decode16, 0x0022, 0x0022, 0x01, 0x1E)
102                         IO (Decode16, 0x0044, 0x0044, 0x01, 0x1C)
103                         IO (Decode16, 0x0062, 0x0062, 0x01, 0x02)
104                         IO (Decode16, 0x0065, 0x0065, 0x01, 0x0B)
105                         IO (Decode16, 0x0076, 0x0076, 0x01, 0x0A)
106                         IO (Decode16, 0x0090, 0x0090, 0x01, 0x10)
107                         IO (Decode16, 0x00A2, 0x00A2, 0x01, 0x1E)
108                         IO (Decode16, 0x00E0, 0x00E0, 0x01, 0x10)
109                         IO (Decode16, 0x0B78, 0x0B78, 0x01, 0x04) // Added this to remove ACPI Unrepoted IO Error
110                         IO (Decode16, 0x0190, 0x0190, 0x01, 0x04) // Added this to remove ACPI Unrepoted IO Error
111                     })
112                     Method (_CRS, 0, NotSerialized)
113                     {
114                         Return (SYR1)
115                     }
116                 }
117
118                 Device (MEM)
119                 {
120                     Name (_HID, EisaId ("PNP0C02"))
121                     Name (_UID, 0x01)
122                     Method (_CRS, 0, NotSerialized)
123                     {
124                         Name (BUF0, ResourceTemplate ()
125                         {
126                             Memory32Fixed (ReadWrite, 0x000E0000, 0x00020000) // BIOS E4000-FFFFF
127                             Memory32Fixed (ReadWrite, 0x000C0000, 0x00010000) // video BIOS c0000-c8404
128                             Memory32Fixed (ReadWrite, 0xFEC00000, 0x00001000) // I/O APIC
129                             Memory32Fixed (ReadWrite, 0xFFC00000, 0x00380000) // LPC forwarded, 4 MB w/ROM
130                             Memory32Fixed (ReadWrite, 0xFEE00000, 0x00001000) // Local APIC
131                             Memory32Fixed (ReadWrite, 0xFFF80000, 0x00080000) // Overlay BIOS
132                             Memory32Fixed (ReadWrite, 0x00000000, 0x00000000) // Overlay BIOS
133                             Memory32Fixed (ReadWrite, 0x00000000, 0x00000000) // Overlay BIOS
134                             Memory32Fixed (ReadWrite, 0x00000000, 0x00000000) //Overlay BIOS
135                             Memory32Fixed (ReadWrite, 0x00000000, 0x00000000) //Overlay BIOS
136                         })
137                         // Read the Video Memory length
138                         CreateDWordField (BUF0, 0x14, CLEN)
139                         CreateDWordField (BUF0, 0x10, CBAS)
140
141                         ShiftLeft (VGA1, 0x09, Local0)
142                         Store (Local0, CLEN)
143
144                         Return (BUF0)
145                     }
146                 }
147
148                 Device (PS2M)
149                 {
150                     Name (_HID, EisaId ("PNP0F13"))
151                     Name (_CRS, ResourceTemplate ()
152                     {
153                         IRQNoFlags () {12}
154                     })
155                     Method (_STA, 0, NotSerialized)
156                     {
157                         And (FLG0, 0x04, Local0)
158                         If (LEqual (Local0, 0x04)) { Return (0x0F) }
159                         Else { Return (0x00) }
160                     }
161                 }
162
163                 Device (PS2K)
164                 {
165                     Name (_HID, EisaId ("PNP0303"))
166                     Name (_CRS, ResourceTemplate ()
167                     {
168                         IO (Decode16, 0x0060, 0x0060, 0x01, 0x01)
169                         IO (Decode16, 0x0064, 0x0064, 0x01, 0x01)
170                         IRQNoFlags () {1}
171                     })
172                 }
173                 #include "superio.asl"
174
175             }
176