Angel Pons | c3f58f6 | 2020-04-05 15:46:41 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 2 | |
Angel Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 3 | /* Intel LPC Bus Device - 0:1f.0 */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 4 | |
| 5 | Device (LPCB) |
| 6 | { |
| 7 | Name(_ADR, 0x001f0000) |
| 8 | |
| 9 | #include "irqlinks.asl" |
| 10 | |
| 11 | #include "acpi/ec.asl" |
| 12 | |
Angel Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 13 | Device (DMAC) /* DMA Controller */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 14 | { |
| 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 Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 26 | Device (FWH) /* Firmware Hub */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 27 | { |
| 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 Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 40 | Method (_STA, 0) /* Device Status */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 41 | { |
Angel Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 42 | Return (0xf) /* Enable and show device */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | Name(_CRS, ResourceTemplate() |
| 46 | { |
Elyes HAOUAS | 1644e48 | 2019-10-30 11:28:42 +0100 | [diff] [blame] | 47 | Memory32Fixed(ReadOnly, CONFIG_HPET_ADDRESS, 0x400) |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 48 | }) |
| 49 | } |
| 50 | |
Angel Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 51 | Device(PIC) /* 8259 Interrupt Controller */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 52 | { |
| 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 Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 77 | Device(LDRC) /* LPC device: Resource consumption */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 78 | { |
| 79 | Name (_HID, EISAID("PNP0C02")) |
| 80 | Name (_UID, 2) |
| 81 | |
| 82 | Name (RBUF, ResourceTemplate() |
| 83 | { |
Angel Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 84 | 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 Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 91 | }) |
| 92 | |
| 93 | Method (_CRS, 0, NotSerialized) |
| 94 | { |
| 95 | Return (RBUF) |
| 96 | } |
| 97 | } |
| 98 | |
Angel Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 99 | Device (RTC) /* Real Time Clock */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 100 | { |
| 101 | Name (_HID, EISAID("PNP0B00")) |
| 102 | Name (_CRS, ResourceTemplate() |
| 103 | { |
| 104 | IO (Decode16, 0x70, 0x70, 1, 8) |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 105 | }) |
| 106 | } |
| 107 | |
Angel Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 108 | Device (TIMR) /* Intel 8254 timer */ |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 109 | { |
| 110 | Name(_HID, EISAID("PNP0100")) |
| 111 | Name(_CRS, ResourceTemplate() |
| 112 | { |
| 113 | IO (Decode16, 0x40, 0x40, 0x01, 0x04) |
| 114 | IO (Decode16, 0x50, 0x50, 0x10, 0x04) |
| 115 | IRQNoFlags() {0} |
| 116 | }) |
| 117 | } |
| 118 | |
Angel Pons | 26b49cc | 2020-07-07 17:17:51 +0200 | [diff] [blame] | 119 | /* Include mainboard's superio.asl file. */ |
Aaron Durbin | ab7ed054 | 2013-11-07 14:33:21 -0600 | [diff] [blame] | 120 | #include "acpi/superio.asl" |
Aaron Durbin | 3bde3d7 | 2013-11-04 21:45:52 -0600 | [diff] [blame] | 121 | } |