blob: 9b07ab815dfb020aa41fc9071a4b7bbde1cae880 [file] [log] [blame]
Angel Ponsc3f58f62020-04-05 15:46:41 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Aaron Durbin3bde3d72013-11-04 21:45:52 -06002
Angel Pons26b49cc2020-07-07 17:17:51 +02003/* Intel LPC Bus Device - 0:1f.0 */
Aaron Durbin3bde3d72013-11-04 21:45:52 -06004
5Device (LPCB)
6{
7 Name(_ADR, 0x001f0000)
8
9 #include "irqlinks.asl"
10
11 #include "acpi/ec.asl"
12
Angel Pons26b49cc2020-07-07 17:17:51 +020013 Device (DMAC) /* DMA Controller */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060014 {
15 Name(_HID, EISAID("PNP0200"))
16 Name(_CRS, ResourceTemplate()
17 {
18 IO (Decode16, 0x00, 0x00, 0x01, 0x20)
19 IO (Decode16, 0x81, 0x81, 0x01, 0x11)
20 IO (Decode16, 0x93, 0x93, 0x01, 0x0d)
21 IO (Decode16, 0xc0, 0xc0, 0x01, 0x20)
22 DMA (Compatibility, NotBusMaster, Transfer8_16) { 4 }
23 })
24 }
25
Angel Pons26b49cc2020-07-07 17:17:51 +020026 Device (FWH) /* Firmware Hub */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060027 {
28 Name (_HID, EISAID("INT0800"))
29 Name (_CRS, ResourceTemplate()
30 {
31 Memory32Fixed(ReadOnly, 0xff000000, 0x01000000)
32 })
33 }
34
35 Device (HPET)
36 {
37 Name (_HID, EISAID("PNP0103"))
38 Name (_CID, 0x010CD041)
39
Angel Pons26b49cc2020-07-07 17:17:51 +020040 Method (_STA, 0) /* Device Status */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060041 {
Angel Pons26b49cc2020-07-07 17:17:51 +020042 Return (0xf) /* Enable and show device */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060043 }
44
45 Name(_CRS, ResourceTemplate()
46 {
Elyes HAOUAS1644e482019-10-30 11:28:42 +010047 Memory32Fixed(ReadOnly, CONFIG_HPET_ADDRESS, 0x400)
Aaron Durbin3bde3d72013-11-04 21:45:52 -060048 })
49 }
50
Angel Pons26b49cc2020-07-07 17:17:51 +020051 Device(PIC) /* 8259 Interrupt Controller */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060052 {
53 Name(_HID,EISAID("PNP0000"))
54 Name(_CRS, ResourceTemplate()
55 {
56 IO (Decode16, 0x20, 0x20, 0x01, 0x02)
57 IO (Decode16, 0x24, 0x24, 0x01, 0x02)
58 IO (Decode16, 0x28, 0x28, 0x01, 0x02)
59 IO (Decode16, 0x2c, 0x2c, 0x01, 0x02)
60 IO (Decode16, 0x30, 0x30, 0x01, 0x02)
61 IO (Decode16, 0x34, 0x34, 0x01, 0x02)
62 IO (Decode16, 0x38, 0x38, 0x01, 0x02)
63 IO (Decode16, 0x3c, 0x3c, 0x01, 0x02)
64 IO (Decode16, 0xa0, 0xa0, 0x01, 0x02)
65 IO (Decode16, 0xa4, 0xa4, 0x01, 0x02)
66 IO (Decode16, 0xa8, 0xa8, 0x01, 0x02)
67 IO (Decode16, 0xac, 0xac, 0x01, 0x02)
68 IO (Decode16, 0xb0, 0xb0, 0x01, 0x02)
69 IO (Decode16, 0xb4, 0xb4, 0x01, 0x02)
70 IO (Decode16, 0xb8, 0xb8, 0x01, 0x02)
71 IO (Decode16, 0xbc, 0xbc, 0x01, 0x02)
72 IO (Decode16, 0x4d0, 0x4d0, 0x01, 0x02)
73 IRQNoFlags () { 2 }
74 })
75 }
76
Angel Pons26b49cc2020-07-07 17:17:51 +020077 Device(LDRC) /* LPC device: Resource consumption */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060078 {
79 Name (_HID, EISAID("PNP0C02"))
80 Name (_UID, 2)
81
82 Name (RBUF, ResourceTemplate()
83 {
Angel Pons26b49cc2020-07-07 17:17:51 +020084 IO (Decode16, 0x61, 0x61, 0x1, 0x01) /* NMI Status */
85 IO (Decode16, 0x63, 0x63, 0x1, 0x01) /* CPU Reserved */
86 IO (Decode16, 0x65, 0x65, 0x1, 0x01) /* CPU Reserved */
87 IO (Decode16, 0x67, 0x67, 0x1, 0x01) /* CPU Reserved */
88 IO (Decode16, 0x80, 0x80, 0x1, 0x01) /* Port 80 Post */
89 IO (Decode16, 0x92, 0x92, 0x1, 0x01) /* CPU Reserved */
90 IO (Decode16, 0xb2, 0xb2, 0x1, 0x02) /* SWSMI */
Aaron Durbin3bde3d72013-11-04 21:45:52 -060091 })
92
93 Method (_CRS, 0, NotSerialized)
94 {
95 Return (RBUF)
96 }
97 }
98
Angel Pons26b49cc2020-07-07 17:17:51 +020099 Device (RTC) /* Real Time Clock */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600100 {
101 Name (_HID, EISAID("PNP0B00"))
102 Name (_CRS, ResourceTemplate()
103 {
104 IO (Decode16, 0x70, 0x70, 1, 8)
Angel Pons26b49cc2020-07-07 17:17:51 +0200105/*
106 * Disable as Windows doesn't like it, and systems don't seem to use it.
107 * IRQNoFlags() { 8 }
108 */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600109 })
110 }
111
Angel Pons26b49cc2020-07-07 17:17:51 +0200112 Device (TIMR) /* Intel 8254 timer */
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600113 {
114 Name(_HID, EISAID("PNP0100"))
115 Name(_CRS, ResourceTemplate()
116 {
117 IO (Decode16, 0x40, 0x40, 0x01, 0x04)
118 IO (Decode16, 0x50, 0x50, 0x10, 0x04)
119 IRQNoFlags() {0}
120 })
121 }
122
Angel Pons26b49cc2020-07-07 17:17:51 +0200123 /* Include mainboard's superio.asl file. */
Aaron Durbinab7ed0542013-11-07 14:33:21 -0600124 #include "acpi/superio.asl"
Aaron Durbin3bde3d72013-11-04 21:45:52 -0600125}