summaryrefslogtreecommitdiff
path: root/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/LPC_DEV.ASL
blob: 3d2cebe83475c699c9051b8aeaf28e1010665a77 (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
/** @file
  Copyright (c) 2012 - 2016, 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
  which 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.

**/

scope (\_SB) {

  Device(RTC)  // RTC
  {
    Name(_HID,EISAID("PNP0B00"))

    Name(_CRS,ResourceTemplate()
    {
      IO(Decode16,0x70,0x70,0x01,0x08)
    })
  }

  Device(HPET)  // High Performance Event Timer
  {
    Name (_HID, EisaId ("PNP0103"))
    Name (_UID, 0x00)
    Method (_STA, 0, NotSerialized)
    {
      Return (0x0F)
    }

    Method (_CRS, 0, Serialized)
    {
      Name (RBUF, ResourceTemplate ()
      {
        Memory32Fixed (ReadWrite,
                       0xFED00000,  // Address Base
                       0x00000400,  // Address Length
                       )
        Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, , , )
        {
          0x00000008,   //0xB HPET-2
        }
     })
     Return (RBUF)
   }
 }
}

Device(IPIC) // 8259 PIC
{
  Name(_HID,EISAID("PNP0000"))

  Name(_CRS,ResourceTemplate()
  {
    IO(Decode16,0x20,0x20,0x01,0x02)
    IO(Decode16,0x24,0x24,0x01,0x02)
    IO(Decode16,0x28,0x28,0x01,0x02)
    IO(Decode16,0x2C,0x2C,0x01,0x02)
    IO(Decode16,0x30,0x30,0x01,0x02)
    IO(Decode16,0x34,0x34,0x01,0x02)
    IO(Decode16,0x38,0x38,0x01,0x02)
    IO(Decode16,0x3C,0x3C,0x01,0x02)
    IO(Decode16,0xA0,0xA0,0x01,0x02)
    IO(Decode16,0xA4,0xA4,0x01,0x02)
    IO(Decode16,0xA8,0xA8,0x01,0x02)
    IO(Decode16,0xAC,0xAC,0x01,0x02)
    IO(Decode16,0xB0,0xB0,0x01,0x02)
    IO(Decode16,0xB4,0xB4,0x01,0x02)
    IO(Decode16,0xB8,0xB8,0x01,0x02)
    IO(Decode16,0xBC,0xBC,0x01,0x02)
    IO(Decode16,0x4D0,0x4D0,0x01,0x02)
    IRQNoFlags() {2}
  })
}

Device(LDRC) // LPC Device Resource Consumption
{
  Name(_HID,EISAID("PNP0C02"))

  Name(_UID,2)

  Name(_CRS,ResourceTemplate()
  {
    IO(Decode16,0x2E,0x2E,0x1,0x02)      // WPCN381U SIO Config Index + Data.
    IO(Decode16,0x4E,0x4E,0x1,0x02)      // LPC Slot Access.
    IO(Decode16,0x61,0x61,0x1,0x1)       // NMI Status.
    IO(Decode16,0x63,0x63,0x1,0x1)       // Processor I/F.
    IO(Decode16,0x65,0x65,0x1,0x1)       // Processor I/F.
    IO(Decode16,0x67,0x67,0x1,0x1)       // Processor I/F.
    IO(Decode16,0x70,0x70,0x1,0x1)       // NMI Enable.
    IO(Decode16,0x80,0x80,0x1,0x10)      // Postcode.
    IO(Decode16,0x92,0x92,0x1,0x1)       // Processor I/F.
    IO(Decode16,0xB2,0xB2,0x01,0x02)     // Software SMI.
    IO(Decode16,0x680,0x680,0x1,0x20)    // 32 Byte I/O.
    IO(Decode16,0x400,0x400,0x1,0x80)    // ACPI Base.
    IO(Decode16,0x500,0x500,0x1,0xFF)    // GPIO Base.
    IO(Decode16,0x600,0x600,0x1,0x20)    // WPCN381U SIO SWC + ACPI Base.
    IO(Decode16,0x164e,0x164e,0x1,0x02)  // WPCN381U SIO Config Index1 + Data1.
  })
}
Device(TIMR) // 8254 Timer
{
  Name(_HID,EISAID("PNP0100"))

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