summaryrefslogtreecommitdiff
path: root/Platform/Intel/PurleyOpenBoardPkg/Acpi/BoardAcpiDxe/Dsdt/Mother.asi
blob: 46abd5706cd2ff810250145ccfd131c64fac820f (plain)
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/** @file

Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php.

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

**/

Device (DMAC) {
  Name (_HID, EISAID("PNP0200"))
  Name (_CRS,ResourceTemplate() {
    IO(Decode16, 0x0, 0x0, 0, 0x10)
    IO(Decode16, 0x81, 0x81, 0, 0x3)
    IO(Decode16, 0x87, 0x87, 0, 0x1)
    IO(Decode16, 0x89, 0x89, 0, 0x3)
    IO(Decode16, 0x8f, 0x8f, 0, 0x1)
    IO(Decode16, 0xc0, 0xc0, 0, 0x20)
    DMA(Compatibility,NotBusMaster,Transfer8) {4}
  })
}

Device (RTC) {
  Name (_HID,EISAID("PNP0B00"))
  Name (_CRS,ResourceTemplate() {
    IO(Decode16,0x70,0x70,0x01,0x02)
    IO(Decode16,0x74,0x74,0x01,0x04)
    IRQNoFlags(){8}
  })
}

Device (PIC) {
  Name (_HID,EISAID("PNP0000"))
  Name (_CRS,ResourceTemplate() {
    IO(Decode16,0x20,0x20,0x01,0x1E)        // length of 1Eh includes all aliases
    IO(Decode16,0xA0,0xA0,0x01,0x1E)
    IO(Decode16,0x4D0,0x4D0,0x01,0x02)
  })
}

Device (FPU) {
  Name (_HID,EISAID("PNP0C04"))
  Name (_CRS,ResourceTemplate() {
    IO(Decode16,0xF0,0xF0,0x01,0x1)
    IRQNoFlags(){13}
  })
}

Device(TMR)
{
  Name(_HID,EISAID("PNP0100"))

  Name(_CRS,ResourceTemplate() {
    IO(Decode16,0x40,0x40,0x01,0x04)
    IO(Decode16,0x50,0x50,0x01,0x04)        // alias
    IRQNoFlags(){0}
  })
}

Device (SPKR) {
  Name (_HID,EISAID("PNP0800"))
  Name (_CRS,ResourceTemplate() {
    IO(Decode16,0x61,0x61,0x01,0x01)
  })
}

//
// all "PNP0C02" devices- pieces that don't fit anywhere else
//
Device(XTRA) {
  Name(_HID,EISAID("PNP0C02"))        // Generic motherboard devices
  Name(_CRS,
    ResourceTemplate() {
      IO(Decode16,0x500,0x500,0x01,0x40)                  // GPIO space, ICH5
      IO(Decode16,0x400,0x400,0x01,0x80)                  // PM IO, ICH5
      IO(Decode16,0x92,0x92,0x01,0x01)                    // INIT & Fast A20 port, ICH5
      //
      // Resource conflict with COM Port
      //
      //IO(Decode16,0x680,0x680,0x01,0x80)                  // Runtime registers, National SIO
      IO(Decode16,0x10,0x10,0x01,0x10)
      IO(Decode16,0x72,0x72,0x01,0x02)
      IO(Decode16,0x80,0x80,0x01,0x01)
      IO(Decode16,0x84,0x84,0x01,0x03)
      IO(Decode16,0x88,0x88,0x01,0x01)
      IO(Decode16,0x8c,0x8c,0x01,0x03)
      IO(Decode16,0x90,0x90,0x01,0x10)
      //
      // SMBus decode range 
      //
      IO(Decode16,0x540,0x540,0x01,0x40)
      //
      // Pilot Mail Box decode range
      //
      IO(Decode16,0x600,0x600,0x01,0x20)
      //
      // BMC KCS decode range
      //
      IO(Decode16,0xCA0,0xCA0,0x01,0x6)
      //
      // Performance Status and control ports decode range
      //
      IO(Decode16,0x880,0x880,0x01,0x4)

      //IO Descriptor added for range 800-81f for S501302
      IO(Decode16,0x800,0x800,0x01,0x20)
      //IO Descriptor added for range 2F8-2FF for S501706
      //IO(Decode16,0x2F8,0x2F8,0x01,0x08)
      //IO(Decode16,0x60,0x60,0x01,0x01)
      //IO(Decode16,0x64,0x64,0x01,0x01)

      //PCH_ACPI_FLAG: RCBA is not supported in SPT
      //
      // RCBA memory range
      //
      //Memory32Fixed (ReadOnly, 0xFED1C000, 0x6FFFF) // ICH9 bios spec section 5.10 - reserved memory address space.
      Memory32Fixed (ReadOnly, 0xFED1C000, 0x24000) // ICH9 bios spec section 5.10 - reserved memory address space.
      // Leave FED40000-FED45000 for TPM
      Memory32Fixed (ReadOnly, 0xFED45000, 0x47000) // ICH9 bios spec section 5.10 - reserved memory address space.

      //
      // FLASH range
      //
      Memory32Fixed (ReadOnly, 0xFF000000, 0x1000000) //16MB as per IIO spec

      //
      // Local APIC range(0xFEE0_0000 to 0xFEEF_FFFF)
      //
      Memory32Fixed (ReadOnly, 0xFEE00000, 0x100000)

      //
      // HECI range, 32 bytes from HECI1_BASE_ADDRESS (0xFE90_0000 to 0xFE90_001F)
      //
      //Memory32Fixed (ReadWrite, 0xFE900000, 0x20)
      Memory32Fixed (ReadWrite, 0xFED12000, 0x10)

      //
      // HECI range, 32 bytes from HECI2_BASE_ADDRESS (0xFEA0_0000 to 0xFEA0_001F)
      //
      //Memory32Fixed (ReadWrite, 0xFEA00000, 0x20)
      Memory32Fixed (ReadWrite, 0xFED12010, 0x10)

      //
      // IIO RCBA memory range
      //
      Memory32Fixed (ReadOnly, 0xFED1B000, 0x1000)
    }
  )
}

//
// High Performance Event Timer (HPET)
//
Device (HPET) {
  Name (_HID, EisaId ("PNP0103"))

  Method (_STA, 0, NotSerialized) {
    If (\HPTE) {
      Return (0x0F)
    } Else {
      Return (0x00)
    }
  }

  Name (CRS0, ResourceTemplate () {
    Memory32Fixed (ReadWrite, 0xFED00000, 0x00000400)
  })

  Name (CRS1, ResourceTemplate () {
    Memory32Fixed (ReadWrite, 0xFED01000, 0x00000400)
  })

  Name (CRS2, ResourceTemplate () {
    Memory32Fixed (ReadWrite, 0xFED02000, 0x00000400)
  })

  Name (CRS3, ResourceTemplate () {
    Memory32Fixed (ReadWrite, 0xFED03000, 0x00000400)
  })

  //
  // Owning control method can't be re-entrant, so _CRS must be Serialized
  //
  Method (_CRS, 0, Serialized) {
    Switch (ToInteger(\HPTB)) {
      Case (0xFED00000) {
        Return (CRS0)
      }

      Case (0xFED01000) {
        Return (CRS1)
      }

      Case (0xFED02000) {
        Return (CRS2)
      }

      Case (0xFED03000) {
        Return (CRS3)
      }
    }
    Return (CRS0)
  }
}