Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2007-2009 coresystems GmbH |
| 5 | * Copyright (C) 2013 Google Inc. |
Frans Hendriks | f2af702 | 2018-11-16 12:08:41 +0100 | [diff] [blame] | 6 | * Copyright (C) 2018 Eltan B.V. |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; version 2 of |
| 11 | * the License. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 17 | */ |
| 18 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 19 | /* Intel LPC Bus Device - 0:1f.0 */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 20 | |
| 21 | Device (LPCB) |
| 22 | { |
| 23 | Name(_ADR, 0x001f0000) |
| 24 | |
| 25 | #include "irqlinks.asl" |
| 26 | |
| 27 | #include "acpi/ec.asl" |
| 28 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 29 | Device (DMAC) /* DMA Controller */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 30 | { |
| 31 | Name(_HID, EISAID("PNP0200")) |
| 32 | Name(_CRS, ResourceTemplate() |
| 33 | { |
| 34 | IO (Decode16, 0x00, 0x00, 0x01, 0x20) |
| 35 | IO (Decode16, 0x81, 0x81, 0x01, 0x11) |
| 36 | IO (Decode16, 0x93, 0x93, 0x01, 0x0d) |
| 37 | IO (Decode16, 0xc0, 0xc0, 0x01, 0x20) |
| 38 | DMA (Compatibility, NotBusMaster, Transfer8_16) { 4 } |
| 39 | }) |
| 40 | } |
| 41 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 42 | Device (FWH) /* Firmware Hub */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 43 | { |
| 44 | Name (_HID, EISAID("INT0800")) |
| 45 | Name (_CRS, ResourceTemplate() |
| 46 | { |
| 47 | Memory32Fixed(ReadOnly, 0xff000000, 0x01000000) |
| 48 | }) |
| 49 | } |
| 50 | |
Frans Hendriks | f2af702 | 2018-11-16 12:08:41 +0100 | [diff] [blame] | 51 | #if !IS_ENABLED(CONFIG_DISABLE_HPET) |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 52 | Device (HPET) |
| 53 | { |
| 54 | Name (_HID, EISAID("PNP0103")) |
| 55 | Name (_CID, 0x010CD041) |
| 56 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 57 | Method (_STA, 0) /* Device Status */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 58 | { |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 59 | Return (0xf) /* Enable and show device */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | Name(_CRS, ResourceTemplate() |
| 63 | { |
| 64 | Memory32Fixed(ReadOnly, 0xfed00000, 0x400) |
| 65 | }) |
| 66 | } |
Frans Hendriks | f2af702 | 2018-11-16 12:08:41 +0100 | [diff] [blame] | 67 | #endif |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 68 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 69 | Device(PIC) /* 8259 Interrupt Controller */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 70 | { |
| 71 | Name(_HID,EISAID("PNP0000")) |
| 72 | Name(_CRS, ResourceTemplate() |
| 73 | { |
| 74 | IO (Decode16, 0x20, 0x20, 0x01, 0x02) |
| 75 | IO (Decode16, 0x24, 0x24, 0x01, 0x02) |
| 76 | IO (Decode16, 0x28, 0x28, 0x01, 0x02) |
| 77 | IO (Decode16, 0x2c, 0x2c, 0x01, 0x02) |
| 78 | IO (Decode16, 0x30, 0x30, 0x01, 0x02) |
| 79 | IO (Decode16, 0x34, 0x34, 0x01, 0x02) |
| 80 | IO (Decode16, 0x38, 0x38, 0x01, 0x02) |
| 81 | IO (Decode16, 0x3c, 0x3c, 0x01, 0x02) |
| 82 | IO (Decode16, 0xa0, 0xa0, 0x01, 0x02) |
| 83 | IO (Decode16, 0xa4, 0xa4, 0x01, 0x02) |
| 84 | IO (Decode16, 0xa8, 0xa8, 0x01, 0x02) |
| 85 | IO (Decode16, 0xac, 0xac, 0x01, 0x02) |
| 86 | IO (Decode16, 0xb0, 0xb0, 0x01, 0x02) |
| 87 | IO (Decode16, 0xb4, 0xb4, 0x01, 0x02) |
| 88 | IO (Decode16, 0xb8, 0xb8, 0x01, 0x02) |
| 89 | IO (Decode16, 0xbc, 0xbc, 0x01, 0x02) |
| 90 | IO (Decode16, 0x4d0, 0x4d0, 0x01, 0x02) |
| 91 | IRQNoFlags () { 2 } |
| 92 | }) |
| 93 | } |
| 94 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 95 | Device(LDRC) /* LPC device: Resource consumption */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 96 | { |
| 97 | Name (_HID, EISAID("PNP0C02")) |
| 98 | Name (_UID, 2) |
| 99 | |
| 100 | Name (RBUF, ResourceTemplate() |
| 101 | { |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 102 | IO (Decode16, 0x61, 0x61, 0x1, 0x01) /* NMI Status */ |
| 103 | IO (Decode16, 0x63, 0x63, 0x1, 0x01) /* CPU Reserved */ |
| 104 | IO (Decode16, 0x65, 0x65, 0x1, 0x01) /* CPU Reserved */ |
| 105 | IO (Decode16, 0x67, 0x67, 0x1, 0x01) /* CPU Reserved */ |
| 106 | IO (Decode16, 0x80, 0x80, 0x1, 0x01) /* Port 80 Post */ |
| 107 | IO (Decode16, 0x92, 0x92, 0x1, 0x01) /* CPU Reserved */ |
| 108 | IO (Decode16, 0xb2, 0xb2, 0x1, 0x02) /* SWSMI */ |
Frans Hendriks | f01a159 | 2018-10-31 10:07:11 +0100 | [diff] [blame] | 109 | IO (Decode16, ACPI_BASE_ADDRESS, ACPI_BASE_ADDRESS, |
| 110 | 0x1, ACPI_BASE_SIZE) /* ACPI Base */ |
| 111 | IO (Decode16, GPIO_BASE_ADDRESS, GPIO_BASE_ADDRESS, |
| 112 | 0x1, 0xff) /* GPIO Base */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 113 | }) |
| 114 | |
| 115 | Method (_CRS, 0, NotSerialized) |
| 116 | { |
| 117 | Return (RBUF) |
| 118 | } |
| 119 | } |
| 120 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 121 | Device (RTC) /* Real Time Clock */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 122 | { |
| 123 | Name (_HID, EISAID("PNP0B00")) |
| 124 | Name (_CRS, ResourceTemplate() |
| 125 | { |
| 126 | IO (Decode16, 0x70, 0x70, 1, 8) |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 127 | /* |
| 128 | * Disable as Windows doesn't like it, and systems don't seem to use it. |
| 129 | * IRQNoFlags() { 8 } |
| 130 | */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 131 | }) |
| 132 | } |
| 133 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 134 | Device (TIMR) /* Intel 8254 timer */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 135 | { |
| 136 | Name(_HID, EISAID("PNP0100")) |
| 137 | Name(_CRS, ResourceTemplate() |
| 138 | { |
| 139 | IO (Decode16, 0x40, 0x40, 0x01, 0x04) |
| 140 | IO (Decode16, 0x50, 0x50, 0x10, 0x04) |
| 141 | IRQNoFlags() {0} |
| 142 | }) |
| 143 | } |
| 144 | |
Lee Leahy | 3247172 | 2015-04-20 15:20:28 -0700 | [diff] [blame] | 145 | /* Include mainboard's superio.asl file. */ |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 146 | #include "acpi/superio.asl" |
Lee Leahy | 77ff0b1 | 2015-05-05 15:07:29 -0700 | [diff] [blame] | 147 | } |