]>
Commit | Line | Data |
---|---|---|
1 | /**************************************************************************;\r | |
2 | ;* *;\r | |
3 | ;* *;\r | |
4 | ;* Intel Corporation - ACPI Reference Code for the Baytrail *;\r | |
5 | ;* Family of Customer Reference Boards. *;\r | |
6 | ;* *;\r | |
7 | ;* *;\r | |
8 | ;* Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved *;\r | |
9 | ;\r | |
10 | ; This program and the accompanying materials are licensed and made available under\r | |
11 | ; the terms and conditions of the BSD License that accompanies this distribution.\r | |
12 | ; The full text of the license may be found at\r | |
13 | ; http://opensource.org/licenses/bsd-license.php.\r | |
14 | ;\r | |
15 | ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
16 | ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
17 | ;\r | |
18 | ;* *;\r | |
19 | ;* *;\r | |
20 | ;**************************************************************************/\r | |
21 | \r | |
22 | Device(FWHD) // Firmware Hub Device\r | |
23 | {\r | |
24 | Name(_HID,EISAID("INT0800"))\r | |
25 | \r | |
26 | Name(_CRS,ResourceTemplate()\r | |
27 | {\r | |
28 | Memory32Fixed(ReadOnly,0xFF000000,0x1000000)\r | |
29 | })\r | |
30 | }\r | |
31 | \r | |
32 | Device(IPIC) // 8259 PIC\r | |
33 | {\r | |
34 | Name(_HID,EISAID("PNP0000"))\r | |
35 | \r | |
36 | Name(_CRS,ResourceTemplate()\r | |
37 | {\r | |
38 | IO(Decode16,0x20,0x20,0x01,0x02)\r | |
39 | IO(Decode16,0x24,0x24,0x01,0x02)\r | |
40 | IO(Decode16,0x28,0x28,0x01,0x02)\r | |
41 | IO(Decode16,0x2C,0x2C,0x01,0x02)\r | |
42 | IO(Decode16,0x30,0x30,0x01,0x02)\r | |
43 | IO(Decode16,0x34,0x34,0x01,0x02)\r | |
44 | IO(Decode16,0x38,0x38,0x01,0x02)\r | |
45 | IO(Decode16,0x3C,0x3C,0x01,0x02)\r | |
46 | IO(Decode16,0xA0,0xA0,0x01,0x02)\r | |
47 | IO(Decode16,0xA4,0xA4,0x01,0x02)\r | |
48 | IO(Decode16,0xA8,0xA8,0x01,0x02)\r | |
49 | IO(Decode16,0xAC,0xAC,0x01,0x02)\r | |
50 | IO(Decode16,0xB0,0xB0,0x01,0x02)\r | |
51 | IO(Decode16,0xB4,0xB4,0x01,0x02)\r | |
52 | IO(Decode16,0xB8,0xB8,0x01,0x02)\r | |
53 | IO(Decode16,0xBC,0xBC,0x01,0x02)\r | |
54 | IO(Decode16,0x4D0,0x4D0,0x01,0x02)\r | |
55 | IRQNoFlags() {2}\r | |
56 | })\r | |
57 | }\r | |
58 | \r | |
59 | Device(LDRC) // LPC Device Resource Consumption\r | |
60 | {\r | |
61 | Name(_HID,EISAID("PNP0C02"))\r | |
62 | \r | |
63 | Name(_UID,2)\r | |
64 | \r | |
65 | Name(_CRS,ResourceTemplate()\r | |
66 | {\r | |
67 | IO(Decode16,0x4E,0x4E,0x1,0x02) // LPC Slot Access.\r | |
68 | IO(Decode16,0x61,0x61,0x1,0x1) // NMI Status.\r | |
69 | IO(Decode16,0x63,0x63,0x1,0x1) // Processor I/F.\r | |
70 | IO(Decode16,0x65,0x65,0x1,0x1) // Processor I/F.\r | |
71 | IO(Decode16,0x67,0x67,0x1,0x1) // Processor I/F.\r | |
72 | IO(Decode16,0x70,0x70,0x1,0x1) // NMI Enable.\r | |
73 | IO(Decode16,0x80,0x80,0x1,0x10) // Postcode.\r | |
74 | IO(Decode16,0x92,0x92,0x1,0x1) // Processor I/F.\r | |
75 | IO(Decode16,0xB2,0xB2,0x01,0x02) // Software SMI.\r | |
76 | IO(Decode16,0x680,0x680,0x1,0x20) // 32 Byte I/O.\r | |
77 | IO(Decode16,0x400,0x400,0x1,0x80) // ACPI Base.\r | |
78 | IO(Decode16,0x500,0x500,0x1,0xFF) // GPIO Base.\r | |
79 | })\r | |
80 | }\r | |
81 | \r | |
82 | Device(TIMR) // 8254 Timer\r | |
83 | {\r | |
84 | Name(_HID,EISAID("PNP0100"))\r | |
85 | \r | |
86 | Name(_CRS,ResourceTemplate()\r | |
87 | {\r | |
88 | IO(Decode16,0x40,0x40,0x01,0x04)\r | |
89 | IO(Decode16,0x50,0x50,0x10,0x04)\r | |
90 | IRQNoFlags() {0}\r | |
91 | })\r | |
92 | }\r | |
93 | \r | |
94 | Device(IUR3) // Internal UART\r | |
95 | {\r | |
96 | Name(_HID, EISAID("PNP0501"))\r | |
97 | \r | |
98 | Name(_UID,1)\r | |
99 | \r | |
100 | // Status Method for internal UART\r | |
101 | \r | |
102 | Method(_STA,0,Serialized)\r | |
103 | {\r | |
104 | // Only report resources to the OS if internal UART is\r | |
105 | // not set to Disabled in BIOS Setup.\r | |
106 | \r | |
107 | If(LEqual(USEL,0))\r | |
108 | {\r | |
109 | If(LEqual(PU1E,1))\r | |
110 | {\r | |
111 | Store(1,UI3E) // Enable IRQ3 for UART\r | |
112 | Store(1,UI4E) // Enable IRQ4 for UART\r | |
113 | Store(1,C1EN) // Enable UART\r | |
114 | Return(0x000F)\r | |
115 | }\r | |
116 | }\r | |
117 | \r | |
118 | Return(0x0000)\r | |
119 | }\r | |
120 | \r | |
121 | // Disable Method for internal UART\r | |
122 | \r | |
123 | Method(_DIS,0,Serialized)\r | |
124 | {\r | |
125 | Store(0,UI3E)\r | |
126 | Store(0,UI4E)\r | |
127 | Store(0,C1EN)\r | |
128 | }\r | |
129 | \r | |
130 | // Current Resource Setting Method for internal UART\r | |
131 | \r | |
132 | Method(_CRS,0,Serialized)\r | |
133 | {\r | |
134 | // Create the Buffer that stores the Resources to\r | |
135 | // be returned.\r | |
136 | \r | |
137 | Name(BUF0,ResourceTemplate()\r | |
138 | {\r | |
139 | IO(Decode16,0x03F8,0x03F8,0x01,0x08)\r | |
140 | IRQNoFlags() {3}\r | |
141 | })\r | |
142 | \r | |
143 | Name(BUF1,ResourceTemplate()\r | |
144 | {\r | |
145 | IO(Decode16,0x03F8,0x03F8,0x01,0x08)\r | |
146 | IRQNoFlags() {4}\r | |
147 | })\r | |
148 | \r | |
149 | If (LLessEqual(SRID, 0x04))\r | |
150 | {\r | |
151 | Return(BUF0)\r | |
152 | } Else\r | |
153 | {\r | |
154 | Return(BUF1)\r | |
155 | }\r | |
156 | }\r | |
157 | }\r |